From ca910e8de827203542e78a721f02b6376fcf4381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 7 Jul 2017 12:48:43 -0300 Subject: Move classes to PhpMyAdmin namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move Table to PhpMyAdmin namespace - Move Template to PhpMyAdmin namespace - Move ThemeManager to PhpMyAdmin namespace - Move Theme to PhpMyAdmin namespace - Move Tracker to PhpMyAdmin namespace - Move Transformations to PhpMyAdmin namespace - Move TypesMySQL to PhpMyAdmin namespace - Move Types to PhpMyAdmin namespace - Move Util to PhpMyAdmin namespace - Move VersionInformation to PhpMyAdmin namespace - Move Url to PhpMyAdmin namespace Signed-off-by: MaurĂ­cio Meneghini Fauth --- index.php | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1759ec0ec0..1dc5932d6f 100644 --- a/index.php +++ b/index.php @@ -13,8 +13,8 @@ use PhpMyAdmin\Message; use PhpMyAdmin\RecentFavoriteTable; use PhpMyAdmin\Response; use PhpMyAdmin\Sanitize; -use PMA\libraries\ThemeManager; -use PMA\libraries\URL; +use PhpMyAdmin\ThemeManager; +use PhpMyAdmin\Url; /** * Gets some core libraries and displays a top message if required @@ -71,11 +71,11 @@ if (isset($_REQUEST['ajax_request']) && ! empty($_REQUEST['access_time'])) { if (! empty($_REQUEST['db'])) { $page = null; if (! empty($_REQUEST['table'])) { - $page = PMA\libraries\Util::getScriptNameForOption( + $page = PhpMyAdmin\Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabTable'], 'table' ); } else { - $page = PMA\libraries\Util::getScriptNameForOption( + $page = PhpMyAdmin\Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabDatabase'], 'database' ); } @@ -110,7 +110,7 @@ $show_query = '1'; // Any message to display? if (! empty($message)) { - echo PMA\libraries\Util::getMessage($message); + echo PhpMyAdmin\Util::getMessage($message); unset($message); } if (isset($_SESSION['partial_logout'])) { @@ -120,7 +120,7 @@ if (isset($_SESSION['partial_logout'])) { unset($_SESSION['partial_logout']); } -$common_url_query = URL::getCommon(); +$common_url_query = Url::getCommon(); $mysql_cur_user_and_host = ''; // when $server > 0, a server has been chosen so we can display @@ -186,7 +186,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 ) { echo '
  • '; include_once 'libraries/select_server.lib.php'; - echo PMA\libraries\Util::getImage('s_host.png') , " " + echo PhpMyAdmin\Util::getImage('s_host.png') , " " , PMA_selectServer(true, true); echo '
  • '; } @@ -202,7 +202,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 if ($cfg['ShowChgPassword']) { $conditional_class = 'ajax'; PMA_printListItem( - PMA\libraries\Util::getImage('s_passwd.png') . " " . __( + PhpMyAdmin\Util::getImage('s_passwd.png') . " " . __( 'Change password' ), 'li_change_password', @@ -217,12 +217,12 @@ if ($server > 0 || count($cfg['Servers']) > 1 } // end if echo '
  • '; echo '
    ' , "\n" - . URL::getHiddenInputs(null, null, 4, 'collation_connection') + . Url::getHiddenInputs(null, null, 4, 'collation_connection') . ' ' . "\n" @@ -249,7 +249,7 @@ $language_manager = LanguageManager::getInstance(); if (empty($cfg['Lang']) && $language_manager->hasChoice()) { echo '
  • '; - echo PMA\libraries\Util::getImage('s_lang.png') , " " + echo PhpMyAdmin\Util::getImage('s_lang.png') , " " , $language_manager->getSelectorDisplay(); echo '
  • '; } @@ -258,7 +258,7 @@ if (empty($cfg['Lang']) && $language_manager->hasChoice()) { if ($GLOBALS['cfg']['ThemeManager']) { echo '
  • '; - echo PMA\libraries\Util::getImage('s_theme.png') , " " + echo PhpMyAdmin\Util::getImage('s_theme.png') , " " , ThemeManager::getInstance()->getHtmlSelectBox(); echo '
  • '; } @@ -273,7 +273,7 @@ echo ''; if ($server > 0) { echo '
      '; PMA_printListItem( - PMA\libraries\Util::getImage('b_tblops.png') . " " . __( + PhpMyAdmin\Util::getImage('b_tblops.png') . " " . __( 'More settings' ), 'li_user_preferences', @@ -303,7 +303,7 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) { 'li_server_info' ); PMA_printListItem( - __('Server type:') . ' ' . PMA\libraries\Util::getServerType(), + __('Server type:') . ' ' . PhpMyAdmin\Util::getServerType(), 'li_server_type' ); PMA_printListItem( @@ -352,11 +352,11 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { $php_ext_string = __('PHP extension:') . ' '; - $extensions = PMA\libraries\Util::listPHPExtensions(); + $extensions = PhpMyAdmin\Util::listPHPExtensions(); foreach ($extensions as $extension) { $php_ext_string .= ' ' . $extension - . PMA\libraries\Util::showPHPDocu('book.' . $extension . '.php'); + . PhpMyAdmin\Util::showPHPDocu('book.' . $extension . '.php'); } PMA_printListItem( @@ -405,7 +405,7 @@ PMA_printListItem( PMA_printListItem( __('Documentation'), 'li_pma_docs', - PMA\libraries\Util::getDocuLink('index'), + PhpMyAdmin\Util::getDocuLink('index'), null, '_blank' ); @@ -435,14 +435,14 @@ PMA_printListItem( PMA_printListItem( __('List of changes'), 'li_pma_changes', - 'changelog.php' . URL::getCommon(), + 'changelog.php' . Url::getCommon(), null, '_blank' ); PMA_printListItem( __('License'), 'li_pma_license', - 'license.php' . URL::getCommon(), + 'license.php' . Url::getCommon(), null, '_blank' ); @@ -657,7 +657,7 @@ function PMA_printListItem($name, $listId = null, $url = null, $mysql_help_page = null, $target = null, $a_id = null, $class = null, $a_class = null ) { - echo PMA\libraries\Template::get('list/item') + echo PhpMyAdmin\Template::get('list/item') ->render( array( 'content' => $name, -- cgit v1.2.3