/**
* Manage aggregates in a database
*
- * $Id: aggregates.php,v 1.20 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: aggregates.php,v 1.21 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Actually creates the new aggregate in the database
/**
* Manage databases within a server
*
- * $Id: all_db.php,v 1.52 2007/05/16 17:03:51 ioguix Exp $
+ * $Id: all_db.php,v 1.53 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Display a form for alter and perform actual alter
/**
* Manage casts in a database
*
- * $Id: casts.php,v 1.12 2005/11/25 08:49:08 jollytoad Exp $
+ * $Id: casts.php,v 1.13 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show default list of casts in the database
$tableName =& $_REQUEST['view'];
else
die("No table provided!");
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Displays a screen where they can alter a column
/**
* List constraints on a table
*
- * $Id: constraints.php,v 1.46 2007/05/02 16:12:06 ioguix Exp $
+ * $Id: constraints.php,v 1.47 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./classes/class.select.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Confirm and then actually add a FOREIGN KEY constraint
/**
* Manage conversions in a database
*
- * $Id: conversions.php,v 1.12 2005/11/25 08:49:08 jollytoad Exp $
+ * $Id: conversions.php,v 1.13 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show default list of conversions in the database
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.96 2007/04/24 15:31:29 soranzo Exp $
+ * $Id: database.php,v 1.97 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
function _highlight($string, $term) {
return str_replace($term, "<b>{$term}</b>", $string);
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.61 2007/04/22 00:41:58 mr-russ Exp $
+ * $Id: display.php,v 1.62 2007/05/28 17:30:32 ioguix Exp $
*/
// Prevent timeouts on large exports (non-safe mode only)
global $conf, $lang;
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show confirmation of edit and perform actual update
/**
* Manage domains in a database
*
- * $Id: domains.php,v 1.28 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: domains.php,v 1.29 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to save after altering a domain
/**
* Manage functions in a database
*
- * $Id: functions.php,v 1.63 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: functions.php,v 1.64 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to save after editing a function
/**
* Manage groups in a database cluster
*
- * $Id: groups.php,v 1.23 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: groups.php,v 1.24 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Add user to a group
/**
* List indexes on a table
*
- * $Id: indexes.php,v 1.40 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: indexes.php,v 1.41 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./classes/class.select.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show confirmation of cluster index and perform actual cluster
/**
* List extra information on a table
*
- * $Id: info.php,v 1.13 2007/01/26 17:55:42 soranzo Exp $
+ * $Id: info.php,v 1.14 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* List all the information on the table
/**
* Manage languages in a database
*
- * $Id: languages.php,v 1.10 2005/11/25 08:49:08 jollytoad Exp $
+ * $Id: languages.php,v 1.11 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show default list of languages in the database
/**
* Function library read in upon startup
*
- * $Id: lib.inc.php,v 1.113 2007/04/18 14:06:14 mr-russ Exp $
+ * $Id: lib.inc.php,v 1.114 2007/05/28 17:30:32 ioguix Exp $
*/
+
+ $PHP_SELF = htmlentities($_SERVER['PHP_SELF']);
+
include_once('./libraries/decorator.inc.php');
include_once('./lang/translations.php');
/**
* Login screen
*
- * $Id: login.php,v 1.34 2007/04/24 14:49:00 soranzo Exp $
+ * $Id: login.php,v 1.35 2007/05/28 17:30:32 ioguix Exp $
*/
global $conf;
// 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
require_once('./libraries/lib.inc.php');
-
+
+ global $PHP_SELF;
+
$misc->printHeader($lang['strlogin']);
$misc->printBody();
$misc->printTrail('root');
if (isset($msg)) $misc->printMsg($msg);
?>
-<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" name="login_form">
+<form action="<?php echo $PHP_SELF ?>" method="post" name="login_form">
<?php
if (!empty($_POST)) $vars =& $_POST;
else $vars =& $_GET;
/**
* Manage operators in a database
*
- * $Id: operators.php,v 1.25 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: operators.php,v 1.26 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show read only properties for an operator
/**
* Slony database tab plugin
*
- * $Id: plugin_slony.php,v 1.18 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: plugin_slony.php,v 1.19 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
// Avoid database connections whenever possible
switch ($action) {
/**
* Manage privileges in a database
*
- * $Id: privileges.php,v 1.41 2007/04/23 18:48:06 soranzo Exp $
+ * $Id: privileges.php,v 1.42 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Grant permissions on an object to a user
/**
* List reports in a database
*
- * $Id: reports.php,v 1.28 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: reports.php,v 1.29 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Displays a screen where they can edit a report
/**
* Manage roles in a database cluster
*
- * $Id: roles.php,v 1.6 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: roles.php,v 1.7 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Displays a screen for create a new role
/**
* List rules on a table OR view
*
- * $Id: rules.php,v 1.28 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: rules.php,v 1.29 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Confirm and then actually create a rule
/**
* Manage schemas in a database
*
- * $Id: schemas.php,v 1.14 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: schemas.php,v 1.15 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show default list of schemas in the database
/**
* Manage sequences in a database
*
- * $Id: sequences.php,v 1.39 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: sequences.php,v 1.40 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Display list of all sequences in the database/schema
/**
* Manage servers
*
- * $Id: servers.php,v 1.7 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: servers.php,v 1.8 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
function doLogout() {
global $misc, $lang, $_reload_browser;
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.35 2007/04/22 00:41:58 mr-russ Exp $
+ * $Id: sql.php,v 1.36 2007/05/28 17:30:32 ioguix Exp $
*/
// Prevent timeouts on large exports (non-safe mode only)
exit;
}
- $PHP_SELF = $_SERVER['PHP_SELF'];
-
$misc->printHeader($lang['strqueryresults']);
$misc->printBody();
$misc->printTrail('database');
/**
* Alternative SQL editing window
*
- * $Id: sqledit.php,v 1.33 2007/04/24 15:31:29 soranzo Exp $
+ * $Id: sqledit.php,v 1.34 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Private function to display server and list of databases
/**
* List tables in a database
*
- * $Id: tables.php,v 1.96 2007/05/16 17:03:51 ioguix Exp $
+ * $Id: tables.php,v 1.97 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Displays a screen where they can enter a new table
/**
* Manage tablespaces in a database cluster
*
- * $Id: tablespaces.php,v 1.12 2007/01/15 15:48:17 soranzo Exp $
+ * $Id: tablespaces.php,v 1.13 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to allow altering of a tablespace
/**
* List tables in a database
*
- * $Id: tblproperties.php,v 1.80 2007/05/14 17:59:32 soranzo Exp $
+ * $Id: tblproperties.php,v 1.81 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to save after altering a table
/**
* List triggers on a table
*
- * $Id: triggers.php,v 1.32 2007/05/02 16:12:07 ioguix Exp $
+ * $Id: triggers.php,v 1.33 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./classes/class.select.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to save after altering a trigger
/**
* Manage types in a database
*
- * $Id: types.php,v 1.35 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: types.php,v 1.36 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Show read only properties for a type
/**
* Manage users in a database cluster
*
- * $Id: users.php,v 1.35 2007/04/23 15:22:29 soranzo Exp $
+ * $Id: users.php,v 1.36 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* If a user is not a superuser, then we have an 'account management' page
/**
* List views in a database
*
- * $Id: viewproperties.php,v 1.27 2007/05/14 17:59:32 soranzo Exp $
+ * $Id: viewproperties.php,v 1.28 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Function to save after editing a view
/**
* Manage views in a database
*
- * $Id: views.php,v 1.69 2007/05/03 17:01:03 ioguix Exp $
+ * $Id: views.php,v 1.70 2007/05/28 17:30:32 ioguix Exp $
*/
// Include application functions
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = '';
- $PHP_SELF = $_SERVER['PHP_SELF'];
/**
* Ask for select parameters and perform select