/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.5 2003/01/25 23:57:41 slubek Exp $
+ * $Id: all_db.php,v 1.6 2003/02/07 17:34:32 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
* if you click on a database it shows a list of database objects in that
* database.
*
- * $Id: browser.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: browser.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
// Include tree classes
include_once('classes/class.tree/class.tree.php');
* Central WebDB configuration. As a user you may modify the
* settings here for your particular configuration.
*
- * $Id: config.inc.php-dist,v 1.9 2003/01/18 09:07:51 chriskl Exp $
+ * $Id: config.inc.php-dist,v 1.10 2003/02/07 17:34:36 xzilla Exp $
*/
// Set error reporting level
* Don't modify anything below this line *
*****************************************/
- $appConfVersion = 2;
+ $appConfVersion = 3;
- // Main library
- include_once('libraries/lib.inc.php');
-
?>
/**
* List constraints on a table
*
- * $Id: constraints.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: constraints.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.2 2003/01/27 14:09:51 chriskl Exp $
+ * $Id: database.php,v 1.3 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
* List databases in a server
* @param $webdbServerID The ID of the current server
*
- * $Id: databases.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: databases.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$misc->printHeader($strDatabases);
?>
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.3 2003/01/27 15:18:03 chriskl Exp $
+ * $Id: display.php,v 1.4 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
global $strQueryResults, $guiMaxRows, $strRows;
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: functions.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
/**
* Manage groups in a database cluster
*
- * $Id: groups.php,v 1.2 2003/02/01 14:11:53 xzilla Exp $
+ * $Id: groups.php,v 1.3 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
/**
* Main access point to the app.
*
- * $Id: index.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: index.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$misc->printHeader('', false);
?>
/**
* List indexes on a table
*
- * $Id: indexes.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: indexes.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Intro screen
*
- * $Id: intro.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: intro.php,v 1.2 2003/02/07 17:34:34 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$misc->printHeader();
?>
/**
* Function library read in upon startup
*
- * $Id: lib.inc.php,v 1.14 2003/01/18 09:07:51 chriskl Exp $
+ * $Id: lib.inc.php,v 1.15 2003/02/07 17:34:37 xzilla Exp $
*/
// Application name
// Application version
$appVersion = '3.0-dev';
+
+ // Check to see if the configuration file exists, if not, explain
+ if (file_exists('conf/config.inc.php')) {
+ include('conf/config.inc.php');
+ }
+ else
+ {
+ echo "Configuration Error: You must rename/copy config.inc.php-dist to config.inc.php and set your appropriate settings";
+ exit;
+ }
+
+
// Configuration file version. If this is greater than that in config.inc.php, then
// the app will refuse to run. This and $appConfVersion should be incremented whenever
// backwards incompatible changes are made to config.inc.php-dist.
- $appBaseConfVersion = 2;
+ $appBaseConfVersion = 3;
// List of available language files
$appLangFiles = array(
/**
* Login screen
*
- * $Id: login.php,v 1.2 2003/01/18 09:07:50 chriskl Exp $
+ * $Id: login.php,v 1.3 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include('conf/config.inc.php');
+ include('libraries/lib.inc.php');
// Prepare form variables
if (!isset($_POST['formServer'])) $_POST['formServer'] = '';
if (!isset($_POST['formLanguage'])) $_POST['formLanguage'] = $appDefaultLanguage;
/**
* FILENAME: operators.php
*
- * $Id: operators.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: operators.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
-include_once( 'conf/config.inc.php' );
+include_once( 'libraries/lib.inc.php' );
$action = ( isset( $_REQUEST['action'] ) ) ? $_REQUEST['action'] : '';
/**
* Manage views in a database
*
- * $Id: privileges.php,v 1.2 2003/01/26 00:00:27 slubek Exp $
+ * $Id: privileges.php,v 1.3 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
/**
* List rules on a table
*
- * $Id: rules.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: rules.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* FILENAME: sequence.php
*
- * $Id: sequences.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: sequences.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
-include_once( 'conf/config.inc.php' );
+include_once( 'libraries/lib.inc.php' );
$action = ( isset( $_REQUEST['action'] ) ) ? $_REQUEST['action'] : '';
/**
* List tables in a database
*
- * $Id: tables.php,v 1.4 2003/01/27 15:18:03 chriskl Exp $
+ * $Id: tables.php,v 1.5 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Does an export to the screen or as a download
*
- * $Id: tblexport.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: tblexport.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
$extensions = array(
// Include application functions
$_no_output = true;
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
// Return all rows in the table
// @@ Note: This should really use a cursor
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: tblproperties.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Top menu for WebDB
*
- * $Id: topbar.php,v 1.2 2003/01/18 09:07:50 chriskl Exp $
+ * $Id: topbar.php,v 1.3 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$misc->printHeader();
?>
/**
* List triggers on a table
*
- * $Id: triggers.php,v 1.1 2003/01/19 02:47:25 chriskl Exp $
+ * $Id: triggers.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
$PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Manage types in a database
*
- * $Id: types.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: types.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
/**
* Manage users in a database cluster
*
- * $Id: users.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: users.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
/**
* Manage views in a database
*
- * $Id: views.php,v 1.1 2003/01/18 06:38:36 chriskl Exp $
+ * $Id: views.php,v 1.2 2003/02/07 17:34:35 xzilla Exp $
*/
// Include application functions
- include_once('conf/config.inc.php');
+ include_once('libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';