- Database options added (choosing database during runtime)

- version number bug removed
- history information added
This commit is contained in:
Michael Meckelein 2005-12-05 14:53:50 +00:00
parent 50afe2278d
commit bec0757079
13 changed files with 58 additions and 17 deletions

View File

@ -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 *****

View File

@ -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;
}

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -42,7 +42,7 @@ See AUTHORS to learn who helped make it become a reality.
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<br /><a href="<? echo $_SERVER['HTTP_REFERER']; ?>">&lt;&lt; <?php echo _MSGBck; ?></a><br />
<br /><a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">&lt;&lt; <?php echo _MSGBck; ?></a><br />
<?php
@ -102,7 +102,7 @@ if($row['InfoUnitID'] == 3)
<tr>
<td CLASS=TDHEADER><b><?php echo _MSGEvnID; ?></b></td>
<td CLASS=TD1><a href="http://www.monitorware.com/en/events/details.asp?L2=<?php echo $row['EventLogType']; ?>&L3=<? echo $row['EventSource']; ?>&event_id=<?php echo $row['EventID']; ?>" target="_blank"><?php echo $row['EventID']; ?></a><?php echo _MSGClickBrw; ?><a href="http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=<?php echo $row['EventSource'] . " " . $row['EventID']; ?>" target="_blank">Google-Groups</a>)</td>
<td CLASS=TD1><a href="http://www.monitorware.com/en/events/details.asp?L2=<?php echo $row['EventLogType']; ?>&L3=<?php echo $row['EventSource']; ?>&event_id=<?php echo $row['EventID']; ?>" target="_blank"><?php echo $row['EventID']; ?></a><?php echo _MSGClickBrw; ?><a href="http://groups.google.com/groups?hl=en&lr=&ie=ISO-8859-1&q=<?php echo $row['EventSource'] . " " . $row['EventID']; ?>" target="_blank">Google-Groups</a>)</td>
</tr>
<?php

View File

@ -16,11 +16,21 @@
<p><small><a href="index.htm">[Doc Home]</a></small></p>
<h2><a name="top">7. Release History</a></h2>
<p>2005-12-05
<li>"Message must contain" filter enhanced. Filtering for multiple words (seperated by spaces) is supported now.
</li>
<li>New page database options. Using the "Database Options" (see link in menu) changing the database to use is possible during runtime.
</li>
<li>Status info which database is in use was added on start page.
</li>
<li>The version number was not correctly took on from install script. This bug is fixed.
</li>
</p>
<p>2005-09-26
<li>removed semicolon at the end of the query, because this is not supported by mysql<br />
<li>Removed semicolon at the end of the query, because this is not supported by mysql<br />
file: scripts\mysql_ct*.sql
</li>
<li>added version number variables<br />
<li>Added version number variables<br />
file: scripts\config.php.ex
</li>
</p>

View File

@ -115,7 +115,10 @@ See AUTHORS to learn who helped make it become a reality.
$num = $myEventsNavigation->GetEventCount();
if(_ENABLEUI)
{
echo _MSGWel . ", <font color=\"blue\">" . $_SESSION["usrdis"] . "</font>" . _MSGChoOpt;
echo "<br>"._MSGwhichdb." <b>".$_SESSION['database']."</b>";
}
else
echo _MSGWel . _MSGChoOpt;

View File

@ -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', '<br><br><b>Hinweis:</b> Es sind ');
define('_NoteMsgInFuture2', ' Events in der Datenbank, die ein Datum haben, das in der Zukunft liegt!');
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:');

View File

@ -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', '<br><br><b>Note:</b> There are ');
define('_NoteMsgInFuture2', ' events in the database, which are in the future!');
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:');

View File

@ -101,9 +101,9 @@ See AUTHORS to learn who helped make it become a reality.
<td align="left">
<a href="index.php"><?php echo _MSGHom; ?></a> | <a href="events-display.php"><?php echo _MSGShwEvn; ?></a>
| <a href="syslog-index.php"><?php echo _MSGShwSlt; ?></a>
| <a href="filter-config.php"><?php echo _MSGFOpt; ?></a> | <a href="user-config.php"><?php echo _MSGUOpt; ?></a> |
| <a href="filter-config.php"><?php echo _MSGFOpt; ?></a> | <a href="user-config.php"><?php echo _MSGUOpt; ?></a> | <a href="database-config.php"><?php echo _MSGDbOpt; ?></a> |
<a href="
<? echo $_SERVER['PHP_SELF'];
<?php echo $_SERVER['PHP_SELF'];
$i = strpos($_SERVER['REQUEST_URI'], '?');
if ($i>0)
echo substr($_SERVER['REQUEST_URI'], $i);
@ -144,10 +144,10 @@ See AUTHORS to learn who helped make it become a reality.
<html>
<head>
<title><? echo $strTitle; ?></title>
<title><?php echo $strTitle; ?></title>
<META NAME="robots" CONTENT="INDEX,FOLLOW">
<META NAME="copyright" CONTENT="Copyright (C) 2003 Adiscon GmbH, Erftstadt - www.adiscon.com">
<META name="Keywords" content="<? echo $strKeywords ?> sql server win NT windows 7 2000 replication merge nt transactional date time resolver">
<META name="Keywords" content="<?php echo $strKeywords ?> sql server win NT windows 7 2000 replication merge nt transactional date time resolver">
<META http-equiv="pragma" CONTENT="no-cache">
<?php

View File

@ -127,7 +127,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");
/*

View File

@ -68,7 +68,7 @@ See AUTHORS to learn who helped make it become a reality.
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<br /><a href="<? echo $_SERVER['HTTP_REFERER']; ?>">&lt;&lt; <?php echo _MSGBck; ?></a><br />
<br /><a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">&lt;&lt; <?php echo _MSGBck; ?></a><br />
<?php