php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/lampp/phpmyadmin/ |
files >> //opt/lampp/phpmyadmin/server_databases.php |
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Server databases * * @package PhpMyAdmin */ /** * Does the common work */ require_once 'libraries/common.inc.php'; require_once 'libraries/server_common.inc.php'; require_once 'libraries/server_databases.lib.php'; $response = PMA_Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('server_databases.js'); if (! PMA_DRIZZLE) { include_once 'libraries/replication.inc.php'; } else { $replication_types = array(); $GLOBALS['replication_info'] = null; } require 'libraries/build_html_for_db.lib.php'; /** * Sets globals from $_POST */ $post_params = array( 'mult_btn', 'query_type', 'selected' ); foreach ($post_params as $one_post_param) { if (isset($_POST[$one_post_param])) { $GLOBALS[$one_post_param] = $_POST[$one_post_param]; } } list($sort_by, $sort_order) = PMA_getListForSortDatabase(); $dbstats = empty($_REQUEST['dbstats']) ? 0 : 1; $pos = empty($_REQUEST['pos']) ? 0 : (int) $_REQUEST['pos']; /** * Drops multiple databases */ // workaround for IE behavior (it returns some coordinates based on where // the mouse was on the Drop image): if (isset($_REQUEST['drop_selected_dbs_x'])) { $_REQUEST['drop_selected_dbs'] = true; } if ((isset($_REQUEST['drop_selected_dbs']) || isset($_REQUEST['query_type'])) && ($is_superuser || $cfg['AllowUserDropDatabase']) ) { PMA_dropMultiDatabases(); } /** * Displays the sub-page heading */ $header_type = $dbstats ? "database_statistics" : "databases"; $response->addHTML(PMA_getHtmlForSubPageHeader($header_type)); /** * Displays For Create database. */ $html = ''; if ($cfg['ShowCreateDb']) { $html .= '<ul><li id="li_create_database" class="no_bullets">' . "\n"; include 'libraries/display_create_database.lib.php'; $html .= ' </li>' . "\n"; $html .= '</ul>' . "\n"; } /** * Gets the databases list */ if ($server > 0) { $databases = $GLOBALS['dbi']->getDatabasesFull( null, $dbstats, null, $sort_by, $sort_order, $pos, true ); $databases_count = count($GLOBALS['pma']->databases); } else { $databases_count = 0; } /** * Displays the page */ if ($databases_count > 0 && ! empty($databases)) { $html .= PMA_getHtmlForDatabase( $databases, $databases_count, $pos, $dbstats, $sort_by, $sort_order, $is_superuser, $cfg, $replication_types, $GLOBALS['replication_info'], $url_query ); } else { $html .= __('No databases'); } unset($databases_count); $response->addHTML($html);y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`