Drop $cfg['MainPageIconic'].
This commit is contained in:
parent
cfee08c781
commit
5d54482c66
@ -2302,9 +2302,6 @@ setfacl -d -m "g:www-data:rwx" tmp
|
||||
<a href="#faq6_27">format string expansion</a>.
|
||||
</dd>
|
||||
|
||||
<dt id="cfg_MainPageIconic">$cfg['MainPageIconic'] boolean</dt>
|
||||
<dd>Uses icons on main page in lists and menu tabs.</dd>
|
||||
|
||||
<dt id="cfg_ReplaceHelpImg">$cfg['ReplaceHelpImg'] boolean</dt>
|
||||
<dd>Shows a help button instead of the "Documentation" message.
|
||||
</dd>
|
||||
|
||||
@ -1772,9 +1772,8 @@ function PMA_generate_html_tab($tab, $url_params = array(), $base_dir = '')
|
||||
$tab['link'] .= $tab['fragment'];
|
||||
}
|
||||
|
||||
// display icon, even if iconic is disabled but the link-text is missing
|
||||
if (($GLOBALS['cfg']['MainPageIconic'] || empty($tab['text']))
|
||||
&& isset($tab['icon'])
|
||||
// display icon
|
||||
if (isset($tab['icon'])
|
||||
) {
|
||||
// avoid generating an alt tag, because it only illustrates
|
||||
// the text that follows and if browser does not display
|
||||
|
||||
@ -2527,13 +2527,6 @@ $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
|
||||
*/
|
||||
$cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
|
||||
|
||||
/**
|
||||
* show icons in list on main page and on menu tabs (true|false)?
|
||||
*
|
||||
* @global boolean $cfg['MainPageIconic']
|
||||
*/
|
||||
$cfg['MainPageIconic'] = true;
|
||||
|
||||
/**
|
||||
* show help button instead of Documentation text (true|false)?
|
||||
*
|
||||
|
||||
@ -303,7 +303,6 @@ $strConfigLoginCookieValidity_desc = __('Define how long (in seconds) a login co
|
||||
$strConfigLoginCookieValidity_name = __('Login cookie validity');
|
||||
$strConfigLongtextDoubleTextarea_desc = __('Double size of textarea for LONGTEXT columns');
|
||||
$strConfigLongtextDoubleTextarea_name = __('Bigger textarea for LONGTEXT');
|
||||
$strConfigMainPageIconic_name = __('Use icons on main page');
|
||||
$strConfigMaxCharactersInDisplayedSQL_desc = __('Maximum number of characters used when a SQL query is displayed');
|
||||
$strConfigMaxCharactersInDisplayedSQL_name = __('Maximum displayed SQL length');
|
||||
$strConfigMaxDbList_cmt = __('Users cannot set a higher value');
|
||||
|
||||
@ -186,7 +186,6 @@ $forms['Left_frame']['Left_tables'] = array(
|
||||
'ShowTooltip',
|
||||
'ShowTooltipAliasTB');
|
||||
$forms['Main_frame']['Startup'] = array(
|
||||
'MainPageIconic',
|
||||
'ShowCreateDb' => ':group',
|
||||
'SuggestDBName',
|
||||
':group:end',
|
||||
|
||||
@ -96,7 +96,6 @@ $forms['Left_frame']['Left_tables'] = array(
|
||||
'ShowTooltip',
|
||||
'ShowTooltipAliasTB');
|
||||
$forms['Main_frame']['Startup'] = array(
|
||||
'MainPageIconic',
|
||||
'ShowCreateDb' => ':group',
|
||||
'SuggestDBName',
|
||||
':group:end',
|
||||
|
||||
@ -55,57 +55,34 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
|
||||
<?php
|
||||
echo '<a href="main.php?' . $query_url . '"'
|
||||
.' title="' . __('Home') . '">'
|
||||
.($GLOBALS['cfg']['MainPageIconic']
|
||||
? PMA_getImage('b_home.png', __('Home'))
|
||||
: __('Home'))
|
||||
. PMA_getImage('b_home.png', __('Home'))
|
||||
.'</a>' . "\n";
|
||||
// if we have chosen server
|
||||
if ($server != 0) {
|
||||
// Logout for advanced authentication
|
||||
if ($GLOBALS['cfg']['Server']['auth_type'] != 'config') {
|
||||
echo ($GLOBALS['cfg']['MainPageIconic'] ? '' : ' - ');
|
||||
echo '<a href="index.php?' . $query_url . '&old_usr='
|
||||
.urlencode($PHP_AUTH_USER) . '" target="_parent"'
|
||||
.' title="' . __('Log out') . '" >'
|
||||
.($GLOBALS['cfg']['MainPageIconic']
|
||||
? PMA_getImage('s_loggoff.png', __('Log out'))
|
||||
: __('Log out'))
|
||||
. PMA_getImage('s_loggoff.png', __('Log out'))
|
||||
.'</a>' . "\n";
|
||||
} // end if ($GLOBALS['cfg']['Server']['auth_type'] != 'config'
|
||||
|
||||
$anchor = 'querywindow.php?' . PMA_generate_common_url($db, $table);
|
||||
|
||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||
$query_frame_link_text = PMA_getImage('b_selboard.png', __('Query window'));
|
||||
} else {
|
||||
echo '<br />' . "\n";
|
||||
$query_frame_link_text = __('Query window');
|
||||
}
|
||||
echo '<a href="' . $anchor . '&no_js=true"'
|
||||
.' title="' . __('Query window') . '"';
|
||||
echo ' onclick="if (window.parent.open_querywindow()) return false;"';
|
||||
echo '>' . $query_frame_link_text . '</a>' . "\n";
|
||||
echo '>' . PMA_getImage('b_selboard.png', __('Query window')) . '</a>' . "\n";
|
||||
} // end if ($server != 0)
|
||||
|
||||
echo ' <a href="Documentation.html" target="documentation"'
|
||||
.' title="' . __('phpMyAdmin documentation') . '" >';
|
||||
|
||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||
echo PMA_getImage('b_docs.png', __('phpMyAdmin documentation'));
|
||||
} else {
|
||||
echo '<br />' . __('phpMyAdmin documentation');
|
||||
}
|
||||
echo PMA_getImage('b_docs.png', __('phpMyAdmin documentation'));
|
||||
echo '</a>';
|
||||
|
||||
$documentation_link = PMA_showMySQLDocu('', '', true);
|
||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||
echo $documentation_link . "\n";
|
||||
} else {
|
||||
preg_match('/<a[^>]*>/', $documentation_link, $matches);
|
||||
$link = $matches[0];
|
||||
echo substr($link, 0, strlen($link) - 1) . ' title="' . __('Documentation') . '" >'
|
||||
. '<br />' . __('Documentation') . '</a>';
|
||||
}
|
||||
echo PMA_showMySQLDocu('', '', true) . "\n";
|
||||
|
||||
$params = array('uniqid' => uniqid());
|
||||
if (!empty($GLOBALS['db'])) {
|
||||
@ -113,11 +90,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
|
||||
}
|
||||
echo '<a href="navigation.php?' . PMA_generate_common_url($params)
|
||||
. '" title="' . __('Reload navigation frame') . '" target="frame_navigation">';
|
||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||
echo PMA_getImage('s_reload.png', __('Reload navigation frame'));
|
||||
} else {
|
||||
echo '<br />' . __('Reload navigation frame');
|
||||
}
|
||||
echo PMA_getImage('s_reload.png', __('Reload navigation frame'));
|
||||
echo '</a>';
|
||||
|
||||
echo '</div>' . "\n";
|
||||
|
||||
@ -234,7 +234,7 @@ function PMA_userprefs_redirect(array $forms, array $old_settings, $file_name, $
|
||||
array_diff_assoc($old_settings, $new_settings)
|
||||
+ array_diff_assoc($new_settings, $old_settings)
|
||||
);
|
||||
$check_keys = array('NaturalOrder', 'MainPageIconic', 'DefaultTabDatabase',
|
||||
$check_keys = array('NaturalOrder', 'DefaultTabDatabase',
|
||||
'Server/hide_db', 'Server/only_db');
|
||||
$check_keys = array_merge(
|
||||
$check_keys, $forms['Left_frame']['Left_frame'],
|
||||
|
||||
@ -73,7 +73,7 @@ if (empty($_REQUEST['dontlimitchars'])) {
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ($GLOBALS['cfg']['MainPageIconic'] ? PMA_getImage('s_tbl.png') : '')
|
||||
. PMA_getImage('s_tbl.png')
|
||||
. ' ' . __('Binary log') . "\n"
|
||||
. '</h2>' . "\n";
|
||||
|
||||
|
||||
@ -26,9 +26,7 @@ require 'libraries/server_links.inc.php';
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ' ' . ($GLOBALS['cfg']['MainPageIconic']
|
||||
? PMA_getImage('s_asci.png')
|
||||
: '')
|
||||
. ' ' . PMA_getImage('s_asci.png')
|
||||
. '' . __('Character Sets and Collations') . "\n"
|
||||
. '</h2>' . "\n";
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ if ((isset($_REQUEST['drop_selected_dbs']) || isset($_REQUEST['query_type']))
|
||||
if ($mult_btn == __('Yes')) {
|
||||
$number_of_databases = count($selected);
|
||||
} else {
|
||||
$number_of_databases = 0;
|
||||
$number_of_databases = 0;
|
||||
}
|
||||
$message = PMA_Message::success(_ngettext('%1$d database has been dropped successfully.', '%1$d databases have been dropped successfully.', $number_of_databases));
|
||||
$message->addParam($number_of_databases);
|
||||
@ -113,9 +113,7 @@ require 'libraries/server_links.inc.php';
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ($GLOBALS['cfg']['MainPageIconic']
|
||||
? PMA_getImage('s_db.png')
|
||||
: '')
|
||||
. PMA_getImage('s_db.png')
|
||||
. ($dbstats ? __('Databases statistics') : __('Databases')) . "\n"
|
||||
.'</h2>' . "\n";
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ if (empty($_REQUEST['engine'])
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ($GLOBALS['cfg']['MainPageIconic'] ? PMA_getImage('b_engine.png') : '')
|
||||
. PMA_getImage('b_engine.png')
|
||||
. "\n" . __('Storage Engines') . "\n"
|
||||
. '</h2>' . "\n";
|
||||
|
||||
@ -82,7 +82,7 @@ if (empty($_REQUEST['engine'])
|
||||
|
||||
$engine_plugin = PMA_StorageEngine::getEngine($_REQUEST['engine']);
|
||||
echo '<h2>' . "\n"
|
||||
. ($GLOBALS['cfg']['MainPageIconic'] ? PMA_getImage('b_engine.png') : '')
|
||||
. PMA_getImage('b_engine.png')
|
||||
. ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
|
||||
. ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
|
||||
. '</h2>' . "\n\n";
|
||||
|
||||
@ -32,9 +32,7 @@ require 'libraries/server_links.inc.php';
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ($GLOBALS['cfg']['MainPageIconic']
|
||||
? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
|
||||
.' width="16" height="16" alt="" />' : '')
|
||||
. PMA_getImage('b_engine.png')
|
||||
. "\n" . __('Plugins') . "\n"
|
||||
. '</h2>' . "\n";
|
||||
|
||||
@ -91,10 +89,8 @@ pma_theme_image = '<?php echo $GLOBALS['pmaThemeImage']; ?>';
|
||||
<caption class="tblHeaders">
|
||||
<a class="top" href="#serverinfo"><?php
|
||||
echo __('Begin');
|
||||
echo $GLOBALS['cfg']['MainPageIconic']
|
||||
? '<img src="' . $GLOBALS['pmaThemeImage'] .
|
||||
's_asc.png" width="11" height="9" align="middle" alt="" />'
|
||||
: ''; ?></a>
|
||||
echo PMA_getImage('s_asc.png');
|
||||
?></a>
|
||||
<?php echo htmlspecialchars($plugin_type); ?>
|
||||
</caption>
|
||||
<thead>
|
||||
|
||||
@ -786,9 +786,7 @@ require 'libraries/server_links.inc.php';
|
||||
/**
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||
echo PMA_getImage('s_status.png');
|
||||
}
|
||||
echo PMA_getImage('s_status.png');
|
||||
|
||||
echo __('Runtime Information');
|
||||
|
||||
|
||||
@ -1222,11 +1222,7 @@ if (! isset($_REQUEST['submit_connect'])
|
||||
/**
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . ($GLOBALS['cfg']['MainPageIconic']
|
||||
? PMA_getImage('s_sync.png')
|
||||
: '')
|
||||
. __('Synchronize')
|
||||
.'</h2>';
|
||||
echo '<h2>' . PMA_getImage('s_sync.png') . __('Synchronize') .'</h2>';
|
||||
|
||||
echo '<div id="serverstatus">
|
||||
<form name="connection_form" id="connection_form" method="post" action="server_synchronize.php"
|
||||
|
||||
@ -87,8 +87,7 @@ require 'libraries/server_links.inc.php';
|
||||
/**
|
||||
* Displays the sub-page heading
|
||||
*/
|
||||
echo '<h2>' . "\n"
|
||||
. ($cfg['MainPageIconic'] ? PMA_getImage('s_vars.png') : '')
|
||||
echo '<h2>' . PMA_getImage('s_vars.png')
|
||||
. '' . __('Server variables and settings') . "\n"
|
||||
. PMA_showMySQLDocu('server_system_variables', 'server_system_variables')
|
||||
. '</h2>' . "\n";
|
||||
|
||||
@ -1267,7 +1267,6 @@ div#queryboxcontainer div#bookmarkoptions {
|
||||
/* END main page */
|
||||
|
||||
|
||||
<?php if ($GLOBALS['cfg']['MainPageIconic']) { ?>
|
||||
/* iconic view for ul items */
|
||||
li#li_create_database {
|
||||
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>b_newdb.png);
|
||||
@ -1349,7 +1348,6 @@ li#li_user_preferences {
|
||||
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>b_tblops.png);
|
||||
}
|
||||
/* END iconic view for ul items */
|
||||
<?php } /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?>
|
||||
|
||||
|
||||
#body_browse_foreigners {
|
||||
|
||||
@ -1655,7 +1655,6 @@ div#queryboxcontainer div#bookmarkoptions {
|
||||
/* END main page */
|
||||
|
||||
|
||||
<?php if ($GLOBALS['cfg']['MainPageIconic']) { ?>
|
||||
/* iconic view for ul items */
|
||||
li#li_create_database {
|
||||
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>b_newdb.png);
|
||||
@ -1737,7 +1736,6 @@ li#li_user_preferences {
|
||||
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>b_tblops.png);
|
||||
}
|
||||
/* END iconic view for ul items */
|
||||
<?php } /* end if $GLOBALS['cfg']['MainPageIconic'] */ ?>
|
||||
|
||||
|
||||
#body_browse_foreigners {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user