diff --git a/config.php b/config.php
index 32641d9..3b7fd5e 100644
--- a/config.php
+++ b/config.php
@@ -125,7 +125,7 @@ See AUTHORS to learn who helped make it become a reality.
// Version Number
define('_VersionMajor', "1");
define('_VersionMinor', "2");
- define('_VersionPatchLevel', "0");
+ define('_VersionPatchLevel', "2");
/*
***** END VARIOUS SETTINGS *****
diff --git a/db-drv/mysql.php b/db-drv/mysql.php
index ba88712..079506c 100644
--- a/db-drv/mysql.php
+++ b/db-drv/mysql.php
@@ -63,8 +63,12 @@ See AUTHORS to learn who helped make it become a reality.
*/
function db_connection()
{
+ if (!isset($_SESSION['database']))
+ {
+ $_SESSION['database'] = _DBNAME;
+ }
$db = mysql_connect(_DBSERVER, _DBUSERID, _DBPWD) or db_die_with_error(_MSGNoDBCon);
- mysql_select_db(_DBNAME) or db_die_with_error(_MSGChDB);
+ mysql_select_db($_SESSION['database']) or db_die_with_error(_MSGChDB);
return $db;
}
diff --git a/db-drv/odbc_mssql.php b/db-drv/odbc_mssql.php
index a9e2c8d..5c2adde 100644
--- a/db-drv/odbc_mssql.php
+++ b/db-drv/odbc_mssql.php
@@ -55,7 +55,11 @@ SQL_CURSOR_STATIC (integer)
function db_connection()
{
- return odbc_connect(_DBNAME, _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
+ if (!isset($_SESSION['database']))
+ {
+ $_SESSION['database'] = _DBNAME;
+ }
+ return odbc_connect($_SESSION['database'], _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
}
function db_own_connection($host, $port, $user, $pass, $dbname)
diff --git a/db-drv/odbc_mysql.php b/db-drv/odbc_mysql.php
index 305d1dd..57de175 100644
--- a/db-drv/odbc_mysql.php
+++ b/db-drv/odbc_mysql.php
@@ -63,7 +63,11 @@ See AUTHORS to learn who helped make it become a reality.
*/
function db_connection()
{
- return odbc_connect(_DBNAME, _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
+ if (!isset($_SESSION['database']))
+ {
+ $_SESSION['database'] = _DBNAME;
+ }
+ return odbc_connect($_SESSION['database'], _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
}
function db_own_connection($host, $port, $user, $pass, $dbname)
diff --git a/db-drv/odbc_mysql_.php b/db-drv/odbc_mysql_.php
index 5dd8af6..5d2fc95 100644
--- a/db-drv/odbc_mysql_.php
+++ b/db-drv/odbc_mysql_.php
@@ -55,7 +55,11 @@ SQL_CURSOR_STATIC (integer)
function db_connection()
{
- return odbc_connect(_DBNAME, _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
+ if (!isset($_SESSION['database']))
+ {
+ $_SESSION['database'] = _DBNAME;
+ }
+ return odbc_connect($_SESSION['database'], _DBUSERID, _DBPWD, SQL_CUR_USE_ODBC);
}
function db_exec($db, $cmdSQL)
diff --git a/details.php b/details.php
index d4105b3..9fab711 100644
--- a/details.php
+++ b/details.php
@@ -42,7 +42,7 @@ See AUTHORS to learn who helped make it become a reality.
?>
-
<<
+
<<
- " target="_blank">Google-Groups) |
+ " target="_blank">Google-Groups) |
[Doc Home]
+ 2005-12-05
+
"Message must contain" filter enhanced. Filtering for multiple words (seperated by spaces) is supported now.
+
+ New page database options. Using the "Database Options" (see link in menu) changing the database to use is possible during runtime.
+
+ Status info which database is in use was added on start page.
+
+ The version number was not correctly took on from install script. This bug is fixed.
+
+
2005-09-26
-
removed semicolon at the end of the query, because this is not supported by mysql
+ Removed semicolon at the end of the query, because this is not supported by mysql
file: scripts\mysql_ct*.sql
- added version number variables
+ Added version number variables
file: scripts\config.php.ex
diff --git a/index.php b/index.php
index e0ff169..357c8e8 100644
--- a/index.php
+++ b/index.php
@@ -115,7 +115,10 @@ See AUTHORS to learn who helped make it become a reality.
$num = $myEventsNavigation->GetEventCount();
if(_ENABLEUI)
+ {
echo _MSGWel . ", " . $_SESSION["usrdis"] . "" . _MSGChoOpt;
+ echo "
"._MSGwhichdb." ".$_SESSION['database']."";
+ }
else
echo _MSGWel . _MSGChoOpt;
diff --git a/lang/de.php b/lang/de.php
index 005229b..5bb09f6 100644
--- a/lang/de.php
+++ b/lang/de.php
@@ -229,4 +229,10 @@ define('_InsPer10', 'Diese Datein k
define('_InsPer11', 'Nach Löschen des Ordners können Sie zum ');
define('_InsPer12', 'Index wecheln!');
define('_NoteMsgInFuture1', '
Hinweis: Es sind ');
-define('_NoteMsgInFuture2', ' Events in der Datenbank, die ein Datum haben, das in der Zukunft liegt!');
\ No newline at end of file
+define('_NoteMsgInFuture2', ' Events in der Datenbank, die ein Datum haben, das in der Zukunft liegt!');
+
+define('_MSGdatabaseConf', 'Datenbank Konfiguration');
+define('_MSGdatabaseSet', 'Datenbank Einstellungen');
+define('_MSGdatabaseChoose', 'Datenbank auswählen:');
+define('_MSGDbOpt', 'Datenbank Optionen');
+define('_MSGwhichdb', 'Sie arbeiten zur Zeit mit folgender Datenbank:');
\ No newline at end of file
diff --git a/lang/en.php b/lang/en.php
index 493c738..47d1e5e 100644
--- a/lang/en.php
+++ b/lang/en.php
@@ -229,4 +229,10 @@ define('_InsPer10', 'These files could be user for a DoS on your phpLogCon!');
define('_InsPer11', 'After deleting the directory, you can go to ');
define('_InsPer12', 'index');
define('_NoteMsgInFuture1', '
Note: There are ');
-define('_NoteMsgInFuture2', ' events in the database, which are in the future!');
\ No newline at end of file
+define('_NoteMsgInFuture2', ' events in the database, which are in the future!');
+
+define('_MSGdatabaseConf', 'Database Configuration');
+define('_MSGdatabaseSet', 'Database Settings');
+define('_MSGdatabaseChoose', 'Choose Database:');
+define('_MSGDbOpt', 'Database Options');
+define('_MSGwhichdb', 'You are currently working with the following database:');
\ No newline at end of file
diff --git a/layout/theme.php b/layout/theme.php
index 740a448..882dd8e 100644
--- a/layout/theme.php
+++ b/layout/theme.php
@@ -101,9 +101,9 @@ See AUTHORS to learn who helped make it become a reality.
|
|
- | | |
+ | | | |
-
+
|