path disclosure

This commit is contained in:
Marc Delisle
2003-07-19 12:22:00 +00:00
parent fc1c4637ab
commit b6f7d26cf5
4 changed files with 26 additions and 0 deletions

View File

@@ -2,6 +2,14 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
PMA_checkParameters(array('db','table','action','num_fields'));
// Get available character sets (MySQL >= 4.1)
if (PMA_MYSQL_INT_VERSION >= 40100 && !defined('PMA_MYSQL_CHARSETS_LIB_INCLUDED')) {

View File

@@ -16,6 +16,8 @@ if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
include('./libraries/bookmark.lib.php3');
}
// Check parameters
PMA_checkParameters(array('db','table'));
/**
* Defines the urls to return to in case of error in a sql statement

View File

@@ -9,6 +9,14 @@
error_reporting(E_ALL);
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
PMA_checkParameters(array('db'));
/**
* Count amount of navigation tabs
*/

View File

@@ -5,6 +5,14 @@
// this should be recoded as functions, to avoid messing with global
// variables
// Check parameters
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
PMA_checkParameters(array('db', 'table', 'err_url_0'));
/**
* Gets table informations
*/