';
reset($available_languages);
while (list($id,$tmplang) = each($available_languages)) {
$lang_name = ucfirst(substr(strstr($tmplang[0], '|'), 1));
echo "\n";
?>
[ ]
\n";
}
/**
* Displays the welcome message and the server informations
*/
?>
phpMyAdmin 2.3.0alpha-20010604 (unofficial devel-branch)
0) {
$res_version = mysql_query('SELECT Version() as version') or mysql_die();
$row_version = mysql_fetch_array($res_version);
echo 'MySQL ' . $row_version['version'] . ' ' . $strRunning . ' ' . $cfgServer['host'];
if (!empty($cfgServer['port'])) {
echo ':' . $cfgServer['port'];
}
echo "
\n";
}
/**
* Reload mysql (flush privileges)
*/
if (($server > 0) && isset($mode) && ($mode == 'reload')) {
$result = mysql_query('FLUSH PRIVILEGES');
echo '';
if ($result != 0) {
echo $strMySQLReloaded;
} else {
echo $strReloadFailed;
}
echo '
' . "\n";
}
/**
* Displays the servers choice form and/or the server-related links
*/
?>
1)
{
?>
-
0 (a server selected)
if ($server > 0
&& empty($cfgServer['only_db']))
{
// 2.1. With authentification
if ($cfgServer['adv_auth'])
{
// Get user's rights
if (empty($cfgServer['port'])) {
$dbh = mysql_connect($cfgServer['host'], $cfgServer['stduser'], $cfgServer['stdpass']);
} else {
$dbh = mysql_connect($cfgServer['host'] . ':' . $cfgServer['port'], $cfgServer['stduser'], $cfgServer['stdpass']);
}
$rs_usr = mysql_query('select * from mysql.user where User="' . $cfgServer['user'] . '"', $dbh);
$result_usr = mysql_fetch_array($rs_usr);
$create = ($result_usr['Create_priv'] == 'Y');
// The user is allowed the create a db
if ($create) {
echo "\n";
?>
-
-
-
-
-
-
-
-
-
-
-
-
0)
?>
-
(SourceForge) [ ChangeLog ]
-
-
phpMyAdmin