diff --git a/classes/eventfilter.php b/classes/eventfilter.php
index 5e37ccd..a304a00 100644
--- a/classes/eventfilter.php
+++ b/classes/eventfilter.php
@@ -44,11 +44,13 @@ it become a reality.
var $UserDefaultTimeInterval; //!< The time interval set as default in the user's options menu
var $SQLWhereTime; //!< Contains the where part of the SQL statement
var $OrderBy; //!< Sorting argument
+ var $GroupBy; //!< Grouping Argument
+ var $Sort; //!< Ascending/Descending
var $SQLWherePart; //!< Contains the whole SQL where part
var $SQLWhereInfoUnit; //!< Restriction of InfoUnit type
var $SQLWherePriority; //!< Restriction of Priority
- var $SQLWhereHost; //!< Restriction of ip/host
- var $SQLWhereMsg; //!< Message must contain a certain string
+ var $SQLWhereHost; //!< Restriction of ip/host
+ var $SQLWhereMsg; //!< Message must contain a certain string
/*! Constructor
*
@@ -56,13 +58,12 @@ it become a reality.
* from the database.
*/
function EventFilter()
- {
-
- // get the selected mode (time period)
+ {
+ // get the selected mode (time period)
$this->TimeInterval = $_SESSION['ti'];
- //Order argument
- $this->OrderBy = $_SESSION['order'];
+ //Order argument
+ $this->OrderBy = $_SESSION['order'];
if($_SESSION['change'] == 'Predefined')
{
@@ -295,25 +296,25 @@ it become a reality.
*/
function SetSQLWhereInfoUnit()
{
- // sl = 1, er = 3, o
- // sl-er-o (matrix)
- // 0-0-0 -> all InfoUnit #0
- // 0-0-1 -> only o #1
- // 0-1-0 -> only er #2
- // 0-1-1 -> not sl #3
- // 1-0-0 -> only sl #4
- // 1-0-1 -> not er #5
- // 1-1-0 -> only sl and er#6
- // 1-1-1 -> all InfoUnit #7
- $tmpSQL[0][0][0]= '';
- $tmpSQL[0][0][1]= ' AND (InfoUnitID<>1 AND InfoUnitID<>3) ';
- $tmpSQL[0][1][0]= ' AND InfoUnitID=3 ';
- $tmpSQL[0][1][1]= ' AND InfoUnitID<>1 ';
- $tmpSQL[1][0][0]= ' AND InfoUnitID=1 ';
- $tmpSQL[1][0][1]= ' AND InfoUnitID<>3 ';
- $tmpSQL[1][1][0]= ' AND (InfoUnitID=1 or InfoUnitID=3) ';
- $tmpSQL[1][1][1]= '';
- $this->SQLWhereInfoUnit = $tmpSQL[$_SESSION['infounit_sl']][$_SESSION['infounit_er']][$_SESSION['infounit_o']];
+ // sl = 1, er = 3, o
+ // sl-er-o (matrix)
+ // 0-0-0 -> all InfoUnit #0
+ // 0-0-1 -> only o #1
+ // 0-1-0 -> only er #2
+ // 0-1-1 -> not sl #3
+ // 1-0-0 -> only sl #4
+ // 1-0-1 -> not er #5
+ // 1-1-0 -> only sl and er#6
+ // 1-1-1 -> all InfoUnit #7
+ $tmpSQL[0][0][0]= '';
+ $tmpSQL[0][0][1]= ' AND (InfoUnitID<>1 AND InfoUnitID<>3) ';
+ $tmpSQL[0][1][0]= ' AND InfoUnitID=3 ';
+ $tmpSQL[0][1][1]= ' AND InfoUnitID<>1 ';
+ $tmpSQL[1][0][0]= ' AND InfoUnitID=1 ';
+ $tmpSQL[1][0][1]= ' AND InfoUnitID<>3 ';
+ $tmpSQL[1][1][0]= ' AND (InfoUnitID=1 or InfoUnitID=3) ';
+ $tmpSQL[1][1][1]= '';
+ $this->SQLWhereInfoUnit = $tmpSQL[$_SESSION['infounit_sl']][$_SESSION['infounit_er']][$_SESSION['infounit_o']];
/*
if ($_SESSION['infounit_sl'] == 1)
@@ -517,16 +518,18 @@ it become a reality.
* Use this to get a part of the sql where clause.
* This is responsilbe for the limitation of the requested data by time.
*/
- function SetSQLWherePart($time_only)
+ function SetSQLWherePart($whereMode)
{
- if($time_only == 1)
- {
- $this->SQLWherePart = $this->GetSQLWhereTime();
- }
- else
+ //Mode 0 => I.e for events-display
+ if($whereMode == 0)
{
$this->SQLWherePart = $this->GetSQLWhereTime().$this->GetSQLWhereInfoUnit().$this->GetSQLWherePriority().$this->GetSQLWhereHost().$this->GetSQLWhereMsg();
}
+ elseif($whereMode == 1)
+ {
+ $this->SQLWherePart = $this->GetSQLWhereTime().$this->GetSQLWherePriority().$this->GetSQLWhereHost().$this->GetSQLWhereMsg();
+ }
+
}
@@ -554,7 +557,6 @@ it become a reality.
*/
function GetSQLSort()
{
-
switch ($this->OrderBy)
{
case "Date":
@@ -580,7 +582,50 @@ it become a reality.
break;
}
return $tmpSQL;
- }
+ }
+
+ function GetSysLogTagSQLSort()
+ {
+ $this->OrderBy = $_SESSION['tag_order'];
+ switch ($this->OrderBy)
+ {
+ case "SysLogTag":
+ $tmpSQL = ' ORDER BY SysLogTag ' . $_SESSION['tag_sort'];
+ break;
+ case "Occurences":
+ $tmpSQL = ' ORDER BY occurences ' . $_SESSION['tag_sort'];
+ break;
+ case "Host":
+ $tmpSQL = ' ORDER BY FromHost ' . $_SESSION['tag_sort'];
+ break;
+ default:
+ $tmpSQL = ' ORDER BY SysLogTag ' . $_SESSION['tag_sort'];
+ break;
+ }
+ return $tmpSQL;
+ }
+
+ function SetSQLGroup($groupBy)
+ {
+ $this->GroupBy = $groupBy;
+ }
+
+ function GetSQLGroup()
+ {
+ switch($this->GroupBy)
+ {
+ case "SysLogTag":
+ $tmpSQL = " GROUP BY SysLogTag";
+ break;
+ case "SysLogTagHost":
+ $tmpSQL = " GROUP BY SysLogTag, FromHost";
+ break;
+ default:
+ $tmpSQL = " GROUP BY SysLogTag";
+ break;
+ }
+ return $tmpSQL;
+ }
}
?>
\ No newline at end of file
diff --git a/classes/eventsnavigation.php b/classes/eventsnavigation.php
index 2614e27..860baee 100644
--- a/classes/eventsnavigation.php
+++ b/classes/eventsnavigation.php
@@ -88,8 +88,8 @@ it become a reality.
$page = ($this->EventCount < $this->GetPageSize()) ? 1 : ceil($this->EventCount / $this->GetPageSize());
if($this->GetPageNumber() > 1)
{
- $this->NavigationLeftArrow = "GetPageNumber()-1)."\" class=\"searchlink\"> « ";
- $this->NavigationFirstPage = " «« ";
+ $this->NavigationLeftArrow = "GetPageNumber()-1)."&" . $url_query . "\" class=\"searchlink\"> « ";
+ $this->NavigationFirstPage = " «« ";
}
else
{
@@ -99,8 +99,8 @@ it become a reality.
if($this->GetPageNumber() < $page)
{
- $this->NavigationRightArrow = "GetPageNumber()+1)."\" class=\"searchlink\"> » ";
- $this->NavigationLastPage = " »» ";
+ $this->NavigationRightArrow = "GetPageNumber()+1)."&" . $url_query . "\" class=\"searchlink\"> » ";
+ $this->NavigationLastPage = " »» ";
}
else
{
@@ -116,7 +116,9 @@ it become a reality.
{
//query string without pagenum
$url_para = RemoveArgFromURL($_SERVER['QUERY_STRING'], "pagenum");
-
+ if(isset($_GET['slt']))
+ $url_para = "slt=" . $_GET['slt'];
+
$page = $this->SetNavigation($url_para);
echo $this->NavigationFirstPage." ".$this->NavigationLeftArrow;
for($a=$this->GetPageNumber()-3;$a<=$this->GetPageNumber()+3;$a++)
@@ -126,7 +128,7 @@ it become a reality.
if($a==$this->GetPageNumber())
echo " $a";
else
- echo " ".$a."";
+ echo " ".$a."";
}
}
echo $this->NavigationRightArrow." ".$this->NavigationLastPage;
@@ -135,11 +137,18 @@ it become a reality.
//! send a database query to get the total number of events which are available
//! save the result in $EventCount
function SetEventCount($db_con, $restriction)
- {
+ {
//get the counter result without limitation
$result = db_exec($db_con, db_num_count($restriction));
- $result = db_fetch_array($result);
- $this->EventCount = $result[0]; //so many data records were found
+ $row = db_fetch_array($result);
+ $num = db_num_rows($result);
+ // If you have a group clause in your query, the COUNT(*) clause doesn't
+ // calculates the grouped rows; you get the number of all affected rows!
+ // db_num_rows() gives the correct number in this case!
+ if($num <= 1)
+ $this->EventCount = $row['num']; //so many data records were foundy
+ else
+ $this->EventCount = $num;
}
//! returns the total number of available events
@@ -154,4 +163,4 @@ it become a reality.
}
}
-?>
\ No newline at end of file
+?>
diff --git a/config.php b/config.php
index 7af81a0..0a58e8e 100644
--- a/config.php
+++ b/config.php
@@ -3,7 +3,7 @@
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
-Copyright (C) 2003 Adiscon GmbH
+Copyright (C) 2004 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -41,16 +41,16 @@ it become a reality.
define('_DBSERVER', 'localhost');
// DSN (ODBC) or database name (Mysql)
- define('_DBNAME', 'phplogcon');
+ define('_DBNAME', 'monitorware');
// Userid for database connection ***
- define('_DBUSERID', 'root');
+ define('_DBUSERID', 'user');
// Password for database connection ***
- define('_DBPWD', '');
+ define('_DBPWD', 'pass');
// table name
- define('_DBTABLENAME', 'systemevents');
+ define('_DBTABLENAME', 'SystemEvents');
// Switch for connection mode
// Currently only odbc and native works
diff --git a/db-drv/mysql.php b/db-drv/mysql.php
index 4ffd874..a60ac9b 100644
--- a/db-drv/mysql.php
+++ b/db-drv/mysql.php
@@ -2,7 +2,7 @@
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
-Copyright (C) 2003 Adiscon GmbH
+Copyright (C) 2004 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -91,7 +91,7 @@ it become a reality.
*/
function db_num_rows($res)
{
- $result = mysql_num_rows($res) or db_die_with_error(_MSGNoRes);
+ $result = mysql_num_rows($res);
return $result;
}
@@ -103,7 +103,7 @@ it become a reality.
*/
function db_fetch_array($res)
{
- $result = mysql_fetch_array($res);// or db_die_with_error(_MSGNoRes);
+ $result = mysql_fetch_array($res);
return $result;
}
@@ -113,7 +113,7 @@ it become a reality.
*/
function db_fetch_singleresult($result)
{
- $result = mysql_fetch_array($result) or db_die_with_error(_MSGNoRes);
+ $result = mysql_fetch_array($result);
return $result;
}
@@ -146,10 +146,10 @@ it become a reality.
* the array points to the first data record you want to display
* at current page. You need it for paging.
*/
- function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage)
- {
+ function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage, $order)
+ {
$cmdSQL = $cmdSQLfirst_part . $cmdSQLmain_part . $cmdSQLwhere_part . " limit ".($limitlower-1)."," . $perpage;
- return db_exec($db, $cmdSQL);
+ return db_exec($db, $cmdSQL);
}
function db_free_result($result)
@@ -157,6 +157,12 @@ it become a reality.
return mysql_free_result($result);
}
+ function db_get_tables($dbCon, $dbName)
+ {
+ $query = "SHOW TABLES FROM " . $dbName;
+ return mysql_query($query);
+ }
+
function db_errno()
{
return mysql_errno();
diff --git a/db-drv/odbc_mssql.php b/db-drv/odbc_mssql.php
index cabef19..54d6380 100644
--- a/db-drv/odbc_mssql.php
+++ b/db-drv/odbc_mssql.php
@@ -2,7 +2,7 @@
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
-Copyright (C) 2003 Adiscon GmbH
+Copyright (C) 2004 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -78,12 +78,7 @@ SQL_CURSOR_STATIC (integer)
function db_fetch_array($res)
{
- //odbc_fetch_into replaced odbc_fetch_array, because
- //in various php version the fetch_array doesnt work
-
- //odbc_fetch_into($res, $myarray);
- odbc_fetch_into($res, $myarray);
- return $myarray;
+ return odbc_fetch_array($res);
}
function db_result($res, $res_name)
@@ -98,7 +93,21 @@ SQL_CURSOR_STATIC (integer)
function db_num_count($cmdSQLwhere_part)
{
- return 'SELECT DISTINCT COUNT(*) AS num FROM ' . _DBTABLENAME . substr($cmdSQLwhere_part, 0, strpos($cmdSQLwhere_part, 'ORDER BY'));
+ if(stristr($cmdSQLwhere_part, "order by") != FALSE)
+ return 'SELECT DISTINCT COUNT(*) AS num FROM ' . _DBTABLENAME . substr($cmdSQLwhere_part, 0, strpos($cmdSQLwhere_part, 'ORDER BY'));
+ else
+ return 'SELECT DISTINCT COUNT(*) AS num FROM ' . _DBTABLENAME . $cmdSQLwhere_part;
+ }
+
+ // This function is for getting the correct row count! db_num_rows is BUGGED! >_<
+ // THX to 'deejay_' from PHP.net for this function!
+ function odbc_record_count($odbcDbId, $query)
+ {
+ $countQueryString = "SELECT COUNT(*) as results FROM (" . $query . ")";
+// echo $countQueryString;
+ $count = odbc_exec ($odbcDbId, $countQueryString);
+ $numRecords = odbc_result ($count, "results");
+ return $numRecords;
}
/*
@@ -106,21 +115,37 @@ SQL_CURSOR_STATIC (integer)
* the array points to the first data record you want to display
* at current page. You need it for paging.
*/
- function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage)
+ function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage, $order)
{
- //you must move through the recordset
- //until you reach the data record you want
- //***if you know a better and more efficent methode, please let us know, too!
+ //Because ODBC doesn't know LIMIT we have to do it with subselects
+ if(strtolower($order) == "date")
+ $order = _DATE;
+ elseif(strtolower($order) == "host")
+ $order = "[FromHost]";
+ elseif(strtolower($order) == "facilitydate")
+ $order = "[Facility], [" . _DATE . "]";
+ elseif(strtolower($order) == "prioritydate")
+ $order = "[Priority], [" . _DATE . "]";
+ else
+ $order = "[" . $order . "]";
+ //now we have to check in wich order the results will be listed.
+ //we have to fit our query to this.
+ if( stristr(strtolower($cmdSQLwhere_part), "desc") == FALSE)
+ {
+ $sort1 = "DESC";
+ $sort2 = "ASC";
+ }
+ else
+ {
+ $sort1 = "ASC";
+ $sort2 = "DESC";
+ }
+ //now the big statement will be created! Have fun! ;)
$tmp = $perpage + $limitlower - 1;
- $cmdSQL = $cmdSQLfirst_part . "TOP " . $tmp . " " . $cmdSQLmain_part . $cmdSQLwhere_part;
+ $cmdSQL = "SELECT * FROM ( SELECT TOP " . $perpage . " * FROM ( " . $cmdSQLfirst_part . "TOP " . $tmp . " " . $cmdSQLmain_part . $cmdSQLwhere_part . " ) AS blub ORDER BY " . $order . " " . $sort1 . " ) AS blubblub ORDER BY " . $order . " " . $sort2;
+// echo $cmdSQL . "
";
return db_exec($db, $cmdSQL);
-/*
- for($i = 1; $i < $limitlower; $i++)
- $row = odbc_fetch_row($result);
-
- return $result;
- */
}
function db_free_result($result)
@@ -128,6 +153,11 @@ SQL_CURSOR_STATIC (integer)
return odbc_free_result($result);
}
+ function db_get_tables($dbCon, $dbName)
+ {
+ return odbc_tables($dbCon);
+ }
+
function db_errno()
{
return odbc_error();
@@ -158,4 +188,5 @@ SQL_CURSOR_STATIC (integer)
{
return '%';
}
+
?>
\ No newline at end of file
diff --git a/db-drv/odbc_mysql.php b/db-drv/odbc_mysql.php
index 45412ec..c5ab1a3 100644
--- a/db-drv/odbc_mysql.php
+++ b/db-drv/odbc_mysql.php
@@ -2,7 +2,7 @@
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
-Copyright (C) 2003 Adiscon GmbH
+Copyright (C) 2004 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -95,8 +95,7 @@ it become a reality.
*/
function db_fetch_array($res)
{
- odbc_fetch_into($res, $myarray);
- return $myarray;
+ return odbc_fetch_array($res);
}
/*
@@ -136,7 +135,7 @@ it become a reality.
* the array points to the first data record you want to display
* at current page. You need it for paging.
*/
- function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage)
+ function db_exec_limit($db, $cmdSQLfirst_part, $cmdSQLmain_part, $cmdSQLwhere_part, $limitlower, $perpage, $order)
{
$cmdSQL = $cmdSQLfirst_part . $cmdSQLmain_part . $cmdSQLwhere_part . " limit ".($limitlower-1)."," . $perpage;
return db_exec($db, $cmdSQL);
@@ -147,6 +146,11 @@ it become a reality.
return odbc_free_result($result);
}
+ function db_get_tables($dbCon, $dbName)
+ {
+ return odbc_tables($dbCon);
+ }
+
function db_errno()
{
return odbc_error();
diff --git a/details.php b/details.php
index a51f7b9..0bbe771 100644
--- a/details.php
+++ b/details.php
@@ -2,7 +2,7 @@
/*#### #### #### #### #### #### #### #### #### ####
phpLogCon - A Web Interface to Log Data.
-Copyright (C) 2003 Adiscon GmbH
+Copyright (C) 2004 Adiscon GmbH
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
@@ -22,6 +22,12 @@ it become a reality.
require("include.php");
+ if( !isset($_GET['lid']) )
+ {
+ header("Location: events-display.php");
+ exit;
+ }
+
WriteStandardHeader(_MSGShwEvnDet);
?>
diff --git a/doc/credits.htm b/doc/credits.htm
index 3754554..f0fad04 100644
--- a/doc/credits.htm
+++ b/doc/credits.htm
@@ -1,18 +1,46 @@
-
This project is funded by Adiscon -and initiated by Rainer Gerhards.
-The core development team is:
-[Doc Home] [MonitorWare Web Site]
-Copyright © 2003 by Adiscon. -Initiated by Rainer Gerhards. See license for details.
- + +![]() |
+
+ phpLogCon monitoring+ |
+
This project is funded by Adiscon and initiated by Rainer Gerhards.
+The core development team is:
+Additional developers:
+[Doc Home] [MonitorWare Web Site]
+
+ + phpLogCon, Copyright © 2003 - 2004 Adiscon GmbH + |
+
phpLogCon enables the system administrator to quickly and easily review his - central log repository. It provides views typically used on log data. It - integrates with web resources for easy analysis of data found in the logs.
-phpLogCon is primarily being used for
+![]() |
+
+ phpLogCon monitoring+ |
+
For in-depth analysis, we recommend using the MonitorWare Console. It provides - advanced analysis capabilities not found inside phpLogCon.
-phpLogCon is being implemented as a set of PHP scripts to ensure
- portability between different platforms. Target platforms for phpLogCon
+
+
PhpLogCon enables the system administrator to quickly and easily review his central log repository. It provides views typically used on log data. It integrates with web resources for easy analysis of data found in the logs.
+phpLogCon is primarily being used for
+For in-depth analysis, we recommend using the MonitorWare Console. It provides advanced analysis capabilities not found inside phpLogCon.
+ [Top] +phpLogCon is being implemented as a set of PHP scripts to ensure + portability between different platforms. Target platforms for phpLogCon are:
The standard set of database systems is supported, that is
Of course, other database systems can most likely be used with phpLogCon - - we just can't guarantee that it will work (and we are also unable to reproduce - any issues in our lab, thus the need for limitation).
-[Doc Home] [MonitorWare - Web Site]
-Copyright © 2003 by Adiscon. Initiated by - Rainer Gerhards. See license for details.
+Of course, other database systems can most likely be used with phpLogCon - we just can't guarantee that it will work (and we are also unable to reproduce any issues in our lab, thus the need for limitation).
+ [Top] + +[Doc Home] [MonitorWare Web Site]
+
+ + phpLogCon, Copyright © 2003 - 2004 Adiscon GmbH + |
+
- phpLogCon is an open source project. Feel free to change what you want. Here - you will find some hints and background knowledge about phpLogCon.
-The database function in phpLogCon are called similar to well-know commands from - e.g. php mysql functions. All database functions beginn with "db_" and - then a word that best describes the instruction. Sample: db_connect() - - should open a connection to the database. This is according to mysql_connect(). - So you know if you find db_fetch_array in phpLogCon for example, that this - function should fetch a result row as an associative array, a numeric array, or - both.
-phpLogCon support also database connection via ODBC. You can find the functions in - db-drv\odbc.php. The most functions are in a very low basic level. The - reason, a lot of the php ODBC functions don't work with all - versions of php. Also the usability often depends on the ODBC driver.
-Known Issues
At the moment you can only use ODBC for query Microsoft databases like MSSQL,
- Jet, ... A second database layer which can handle different sql formats should be implement in the future!
This file is very important. There, all other files to - include are embedded (e. g. config files and so on). So if you - include include.php you have always include automatically all genral "include - files". Also you can find useful function in include.php. All functions - which should reachable at the whole program, you find there (or there - included).
-Note: At each page of phpLogCon, include.php should be included!
--
[Doc Home] [MonitorWare - Web Site]
-Copyright © 2003 by Adiscon. Initiated by - Rainer Gerhards. See license for details.
+![]() |
+
+ phpLogCon monitoring+ |
+
phpLogCon is an open source project. Feel free to change what you want. Here you will find some hints and background knowledge about phpLogCon.
+The database functions in phpLogCon are called similar to well-know commands from e.g. php mysql functions. All database functions start with "db_" and then a word that best describes the instruction. Sample: db_connect() - should open a connection to the database. This is according to mysql_connect(). So you know if you find db_fetch_array in phpLogCon for example, that this function should fetch a result row as an associative array, a numeric array, or both.
+ [Top] +phpLogCon support also database connection via ODBC. You can find the functions in 'db-drv\odbc_mssql.php' and 'db-drv\odbc_mysql.php'. Like you can see, there are two different drivers for ODBC. That's because the syntax of MySql and MsSql are different. The most functions are in a very low basic level. The reason, a lot of the php ODBC functions don't work with all versions of php. Also the usability often depends on the ODBC driver.
+At the moment you can only use ODBC for query Microsoft databases like MSSQL, etc and for MySql. A second database layer which can handle different sql formats should be implemented in the future!
+ [Top] +This file is very important. There, all other files to include are embedded (e. g. config files and so on). So if you include include.php you have always include automatically all genral "include files". Also you can find useful function in include.php. All functions which should reachable at the whole program, you find there (or there included).
+Note: At each page of phpLogCon, include.php should be included!
+Here are the whole config of phpLogCon saved. It is included already by include.php, so you don't have to include it separately. If you want to set a new config variable, do it here! But if you only want to set a default variable for a variable, anywhere in the script, so do it there or in include.php! Config.php is only for global configuration variables with it's default values.
+ [Top] + +[Doc Home] [MonitorWare Web Site]
+
+ + phpLogCon, Copyright © 2003 - 2004 Adiscon GmbH + |
+