phpPgAdmin now works without '.' in the include_path
authorchriskl <chriskl>
Wed, 17 Dec 2003 09:11:32 +0000 (09:11 +0000)
committerchriskl <chriskl>
Wed, 17 Dec 2003 09:11:32 +0000 (09:11 +0000)
48 files changed:
HISTORY
all_db.php
bottombar.php
browser.php
casts.php
classes/Misc.php
classes/database/ADODB_base.php
classes/database/Connection.php
classes/database/Postgres.php
classes/database/Postgres71.php
classes/database/Postgres72.php
classes/database/Postgres73.php
classes/database/Postgres74.php
classes/database/Postgres75.php
constraints.php
conversions.php
database.php
databases.php
dataexport.php
dbexport.php
display.php
domains.php
functions.php
groups.php
index.php
indexes.php
info.php
intro.php
lang/langcheck
languages.php
libraries/errorhandler.inc.php
libraries/lib.inc.php
login.php
operators.php
privileges.php
reports.php
rules.php
schema.php
sequences.php
sql.php
sqledit.php
tables.php
tblproperties.php
topbar.php
triggers.php
types.php
users.php
views.php

diff --git a/HISTORY b/HISTORY
index 4e99d52fc97c148a12eb2abe5dc68f8db90ca3c7..cf65e870d139e32f7fdc69fca305a8681477ad0e 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -13,6 +13,8 @@ Features
 Bugs
 * Object browser fixed for databases with no schemas
 * Properly detect that reports database is missing
+* Fix for alter column on PostgreSQL 7.1
+* phpPgAdmin now works without '.' in the include_path
 
 Translations
 * Spanish from Martin Marques
index 19b63cdef8b3f6978083b7ee3512199ccd67daad..52497e57b354768f3624ce6dfc564c4c92b1a343 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage databases within a server
         *
-        * $Id: all_db.php,v 1.20 2003/12/13 08:04:12 chriskl Exp $
+        * $Id: all_db.php,v 1.21 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index cbb1258efd1f08b05fbc94677ae1dd63bf5750ae..10191c7fd3809b23e5d918f02a6132c0891f86f1 100644 (file)
@@ -3,12 +3,12 @@
        /**
         * Bottom bar
         *
-        * $Id: bottombar.php,v 1.2 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: bottombar.php,v 1.3 2003/12/17 09:11:32 chriskl Exp $
         */     
 
        // Include application functions (no db conn)
        $_no_db_connection = true;
-        include_once('libraries/lib.inc.php');
+        include_once('./libraries/lib.inc.php');
 
        $misc->printHeader();
        $misc->printBody('bottombar');
index ddb6a1161cbfb38761f8b1815165acf0085afd7b..e62a49eef4c1476de43e8f7eb4faa87b59d8dbc1 100644 (file)
@@ -5,14 +5,14 @@
         * if you click on a database it shows a list of database objects in that
         * database.
         *
-        * $Id: browser.php,v 1.32 2003/12/16 17:17:43 soranzo Exp $
+        * $Id: browser.php,v 1.33 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        // Include tree classe
-       include_once('classes/HTML_TreeMenu/TreeMenu.php');
+       include_once('./classes/HTML_TreeMenu/TreeMenu.php');
 
        // Output header
        $misc->printHeader('', "<script src=\"classes/HTML_TreeMenu/TreeMenu.js\" type=\"text/javascript\"></script>\n<script src=\"links.js\" type=\"text/javascript\"></script>");
index 407a4c86d16ac01c0e8b79b51565399c03f362be..c6bcc02cba4f51540e17156e8816c21c739849e0 100644 (file)
--- a/casts.php
+++ b/casts.php
@@ -3,11 +3,11 @@
        /**
         * Manage casts in a database
         *
-        * $Id: casts.php,v 1.4 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: casts.php,v 1.5 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index b03b6a57b137dc1b0b6085c1854c7fb3c616e48b..8f82197886e1e1fe8be3eb025392a2b17e6f75cd 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.54 2003/12/15 08:10:50 chriskl Exp $
+        * $Id: Misc.php,v 1.55 2003/12/17 09:11:32 chriskl Exp $
         */
         
        class Misc {
 
                        // Create a database wrapper class for easy manipulation of the
                        // connection.
-                       include_once('classes/database/' . $_type . '.php');
+                       include_once('./classes/database/' . $_type . '.php');
                        $data = &new $_type($_connection->conn);
 
                        return $data;
index 165f721af8f4525e33375ed7f5dd3c0d1c9ee16e..1eea55618cb836149ba7da3d804e20e122f250d7 100644 (file)
@@ -3,11 +3,11 @@
 /*
  * Parent class of all ADODB objects.
  *
- * $Id: ADODB_base.php,v 1.15 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: ADODB_base.php,v 1.16 2003/12/17 09:11:32 chriskl Exp $
  */
 
-include_once('libraries/errorhandler.inc.php');
-include_once('libraries/adodb/adodb.inc.php');
+include_once('./libraries/errorhandler.inc.php');
+include_once('./libraries/adodb/adodb.inc.php');
 
 class ADODB_base {
 
index 7662c431129650b20c43cf91f6c96e03c9000552..7b9fcb36ab5c92073740cd91fb1eb21c8059cffe 100755 (executable)
@@ -3,10 +3,10 @@
 /**
  * Class to represent a database connection
  *
- * $Id: Connection.php,v 1.1 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Connection.php,v 1.2 2003/12/17 09:11:32 chriskl Exp $
  */
 
-include_once('classes/database/ADODB_base.php');
+include_once('./classes/database/ADODB_base.php');
 
 class Connection {
 
index b100692500d09cfc1018332b88b9f553befad22a..0b01e3d080ea445103cc231f16c2621da3a6a093 100755 (executable)
@@ -4,12 +4,12 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres.php,v 1.167 2003/12/15 08:30:54 chriskl Exp $
+ * $Id: Postgres.php,v 1.168 2003/12/17 09:11:32 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
 
-include_once('classes/database/BaseDB.php');
+include_once('./classes/database/BaseDB.php');
 
 class Postgres extends BaseDB {
 
index 16dd9d88ee257e67193634e8eaef20acfc7ceb3c..b72ba39c95eaa713b37acd74a8a5ab90b3dddc30 100644 (file)
@@ -4,12 +4,12 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres71.php,v 1.48 2003/12/16 01:27:23 chriskl Exp $
+ * $Id: Postgres71.php,v 1.49 2003/12/17 09:11:32 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
 
-include_once('classes/database/Postgres.php');
+include_once('./classes/database/Postgres.php');
 
 class Postgres71 extends Postgres {
 
index 51c73b96b68e191b0a2b2f041e8208183f25d44a..1ee2cd71d2ccbf3aa6a64d89db19b01bed34fe1b 100644 (file)
@@ -4,11 +4,11 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres72.php,v 1.53 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Postgres72.php,v 1.54 2003/12/17 09:11:32 chriskl Exp $
  */
 
 
-include_once('classes/database/Postgres71.php');
+include_once('./classes/database/Postgres71.php');
 
 class Postgres72 extends Postgres71 {
 
index 27a851485f1cd49221f3c22c49671ee5770d46b2..c4a645dd3c07924f56594cd39de7ff3be657076e 100644 (file)
@@ -4,12 +4,12 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.82 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Postgres73.php,v 1.83 2003/12/17 09:11:32 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
 
-include_once('classes/database/Postgres72.php');
+include_once('./classes/database/Postgres72.php');
 
 class Postgres73 extends Postgres72 {
 
index 81f1263c0b2208f83137ccf6ebbbf58cfa6d7d65..b34376cb9992585a69c55bcb3c6a9612fada65bc 100644 (file)
@@ -4,10 +4,10 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres74.php,v 1.20 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Postgres74.php,v 1.21 2003/12/17 09:11:32 chriskl Exp $
  */
 
-include_once('classes/database/Postgres73.php');
+include_once('./classes/database/Postgres73.php');
 
 class Postgres74 extends Postgres73 {
 
index 00e22ae7bed75783bf9c313f0520cc6b37ad73e3..d68f598a8a8d4e3f5192390973d1221dd8e6ea2b 100755 (executable)
@@ -3,10 +3,10 @@
 /**
  * PostgreSQL 7.5 support
  *
- * $Id: Postgres75.php,v 1.2 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Postgres75.php,v 1.3 2003/12/17 09:11:32 chriskl Exp $
  */
 
-include_once('classes/database/Postgres74.php');
+include_once('./classes/database/Postgres74.php');
 
 class Postgres75 extends Postgres74 {
 
index 76c14b27a0d4ab43a5bdbc4bedd0e1f9e00a3635..6f27e993dfb32ae207ba91c1c0a36bd17d501833 100644 (file)
@@ -3,12 +3,12 @@
        /**
         * List constraints on a table
         *
-        * $Id: constraints.php,v 1.24 2003/12/15 15:42:45 chriskl Exp $
+        * $Id: constraints.php,v 1.25 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
-       include_once('classes/class.select.php');
+       include_once('./libraries/lib.inc.php');
+       include_once('./classes/class.select.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index a2b8b86a17583986aa90700f5460b858ba3dba80..03980ff562c0b40a8aea038d3bfc1b4e4bcbe193 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage conversions in a database
         *
-        * $Id: conversions.php,v 1.2 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: conversions.php,v 1.3 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index ae734d098bcf1afef222a03b316237c80e645a24..da725a0cac776cc7a6016c6fa39f841ec2db07e6 100755 (executable)
@@ -3,11 +3,11 @@
        /**
         * Manage schemas within a database
         *
-        * $Id: database.php,v 1.28 2003/12/13 11:04:04 chriskl Exp $
+        * $Id: database.php,v 1.29 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index 5cfcc657066d01c794c61a25cdc546a819b014f7..571e49e413110ba84f2dae617c71574004862df1 100755 (executable)
@@ -4,11 +4,11 @@
         * List databases in a server
         * @param $webdbServerID The ID of the current server
         *
-        * $Id: databases.php,v 1.4 2003/03/17 05:20:29 chriskl Exp $
+        * $Id: databases.php,v 1.5 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $misc->printHeader($lang['strdatabases']);
        $misc->printBody();
index 86cf7b239e42171c05c43f83404eb921d63b5110..4c107956fbef26d96300e7638c994d2a27e4d2b4 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Does an export to the screen or as a download
         *
-        * $Id: dataexport.php,v 1.6 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: dataexport.php,v 1.7 2003/12/17 09:11:32 chriskl Exp $
         */
 
        $extensions = array(
@@ -53,7 +53,7 @@
        
                // Include application functions
                $_no_output = true;
-               include_once('libraries/lib.inc.php');
+               include_once('./libraries/lib.inc.php');
        
                if (isset($_REQUEST['query'])) $_REQUEST['query'] = trim(unserialize($_REQUEST['query']));
 
                if (!isset($msg)) $msg = null;
                
                // Include application functions
-               include_once('libraries/lib.inc.php');
+               include_once('./libraries/lib.inc.php');
 
                $misc->printHeader($lang['strexport']);         
                echo "<h2>", $misc->printVal($_REQUEST['database']), ": {$lang['strexport']}</h2>\n";
index ded5649eae1041732d5536f16c7e142cc2968183..420c953aca64cb48e00b46bac80d8d09b226919a 100644 (file)
@@ -2,12 +2,12 @@
        /**
         * Does an export of a database to the screen or as a download
         *
-        * $Id: dbexport.php,v 1.2 2003/12/13 16:15:43 chriskl Exp $
+        * $Id: dbexport.php,v 1.3 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
        $_no_output = true;
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        // Check that database dumps are enabled.
        if ($conf['pg_dump_path'] !== null && $conf['pg_dump_path'] != '') {
index 6c08a920e9b33c3dbe01bd93de2c96eb76ea2d55..8da263f8f7abc78798aabe30abff8159c1bd42e9 100644 (file)
@@ -9,11 +9,11 @@
         * @param $return_desc The return link name
         * @param $page The current page
         *
-        * $Id: display.php,v 1.33 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: display.php,v 1.34 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        global $conf, $lang;
 
index a6197f7bf1c8e515c9262d0fc303a6d74ea6cf4d..245a2fa5ea0c0b52de832e51b6b54af774adc9a6 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage domains in a database
         *
-        * $Id: domains.php,v 1.6 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: domains.php,v 1.7 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index 36f2aed47ea64df7529bf98831d9e05f998e46f4..fd8db6543eca3573278fef847d8322ce35d1c2c0 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage functions in a database
         *
-        * $Id: functions.php,v 1.23 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: functions.php,v 1.24 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index b845d3140f174a9170e523533f409c22007b6187..1886b0022e5249fc2367134093ec90595883066b 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage groups in a database cluster
         *
-        * $Id: groups.php,v 1.14 2003/11/03 19:53:45 soranzo Exp $
+        * $Id: groups.php,v 1.15 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index 73a91548a6d75fab2356cbb8651186fc8fea1440..9b6b559d902327204d9e9314bb60c282df1b5162 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -3,11 +3,11 @@
        /**
         * Main access point to the app.
         *
-        * $Id: index.php,v 1.7 2003/05/26 11:33:22 chriskl Exp $
+        * $Id: index.php,v 1.8 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $misc->printHeader();
 ?>
index b45db1657fbf9a640b18ede1bd8a5c26f665c991..a08096e06fdbd5b296ba3cf22f3581e737a5774b 100644 (file)
@@ -3,12 +3,12 @@
        /**
         * List indexes on a table
         *
-        * $Id: indexes.php,v 1.20 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: indexes.php,v 1.21 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
-       include_once('classes/class.select.php');
+       include_once('./libraries/lib.inc.php');
+       include_once('./classes/class.select.php');
                
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index 7b8512a9b0264858383c88585ccc395f00798785..727758ab3aecfeeb08e2c4949d36d1f3fedb9699 100644 (file)
--- a/info.php
+++ b/info.php
@@ -3,11 +3,11 @@
        /**
         * List extra information on a table
         *
-        * $Id: info.php,v 1.3 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: info.php,v 1.4 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index 37053215653c420cb3623c4688754525887a5946..9128230d32405c093e230601c8b139c00af4f9b2 100755 (executable)
--- a/intro.php
+++ b/intro.php
@@ -3,12 +3,12 @@
        /**
         * Intro screen
         *
-        * $Id: intro.php,v 1.9 2003/09/10 07:13:18 chriskl Exp $
+        * $Id: intro.php,v 1.10 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions (no db conn)
        $_no_db_connection = true;
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $misc->printHeader();
        $misc->printBody();
index 1338f05902c331d4bfa8f0d931000be6db172770..b77976e9909345f6d22124993b555d4ffda7e93a 100644 (file)
@@ -5,7 +5,7 @@
         * This script will generate a report on the status of a language
         * as compared to the master english translation.
         *
-        * $Id: langcheck,v 1.2 2003/09/01 03:08:12 chriskl Exp $
+        * $Id: langcheck,v 1.3 2003/12/17 09:11:32 chriskl Exp $
         */
        error_reporting(E_ALL);
        set_time_limit(0);
        }
 
        // Include english source file
-       include('english.php');
+       include('./english.php');
 
        $master = $lang;
        $master_keys = array_keys($lang);
        unset($lang);
 
        // Include target language file
-       include("{$_SERVER['argv'][1]}.php");
+       include("./{$_SERVER['argv'][1]}.php");
        $slave = $lang;
        $slave_keys = array_keys($lang);
 
index 8aca7404f22d6e91a413d8fb0a54318d1365c02a..05de6e187401b2e26a1726e8cdfd233e59a33ecb 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage languages in a database
         *
-        * $Id: languages.php,v 1.2 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: languages.php,v 1.3 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index 11600fc23b25b053581711afc90e61fdfd33e07b..f8a93feb2b53e8fd48abf5d9c4e293e50c23aeba 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * Overrides default ADODB error handler to provide nicer error handling.
  *
- * $Id: errorhandler.inc.php,v 1.13 2003/10/03 07:38:55 chriskl Exp $
+ * $Id: errorhandler.inc.php,v 1.14 2003/12/17 09:11:32 chriskl Exp $
  */
 
 define('ADODB_ERROR_HANDLER','Error_Handler');
@@ -38,7 +38,7 @@ function Error_Handler($dbms, $fn, $errno, $errmsg, $p1=false, $p2=false)
        case 'PCONNECT':
        case 'CONNECT':
                $_failed = true;
-               include('login.php');
+               include('./login.php');
                exit;
                break;
        default:
index e95cf3efb3fcaf9a3ce6ce5727a90c140bf37685..353f9b6c58d393abf671583fdc3f8293f8564d24 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Function library read in upon startup
         *
-        * $Id: lib.inc.php,v 1.70 2003/12/13 11:04:04 chriskl Exp $
+        * $Id: lib.inc.php,v 1.71 2003/12/17 09:11:32 chriskl Exp $
         */
        
        // Set error reporting level to max
@@ -19,7 +19,7 @@
        // Check to see if the configuration file exists, if not, explain
        if (file_exists('conf/config.inc.php')) {
                $conf = array();
-               include('conf/config.inc.php');
+               include('./conf/config.inc.php');
        }
        else {
                echo "Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.";
        // one has not been selected yet.
        if (!isset($conf['default_lang'])) $conf['default_lang'] = 'english';
        $lang = array();
-       include_once('lang/recoded/english.php');
+       include_once('./lang/recoded/english.php');
        // Include default language over the top - we really should try to avoid this
        // in the case when the user has chosen a language.
-       include_once("lang/recoded/" . strtolower($conf['default_lang']) . ".php");
+       include_once("./lang/recoded/" . strtolower($conf['default_lang']) . ".php");
 
        // Check for config file version mismatch
        if (!isset($conf['version']) || $conf['base_version'] > $conf['version']) {
@@ -70,7 +70,7 @@
        }
 
        // Create Misc class references
-       include_once('classes/Misc.php');
+       include_once('./classes/Misc.php');
        $misc = new Misc();
 
        // Start session (if not auto-started)
                        ||      !isset($_SESSION['webdbServerID'])
                        ||      !isset($_SESSION['webdbLanguage'])
                        ||      !isset($conf['servers'][$_SESSION['webdbServerID']])) {
-               include('login.php');
+               include('./login.php');
                exit;
        }
 
        // If extra login check fails, back to the login screen
        $_allowed = $misc->checkExtraSecurity();
        if (!$_allowed) {
-               include('login.php');
+               include('./login.php');
                exit;
        }
 
        // Import language file
-       include("lang/recoded/" . strtolower($_SESSION['webdbLanguage']) . ".php");
+       include("./lang/recoded/" . strtolower($_SESSION['webdbLanguage']) . ".php");
 
        // Check database support is properly compiled in
        if (!function_exists('pg_connect')) {
                        $_curr_db = $conf['servers'][$_SESSION['webdbServerID']]['defaultdb'];
 
                // Create the connection object and make the connection
-               include_once('classes/database/Connection.php');
+               include_once('./classes/database/Connection.php');
                $_connection = new Connection(
                        $conf['servers'][$_SESSION['webdbServerID']]['host'],
                        $conf['servers'][$_SESSION['webdbServerID']]['port'],
index f9708c87b8d2d610b1c5d7142326d1f6c5b076ec..c4215be18b87a8b1b8657fb6b802a9423f2fa010 100755 (executable)
--- a/login.php
+++ b/login.php
@@ -3,12 +3,12 @@
        /**
         * Login screen
         *
-        * $Id: login.php,v 1.14 2003/09/30 09:33:43 soranzo Exp $
+        * $Id: login.php,v 1.15 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // This needs to be an include once to prevent lib.inc.php infinite recursive includes.
        // Check to see if the configuration file exists, if not, explain
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        // Unfortunately, since sometimes lib.inc.php has been included, but we still
        // need the config variables
index 50c7b4341bf0b955919f0d79b442f210549397e9..a51f047eb3b448c5b1f63e427c1daeff28840303 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage operators in a database
         *
-        * $Id: operators.php,v 1.8 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: operators.php,v 1.9 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index fae8342db0f6df87735888e3006c5329bc1dfed8..881906508e1796cde73642ef37e3066baac638c7 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage privileges in a database
         *
-        * $Id: privileges.php,v 1.20 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: privileges.php,v 1.21 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index f559ee04c55ca33ff01733f7d5e3a236ad70ae2a..a9709bf6fe1bedbc0d2e7042e7866718b95a1403 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * List reports in a database
         *
-        * $Id: reports.php,v 1.15 2003/12/15 08:30:54 chriskl Exp $
+        * $Id: reports.php,v 1.16 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
        $misc->printBody();
 
        // Create a database accessor for the reports database
-       include_once('classes/Reports.php');
+       include_once('./classes/Reports.php');
        $reportsdb = new Reports($status);
        if ($status != 0) {
                echo "<p>{$lang['strnoreportsdb']}</p>\n";
index 7f0e8bca13ead7245952057e723f3311071f770d..ce5b90e99467b46235e6ac17fe365572fc3e6464 100644 (file)
--- a/rules.php
+++ b/rules.php
@@ -3,11 +3,11 @@
        /**
         * List rules on a table
         *
-        * $Id: rules.php,v 1.16 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: rules.php,v 1.17 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index 6623da4ac8bbfafc4626cbc5d1098b202e793082..658ea7cdb1e6f77c6f2c52bc4b2980df95726dd3 100755 (executable)
@@ -3,12 +3,12 @@
        /**
         * Display properties of a schema
         *
-        * $Id: schema.php,v 1.11 2003/12/10 16:07:04 chriskl Exp $
+        * $Id: schema.php,v 1.12 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions (no db conn)
        $_no_db_connection = true;
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index c2297991d85134fed0718cae29f877295245c86c..6f21031578c3e1bb355a2025209547c38a1c88ab 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Manage sequences in a database
         *
-        * $Id: sequences.php,v 1.15 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: sequences.php,v 1.16 2003/12/17 09:11:32 chriskl Exp $
         */
        
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
diff --git a/sql.php b/sql.php
index 7f8c0f55f16577e283ffc5bf75e3d4ae3f5023ef..4b50e3fe35c4c503b0376f23e4c8412e15ca23c0 100644 (file)
--- a/sql.php
+++ b/sql.php
@@ -6,11 +6,11 @@
         * how many SQL statements have been strung together with semi-colons
         * @param $query The SQL query string to execute
         *
-        * $Id: sql.php,v 1.13 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: sql.php,v 1.14 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $PHP_SELF = $_SERVER['PHP_SELF'];
 
index f87b9cede8fcb28a49014e18c4446103c8b568be..df55b3ce603dafb4bb13d366c0fa7b52b5143bf4 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * Alternative SQL editing window
         *
-        * $Id: sqledit.php,v 1.9 2003/12/15 07:59:22 chriskl Exp $
+        * $Id: sqledit.php,v 1.10 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index f53d1bc8ec55407397368ff1d42abe92118a78fa..1265f15fed02ac06b48cad2eda75e2cab040c40c 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * List tables in a database
         *
-        * $Id: tables.php,v 1.42 2003/12/15 15:42:45 chriskl Exp $
+        * $Id: tables.php,v 1.43 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
                                $_REQUEST['return_url'] = "tables.php?action=confselectrows&{$misc->href}&table={$_REQUEST['table']}";
                                $_REQUEST['return_desc'] = $lang['strback'];
 
-                               include('display.php');
+                               include('./display.php');
                                exit;
                        }
                }
index 7a858b3593cd0345eacf7e0118c4816a9ac7fefc..7df2ecef0384b763f32baf7d57d18abd45d57fd4 100644 (file)
@@ -3,11 +3,11 @@
        /**
         * List tables in a database
         *
-        * $Id: tblproperties.php,v 1.32 2003/12/15 15:42:45 chriskl Exp $
+        * $Id: tblproperties.php,v 1.33 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index eb91844edadab4634b116a87aad6622031450295..3eae5b378d13432cd8d24a0fe1b173acf8855d6e 100755 (executable)
@@ -3,11 +3,11 @@
        /**
         * Top menu for phpPgAdmin
         *
-        * $Id: topbar.php,v 1.19 2003/12/15 07:59:22 chriskl Exp $
+        * $Id: topbar.php,v 1.20 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $misc->printHeader();
        $misc->printBody('topbar');
index c435ee1981c5275b946e0552756e4f181b67c820..00937862f8046ce6080057a7cd165ffcce363398 100644 (file)
@@ -3,12 +3,12 @@
        /**
         * List triggers on a table
         *
-        * $Id: triggers.php,v 1.18 2003/12/15 15:42:45 chriskl Exp $
+        * $Id: triggers.php,v 1.19 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
-       include_once('classes/class.select.php');
+       include_once('./libraries/lib.inc.php');
+       include_once('./classes/class.select.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        $PHP_SELF = $_SERVER['PHP_SELF'];
index 3715dd9e9b2a1703c9dbc0c00fe4d4e51936d490..4fd9dcaba5b506de2c576035421f9af6648320a5 100644 (file)
--- a/types.php
+++ b/types.php
@@ -3,11 +3,11 @@
        /**
         * Manage types in a database
         *
-        * $Id: types.php,v 1.12 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: types.php,v 1.13 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index 65883abe29cf76d7e96c9a3c066a6fa2ac3995b1..5cf2ffbbf39745370e0f82f058a09c3f3fbde640 100644 (file)
--- a/users.php
+++ b/users.php
@@ -3,11 +3,11 @@
        /**
         * Manage users in a database cluster
         *
-        * $Id: users.php,v 1.18 2003/10/06 18:10:14 soranzo Exp $
+        * $Id: users.php,v 1.19 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
 
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
index e4cd592de111bb2e150cd607265c3c6a4ece8f8a..873ba1210682d6c74f574b8ff76099d272d9912c 100644 (file)
--- a/views.php
+++ b/views.php
@@ -3,11 +3,11 @@
        /**
         * Manage views in a database
         *
-        * $Id: views.php,v 1.25 2003/12/10 16:03:29 chriskl Exp $
+        * $Id: views.php,v 1.26 2003/12/17 09:11:32 chriskl Exp $
         */
 
        // Include application functions
-       include_once('libraries/lib.inc.php');
+       include_once('./libraries/lib.inc.php');
        
        $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
        if (!isset($msg)) $msg = '';
                                $_REQUEST['return_url'] = "views.php?action=confselectrows&{$misc->href}&view={$_REQUEST['view']}";
                                $_REQUEST['return_desc'] = $lang['strback'];
 
-                               include('display.php');
+                               include('./display.php');
                                exit;
                        }
                }