small relooking of start page
This commit is contained in:
@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-08-22 Olivier M<>ller <om@omnis.ch>
|
||||
* main.php3: relooked the start page with the help of Lo<4C>c
|
||||
* main.php3: allow everybody to look at the server vars and status
|
||||
(removed check about 'References_priv').
|
||||
* lang/*: added $strServerChoice and $strPmaDocumentation.
|
||||
* images/item.gif: used on main.php3
|
||||
|
||||
2001-08-22 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* Documentation.html: added a FAQ about index creation
|
||||
|
||||
|
BIN
images/item.gif
Normal file
BIN
images/item.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 B |
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strShowThisQuery = ' Show this query here again ';
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -299,4 +299,6 @@ $strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = ' Use backquotes with tables and fields names '; //to translate
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again ';
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -299,4 +299,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -190,6 +190,7 @@ $strOverhead = 'Overhead';
|
||||
$strPassword = 'Password';
|
||||
$strPasswordEmpty = 'The password is empty!';
|
||||
$strPasswordNotSame = 'The passwords aren\'t the same!';
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';
|
||||
$strPHPVersion = 'PHP Version';
|
||||
$strPos1 = 'Begin';
|
||||
$strPrevious = 'Previous';
|
||||
@@ -238,6 +239,7 @@ $strSelectFields = 'Select fields (at least one):';
|
||||
$strSelectNumRows = 'in query';
|
||||
$strSend = 'Send';
|
||||
$strSequence = 'Seq.';
|
||||
$strServerChoice = 'Server Choice';
|
||||
$strServerVersion = 'Server version';
|
||||
$strSetEnumVal = 'If field type is "enum" or "set", please enter the values using this format: \'a\',\'b\',\'c\'...<br />If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, backslashes it (for example \'\\\\xyz\' or \'a\\\'b\').';
|
||||
$strShow = 'Show';
|
||||
|
@@ -189,8 +189,9 @@ $strOverhead = 'Perte';
|
||||
|
||||
$strPassword = 'Mot de passe';
|
||||
$strPasswordEmpty = 'Le mot de passe est vide';
|
||||
$strPasswordNotSame = 'Les mots de passe doivent <20>tre identiques';
|
||||
$strPHPVersion = 'Version de PHP';
|
||||
$strPasswordNotSame = 'Les mots de passe doivent <20>tre identiques';
|
||||
$strPHPVersion = 'Version de PHP';
|
||||
$strPmaDocumentation = 'Documentation de phpMyAdmin';
|
||||
$strPos1 = 'D<>but';
|
||||
$strPrevious = 'Pr<50>c<EFBFBD>dent';
|
||||
$strPrimary = 'Primaire';
|
||||
@@ -238,6 +239,7 @@ $strSelectFields = 'Choisir les champs
|
||||
$strSelectNumRows = 'dans la requ<71>te';
|
||||
$strSend = 'Transmettre';
|
||||
$strSequence = 'S<>q.';
|
||||
$strServerChoice = 'Choix du serveur';
|
||||
$strServerVersion = 'Version du serveur';
|
||||
$strSetEnumVal = 'Les diff<66>rentes valeurs des champs de type enum/set sont <20> sp<73>cifier sous la forme \'a\',\'b\',\'c\'...<br />Pour utiliser un caract<63>re "\\" ou "\'" dans l\'une de ces valeurs, faites le pr<70>c<EFBFBD>der du caract<63>re d\'<27>chappement "\\" (par exemple \'\\\\xyz\' ou \'a\\\'b\').';
|
||||
$strShow = 'Afficher';
|
||||
|
@@ -190,6 +190,7 @@ $strOverhead = '
|
||||
$strPassword = 'Password';
|
||||
$strPasswordEmpty = 'Es wurde kein Passwort angegeben!';
|
||||
$strPasswordNotSame = 'Die eingegebenen Passw<73>rter sind nicht identisch!';
|
||||
$strPmaDocumentation = 'phpMyAdmin Dokumentation';
|
||||
$strPHPVersion = 'PHP Version';
|
||||
$strPos1 = 'Anfang';
|
||||
$strPrevious = 'Vorherige';
|
||||
@@ -238,6 +239,7 @@ $strSelectFields = 'Felder ausw
|
||||
$strSelectNumRows = 'in der Abfrage';
|
||||
$strSend = 'Senden';
|
||||
$strSequence = ' Sequenz ';
|
||||
$strServerChoice = 'Server Ausw<73>hlen';
|
||||
$strServerVersion = 'Server Version';
|
||||
$strSetEnumVal = 'Wenn das Feld vom Type \'ENUM\' oder \'SET\' ist, benutzen Sie das Format: \'a\',\'b\',\'c\',....<br />Wann immer Sie ein Backslash ("\") oder ein einfaches Anf<6E>hrungszeichen ("\'") verwenden,<br \>setzen Sie bitte ein Backslash vor das Zeichen. (z.B.: \'\\\\xyz\' or \'a\\\'b\').';
|
||||
$strShow = 'Zeige';
|
||||
@@ -297,5 +299,4 @@ $strWrongUser = 'Falscher Benutzername/Passwort. Zugriff verweigert.';
|
||||
|
||||
$strYes = 'Ja';
|
||||
|
||||
// To translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -302,4 +302,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -302,4 +302,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -302,4 +302,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -297,4 +297,6 @@ $strNoDatabases = 'No databases';
|
||||
$strNoDropDatabases = '"DROP DATABASE" statements are disabled.';
|
||||
$strSetEnumVal = 'If field type is "enum" or "set", please enter the values using this format: \'a\',\'b\',\'c\'...<br />If you ever need to put a backslash ("\") or a single quote ("\'") amongst those values, backslashes it (for example \'\\\\xyz\' or \'a\\\'b\').';
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -302,4 +302,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strSetEnumVal = 'If field type is "enum" or "set", please enter the values usin
|
||||
$strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -298,4 +298,6 @@ $strSetEnumVal = 'If field type is "enum" or "set", please enter the values usin
|
||||
$strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -299,4 +299,6 @@ $strSetEnumVal = 'If field type is "enum" or "set", please enter the values usin
|
||||
$strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -300,4 +300,6 @@ $strSetEnumVal = 'If field type is "enum" or "set", please enter the values usin
|
||||
$strShowPHPInfo = 'Show PHP information'; // To translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
@@ -303,4 +303,6 @@ $strShowThisQuery = ' Show this query here again '; //to translate
|
||||
$strStrucExcelCSV = 'CSV for Ms Excel data';
|
||||
$strTables = '%s table(s)'; //to translate
|
||||
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
|
||||
$strServerChoice = 'Server Choice';//to translate
|
||||
$strPmaDocumentation = 'phpMyAdmin Documentation';//to translate
|
||||
?>
|
||||
|
368
main.php3
368
main.php3
@@ -45,7 +45,7 @@ if (empty($cfgLang)) {
|
||||
[ <a href="index.php3?lang=<?php echo $id; ?>&server=<?php echo urlencode($server); ?>" target="_top" title="<?php echo $lang_name; ?>"><?php echo $id; ?></a> ]
|
||||
<?php
|
||||
}
|
||||
echo "\n<p><br />\n";
|
||||
echo "\n</p><br />\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,9 @@ if ($server > 0) {
|
||||
if (!empty($cfgServer['port'])) {
|
||||
echo ':' . $cfgServer['port'];
|
||||
}
|
||||
if (!empty($cfgServer['socket'])) {
|
||||
echo ':' . $cfgServer['socket'];
|
||||
}
|
||||
echo "</b></p>\n";
|
||||
}
|
||||
|
||||
@@ -79,21 +82,22 @@ if (($server > 0) && isset($mode) && ($mode == 'reload')) {
|
||||
} else {
|
||||
echo $strReloadFailed;
|
||||
}
|
||||
echo '</b></p>' . "\n";
|
||||
echo '</b></p>' . "\n\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Displays the servers choice form and/or the server-related links
|
||||
* Displays the MySQL servers choice form
|
||||
*/
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
// 1. The servers choice form
|
||||
if ($server == 0 || count($cfgServers) > 1) {
|
||||
?>
|
||||
<li>
|
||||
<!-- MySQL servers choice form -->
|
||||
<table>
|
||||
<tr>
|
||||
<th><?php echo $strServerChoice; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<form action="index.php3" target="_top">
|
||||
<select name="server">
|
||||
<?php
|
||||
@@ -105,7 +109,7 @@ if ($server == 0 || count($cfgServers) > 1) {
|
||||
{
|
||||
echo ' <option value="' . $key . '"';
|
||||
if (!empty($server) && ($server == $key)) {
|
||||
echo ' selected';
|
||||
echo ' selected="selected"';
|
||||
}
|
||||
echo '>';
|
||||
print((!empty($val['verbose'])) ? $val['verbose'] : $val['host']);
|
||||
@@ -115,6 +119,9 @@ if ($server == 0 || count($cfgServers) > 1) {
|
||||
if (!empty($val['only_db'])) {
|
||||
echo ' - ' . $val['only_db'];
|
||||
}
|
||||
if (!empty($val['user'])) {
|
||||
echo ' (' . $val['user'] . ')';
|
||||
}
|
||||
echo ' </option>' . "\n";
|
||||
} // end if (!empty($val['host']))
|
||||
} // end while
|
||||
@@ -123,18 +130,38 @@ if ($server == 0 || count($cfgServers) > 1) {
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
||||
</form>
|
||||
</li>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<?php
|
||||
} // end of the servers choice form
|
||||
?>
|
||||
|
||||
<!-- MySQL and phpMyAdmin related links -->
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
// 2. The server-related links if $server > 0 (a server selected)
|
||||
<?php
|
||||
/**
|
||||
* Displays the mysql server related links
|
||||
*/
|
||||
if ($server > 0
|
||||
&& empty($cfgServer['only_db']))
|
||||
{
|
||||
?>
|
||||
<!-- MySQL server related links -->
|
||||
<td valign="top" align="left">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2">MySQL</th>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
|
||||
$common_url_query = 'lang=' . $lang . '&server=' . urlencode($server);
|
||||
|
||||
// 2.1. With authentication
|
||||
// 1. With authentication
|
||||
if ($cfgServer['adv_auth'])
|
||||
{
|
||||
// Get user's rights
|
||||
@@ -172,62 +199,70 @@ if ($server > 0
|
||||
if ($create) {
|
||||
echo "\n";
|
||||
?>
|
||||
<!-- db creation form -->
|
||||
<li>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase . ' ' . show_docu('manual_Reference.html#CREATE_DATABASE'); ?><br />
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="hidden" name="reload" value="true" />
|
||||
<input type="text" name="db" value="<?php echo $db_to_create; ?>" />
|
||||
<input type="submit" value="<?php echo $strCreate; ?>" />
|
||||
</form>
|
||||
</li>
|
||||
<!-- db creation form -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase . ' ' . show_docu('manual_Reference.html#CREATE_DATABASE'); ?><br />
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="hidden" name="reload" value="true" />
|
||||
<input type="text" name="db" value="<?php echo $db_to_create; ?>" />
|
||||
<input type="submit" value="<?php echo $strCreate; ?>" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
} // end create db form
|
||||
|
||||
// Server related links
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href="index.php3?<?php echo$common_url_query; ?>&old_usr=<?php echo urlencode($PHP_AUTH_USER); ?>" target="_top">
|
||||
<b><?php echo $strLogout; ?></b></a>
|
||||
<br /><br />
|
||||
</li>
|
||||
|
||||
<!-- server-related links -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowStatus; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowVars;?></a>
|
||||
<?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
// Server related links
|
||||
if ($result_usr['References_priv'] == 'Y') {
|
||||
?>
|
||||
<!-- server-related links -->
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowStatus; ?></a> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</li>
|
||||
<li>
|
||||
<a href="sql.php3?<?php $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowVars;?></a> <?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?>
|
||||
</li>
|
||||
<?php
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
if ($result_usr['Process_priv'] == 'Y') {
|
||||
?>
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowProcess; ?></a> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</li>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>&display=simple">
|
||||
<?php echo $strMySQLShowProcess; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
if ($result_usr['Reload_priv'] == 'Y') {
|
||||
?>
|
||||
<li>
|
||||
<a href="main.php3?<?php echo $common_url_query; ?>&mode=reload">
|
||||
<?php echo $strReloadMySQL; ?></a> <?php echo show_docu('manual_Reference.html#FLUSH') . "\n"; ?>
|
||||
</li>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="main.php3?<?php echo $common_url_query; ?>&mode=reload">
|
||||
<?php echo $strReloadMySQL; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#FLUSH') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
}
|
||||
@@ -236,100 +271,177 @@ if ($server > 0
|
||||
$rows = @mysql_num_rows($result);
|
||||
if (!empty($rows)) {
|
||||
?>
|
||||
<li>
|
||||
<a href="user_details.php3?<?php echo $common_url_query; ?>&db=mysql&table=user">
|
||||
<?php echo $strUsers; ?></a> <?php echo show_docu('manual_Privilege_system.html#Privilege_system') . "\n"; ?>
|
||||
</li>
|
||||
<li>
|
||||
<a href="db_stats.php3?<?php echo $common_url_query; ?>">
|
||||
<?php echo $strDatabasesStats; ?></a>
|
||||
<br /><br />
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
echo "\n";
|
||||
} // end of 2.1 (AdvAuth case)
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="user_details.php3?<?php echo $common_url_query; ?>&db=mysql&table=user">
|
||||
<?php echo $strUsers; ?></a>
|
||||
<?php echo show_docu('manual_Privilege_system.html#Privilege_system') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="db_stats.php3?<?php echo $common_url_query; ?>">
|
||||
<?php echo $strDatabasesStats; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
// 2.2. No authentication
|
||||
<?php
|
||||
echo "\n";
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="index.php3?<?php echo$common_url_query; ?>&old_usr=<?php echo urlencode($PHP_AUTH_USER); ?>" target="_top">
|
||||
<b><?php echo $strLogout; ?></b></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
} // end of 1 (AdvAuth case)
|
||||
|
||||
// 2. No authentication
|
||||
else
|
||||
{
|
||||
?>
|
||||
<!-- db creation form -->
|
||||
<li>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase . ' ' . show_docu('manual_Reference.html#CREATE_DATABASE'); ?><br />
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="hidden" name="reload" value="true" />
|
||||
<input type="text" name="db" />
|
||||
<input type="submit" value="<?php echo $strCreate; ?>" />
|
||||
</form>
|
||||
</li>
|
||||
<!-- db creation form -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase . ' ' . show_docu('manual_Reference.html#CREATE_DATABASE'); ?><br />
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||
<input type="hidden" name="reload" value="true" />
|
||||
<input type="text" name="db" />
|
||||
<input type="submit" value="<?php echo $strCreate; ?>" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- server-related links -->
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>">
|
||||
<?php echo $strMySQLShowStatus; ?></a> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</li>
|
||||
<!-- server-related links -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>">
|
||||
<?php echo $strMySQLShowStatus; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>">
|
||||
<?php echo $strMySQLShowVars; ?></a> <?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?>
|
||||
</li>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>">
|
||||
<?php echo $strMySQLShowVars; ?></a>
|
||||
<?php echo show_docu('manual_Performance.html#Performance') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>">
|
||||
<?php echo $strMySQLShowProcess; ?></a> <?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</li>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>">
|
||||
<?php echo $strMySQLShowProcess; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#SHOW') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<li>
|
||||
<a href="main.php3?<?php echo $common_url_query; ?>&mode=reload">
|
||||
<?php echo $strReloadMySQL; ?></a> <?php echo show_docu('manual_Reference.html#FLUSH') . "\n"; ?>
|
||||
</li>
|
||||
<br /><br />
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="main.php3?<?php echo $common_url_query; ?>&mode=reload">
|
||||
<?php echo $strReloadMySQL; ?></a>
|
||||
<?php echo show_docu('manual_Reference.html#FLUSH') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$result = mysql_query('SELECT * FROM mysql.user');
|
||||
$rows = @mysql_num_rows($result);
|
||||
if (!empty($rows)) {
|
||||
echo "\n";
|
||||
?>
|
||||
<li>
|
||||
<a href="user_details.php3?<?php echo $common_url_query; ?>&db=mysql&table=user">
|
||||
<?php echo $strUsers; ?></a> <?php echo show_docu('manual_Privilege_system.html#Privilege_system') . "\n"; ?>
|
||||
</li>
|
||||
<li>
|
||||
<a href="db_stats.php3?<?php echo $common_url_query; ?>">
|
||||
<?php echo $strDatabasesStats; ?></a>
|
||||
<br /><br />
|
||||
</li>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="user_details.php3?<?php echo $common_url_query; ?>&db=mysql&table=user">
|
||||
<?php echo $strUsers; ?></a>
|
||||
<?php echo show_docu('manual_Privilege_system.html#Privilege_system') . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="db_stats.php3?<?php echo $common_url_query; ?>">
|
||||
<?php echo $strDatabasesStats; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
echo "\n";
|
||||
}
|
||||
} // end of 2.2 (no AdvAuth case)
|
||||
} // end of 2: if ($server > 0)
|
||||
} // end of 2 (no AdvAuth case)
|
||||
|
||||
echo "\n";
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<?php
|
||||
echo "\n";
|
||||
} // end of if ($server > 0)
|
||||
|
||||
|
||||
/**
|
||||
* Displays the phpMyAdmin related links
|
||||
*/
|
||||
?>
|
||||
|
||||
<!-- documentation -->
|
||||
<li>
|
||||
<a href="Documentation.html" target="_new"><b>phpMyAdmin <?php echo $strDocu; ?></b></a>
|
||||
</li>
|
||||
<!-- phpMyAdmin related links -->
|
||||
<td valign="top" align="left">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2">phpMyAdmin</th>
|
||||
</tr>
|
||||
|
||||
<!-- PHP Information -->
|
||||
<li>
|
||||
<a href="phpinfo.php3" target="_new"><?php echo $strShowPHPInfo; ?></a>
|
||||
</li>
|
||||
<!-- documentation -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="Documentation.html" target="_new"><b><?php echo $strPmaDocumentation; ?></b></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- phpMyAdmin related urls -->
|
||||
<li>
|
||||
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_new"><?php echo $strHomepageOfficial; ?></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://phpmyadmin.sourceforge.net/" target="_new">
|
||||
<?php echo $strHomepageSourceforge; ?></a>
|
||||
[<a href="ChangeLog" target="_new">ChangeLog</a>]
|
||||
[<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmyadmin/phpMyAdmin/" target="_new">CVS</a>]
|
||||
</li>
|
||||
</ul>
|
||||
<!-- PHP Information -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="phpinfo.php3" target="_new"><?php echo $strShowPHPInfo; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- phpMyAdmin related urls -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_new"><?php echo $strHomepageOfficial; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="http://phpmyadmin.sourceforge.net/" target="_new">
|
||||
<?php echo $strHomepageSourceforge; ?></a><br />
|
||||
[<a href="ChangeLog" target="_new">ChangeLog</a>]
|
||||
[<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmyadmin/phpMyAdmin/" target="_new">CVS</a>]
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user