003 File Manager
Current Path:
/usr/local/www/sites/shared/phpmyadmin/libraries
usr
/
local
/
www
/
sites
/
shared
/
phpmyadmin
/
libraries
/
📁
..
📄
admin.php
(5.23 KB)
📄
advisory_rules.txt
(25.94 KB)
📁
certs
📄
check_user_privileges.inc.php
(838 B)
📁
classes
📄
common.inc.php
(13.53 KB)
📄
config.default.php
(68.56 KB)
📄
config.values.php
(10.6 KB)
📄
db_common.inc.php
(4.32 KB)
📄
db_table_exists.inc.php
(3.34 KB)
📁
dbi
📄
error.inc.php
(1.26 KB)
📄
hash.lib.php
(586 B)
📄
index.php
(8.46 KB)
📄
information_schema_relations.inc.php
(10.95 KB)
📄
input.php
(1.49 KB)
📄
language_stats.inc.php
(1.54 KB)
📄
mult_submits.inc.php
(10.71 KB)
📄
mysql_relations.inc.php
(5.12 KB)
📄
replication.inc.php
(4.34 KB)
📁
rte
📄
server_common.inc.php
(990 B)
📄
special_schema_links.inc.php
(17.47 KB)
📄
tbl_columns_definition_form.inc.php
(15.58 KB)
📄
tbl_common.inc.php
(1.22 KB)
📄
tbl_partition_definition.inc.php
(5.38 KB)
📄
user_preferences.inc.php
(2.25 KB)
📄
vendor_config.php
(1.88 KB)
Editing: db_table_exists.inc.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Ensure the database and the table exist (else move to the "parent" script) * and display headers * * @package PhpMyAdmin */ use PhpMyAdmin\Core; use PhpMyAdmin\Message; use PhpMyAdmin\Response; use PhpMyAdmin\Url; if (! defined('PHPMYADMIN')) { exit; } if (empty($is_db)) { if (strlen($db) > 0) { $is_db = @$GLOBALS['dbi']->selectDb($db); } else { $is_db = false; } if (! $is_db) { // not a valid db name -> back to the welcome page if (! defined('IS_TRANSFORMATION_WRAPPER')) { $response = Response::getInstance(); if ($response->isAjax()) { $response->setRequestStatus(false); $response->addJSON( 'message', Message::error(__('No databases selected.')) ); } else { $url_params = array('reload' => 1); if (isset($message)) { $url_params['message'] = $message; } if (! empty($sql_query)) { $url_params['sql_query'] = $sql_query; } if (isset($show_as_php)) { $url_params['show_as_php'] = $show_as_php; } Core::sendHeaderLocation( './index.php' . Url::getCommonRaw($url_params) ); } exit; } } } // end if (ensures db exists) if (empty($is_table) && !defined('PMA_SUBMIT_MULT') && !defined('TABLE_MAY_BE_ABSENT') ) { // Not a valid table name -> back to the db_sql.php if (strlen($table) > 0) { $is_table = $GLOBALS['dbi']->getCachedTableContent(array($db, $table), false); if (! $is_table) { $_result = $GLOBALS['dbi']->tryQuery( 'SHOW TABLES LIKE \'' . $GLOBALS['dbi']->escapeString($table) . '\';', PhpMyAdmin\DatabaseInterface::CONNECT_USER, PhpMyAdmin\DatabaseInterface::QUERY_STORE ); $is_table = @$GLOBALS['dbi']->numRows($_result); $GLOBALS['dbi']->freeResult($_result); } } else { $is_table = false; } if (! $is_table) { if (!defined('IS_TRANSFORMATION_WRAPPER')) { if (strlen($table) > 0) { // SHOW TABLES doesn't show temporary tables, so try select // (as it can happen just in case temporary table, it should be // fast): /** * @todo should this check really * only happen if IS_TRANSFORMATION_WRAPPER? */ $_result = $GLOBALS['dbi']->tryQuery( 'SELECT COUNT(*) FROM ' . PhpMyAdmin\Util::backquote($table) . ';', PhpMyAdmin\DatabaseInterface::CONNECT_USER, PhpMyAdmin\DatabaseInterface::QUERY_STORE ); $is_table = ($_result && @$GLOBALS['dbi']->numRows($_result)); $GLOBALS['dbi']->freeResult($_result); } if (! $is_table) { include './db_sql.php'; exit; } } if (! $is_table) { exit; } } } // end if (ensures table exists)
Upload File
Create Folder