Documentation TYPO3 par Ameos |
00001 <?php 00002 /* $Id: main.php,v 2.73.2.1 2005/09/07 07:20:00 nijel Exp $ */ 00003 // vim: expandtab sw=4 ts=4 sts=4: 00004 00008 define('PMA_DISPLAY_HEADING', 0); 00009 00013 require_once('./libraries/grab_globals.lib.php'); 00014 require_once('./libraries/common.lib.php'); 00015 setcookie('pma_lang', $lang, time() + 60*60*24*30, $cookie_path, '', $is_https); 00016 if (isset($convcharset)) { 00017 setcookie('pma_charset', $convcharset, time() + 60*60*24*30, $cookie_path, '', $is_https); 00018 } 00019 00023 require_once('./libraries/select_theme.lib.php'); 00024 // Defines the "item" image depending on text direction 00025 $item_img = $GLOBALS['pmaThemeImage'] . 'item_ltr.png'; 00026 // Defines for MainPageIconic 00027 $str_iconic_list = ''; 00028 $str_iconic_colspan = ''; 00029 $str_normal_list = '<td valign="top" align="right" width="16"><img src="'.$item_img.'" border="0" hspace="2" vspace="5" /></td>'; 00030 if ($cfg['MainPageIconic']) { 00031 $str_iconic_list .= "<td width=\"16\" valign=\"top\" align=\"center\" nowrap=\"nowrap\">%1\$s" 00032 . "<img src=\"" . $pmaThemeImage . "%2\$s\" border=\"0\" width=\"16\" height=\"16\" hspace=\"2\" alt=\"%3\$s\" />" 00033 . "%4\$s</td>"; 00034 $str_iconic_colspan .= ' colspan="2"'; 00035 } else { 00036 $str_iconic_list = ''; 00037 $str_iconic_colspan = ' colspan="2"'; 00038 } 00039 00040 // Handles some variables that may have been sent by the calling script 00041 if (isset($db)) { 00042 unset($db); 00043 } 00044 if (isset($table)) { 00045 unset($table); 00046 } 00047 $show_query = '1'; 00048 require_once('./header.inc.php'); 00049 echo "\n"; 00050 00051 00056 // note: for proper display of RTL languages, I removed the 00057 // align="left" in the next <td> tag 00058 ?> 00059 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 00060 <tr> 00061 <td valign="top"> 00062 <h1> 00063 <?php 00064 echo sprintf($strWelcome, ' phpMyAdmin ' . PMA_VERSION . ''); 00065 ?> 00066 </h1> 00067 <?php 00068 00069 // Don't display server info if $server == 0 (no server selected) 00070 // loic1: modified in order to have a valid words order whatever is the 00071 // language used 00072 if ($server > 0) { 00073 // robbat2: Use the verbose name of the server instead of the hostname 00074 // if a value is set 00075 if (!empty($cfg['Server']['verbose'])) { 00076 $server_info = $cfg['Server']['verbose']; 00077 } else { 00078 $server_info = $cfg['Server']['host']; 00079 $server_info .= (empty($cfg['Server']['port']) ? '' : ':' . $cfg['Server']['port']); 00080 } 00081 // loic1: skip this because it's not a so good idea to display sockets 00082 // used to everybody 00083 // if (!empty($cfg['Server']['socket']) && PMA_PHP_INT_VERSION >= 30010) { 00084 // $server_info .= ':' . $cfg['Server']['socket']; 00085 // } 00086 $res = PMA_DBI_query('SELECT USER();'); 00087 list($mysql_cur_user_and_host) = PMA_DBI_fetch_row($res); 00088 $mysql_cur_user = substr($mysql_cur_user_and_host, 0, strrpos($mysql_cur_user_and_host, '@')); 00089 00090 PMA_DBI_free_result($res); 00091 unset($res, $row); 00092 00093 $full_string = str_replace('%pma_s1%', PMA_MYSQL_STR_VERSION, $strMySQLServerProcess); 00094 $full_string = str_replace('%pma_s2%', $server_info, $full_string); 00095 $full_string = str_replace('%pma_s3%', htmlspecialchars($mysql_cur_user_and_host), $full_string); 00096 00097 echo '<p><b>' . $full_string . '</b></p>' . "\n"; 00098 } // end if 00099 00100 00101 // Any message to display? 00102 00103 if (isset($message)) { 00104 PMA_showMessage($message); 00105 unset($message); 00106 } 00107 00111 if (($server > 0) && isset($mode) && ($mode == 'reload')) { 00112 $result = PMA_DBI_query('FLUSH PRIVILEGES'); 00113 echo '<p><b>'; 00114 if ($result != 0) { 00115 echo $strMySQLReloaded; 00116 } else { 00117 echo $strReloadFailed; 00118 } 00119 unset($result); 00120 echo '</b></p>' . "\n\n"; 00121 } 00122 ?> 00123 </td> 00124 <?php 00125 if (@file_exists($pmaThemeImage . 'logo_right.png')) { 00126 // td and img seems not to obey the general dir= of the html tag 00127 if ($GLOBALS['text_dir'] == 'ltr') { 00128 $tmp_align = 'right'; 00129 } else { 00130 $tmp_align = 'left'; 00131 } 00132 echo ' <td align="' . $tmp_align . '" valign="top">' . "\n"; 00133 echo ' <img src="' . $pmaThemeImage . 'logo_right.png" alt="phpMyAdmin - Logo" border="0" hspace="5" vspace="5" align="' . $tmp_align . '" />' . "\n"; 00134 echo ' </td>'; 00135 } 00136 ?> 00137 </tr></table> 00138 <hr /> 00139 <?php 00140 00144 if (!$cfg['LeftDisplayServers']) { 00145 $show_server_left = FALSE; 00146 include('./libraries/select_server.lib.php'); 00147 } 00148 00149 // nested table needed 00150 ?> 00151 <table border="0" cellpadding="0" cellspacing="0"> 00152 <tr> 00153 <td valign="top"> 00154 <!-- MySQL and phpMyAdmin related links --> 00155 <?php 00159 $is_superuser = FALSE; 00160 00161 if ($server > 0) { 00162 00163 require_once('./libraries/check_user_privileges.lib.php'); 00164 00165 $common_url_query = PMA_generate_common_url(); 00166 00167 if ($is_superuser) { 00168 $cfg['ShowMysqlInfo'] = TRUE; 00169 $cfg['ShowMysqlVars'] = TRUE; 00170 $cfg['ShowChgPassword'] = TRUE; 00171 } 00172 if ($cfg['Server']['auth_type'] == 'config') { 00173 $cfg['ShowChgPassword'] = FALSE; 00174 } 00175 00176 // loic1: Displays the MySQL column only if at least one feature has to be 00177 // displayed 00178 if ($is_superuser || $is_create_priv || $is_process_priv || $is_reload_priv 00179 || $cfg['ShowMysqlInfo'] || $cfg['ShowMysqlVars'] || $cfg['ShowChgPassword'] 00180 || $cfg['Server']['auth_type'] != 'config') { 00181 ?> 00182 <!-- MySQL server related links --> 00183 <table cellpadding="3" cellspacing="0"> 00184 <tr> 00185 <th class="tblHeaders"<?php echo $str_iconic_colspan; ?>> MySQL</th> 00186 </tr> 00187 <tr><?php 00188 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','b_newdb.png',$strCreateNewDatabase,'') : $str_normal_list); 00189 ?> 00190 <!-- db creation form --> 00191 <td valign="top" align="<?php echo $cell_align_left; ?>" nowrap="nowrap"> 00192 <?php require('./libraries/display_create_database.lib.php'); ?> 00193 </td> 00194 </tr> 00195 <?php 00196 echo "\n"; 00197 00198 // Server related links 00199 ?> 00200 <!-- server-related links --> 00201 <?php 00202 if ($cfg['ShowMysqlInfo']) { 00203 ?> 00204 <tr><?php 00205 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="./server_status.php?'.$common_url_query.'">','s_status.png',$strMySQLShowStatus,'</a>') : $str_normal_list); 00206 ?> 00207 <td> 00208 <a href="./server_status.php?<?php echo $common_url_query; ?>"> 00209 <?php echo $strMySQLShowStatus . "\n"; ?> 00210 </a> 00211 </td> 00212 </tr> 00213 <?php 00214 } // end if 00215 if ($cfg['ShowMysqlVars']) { 00216 ?> 00217 <tr><?php 00218 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="./server_variables.php?'.$common_url_query.'">','s_vars.png',$strMySQLShowVars,'</a>') : $str_normal_list); 00219 ?> 00220 <td> 00221 <a href="./server_variables.php?<?php echo $common_url_query; ?>"><?php echo $strMySQLShowVars;?></a> <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'SHOW_VARIABLES') . "\n"; ?> 00222 </td> 00223 </tr> 00224 <?php 00225 } 00226 ?> 00227 <tr><?php 00228 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="./server_processlist.php?'.$common_url_query.'">','s_process.png',$strMySQLShowProcess,'</a>') : $str_normal_list); 00229 ?> 00230 <td> 00231 <a href="./server_processlist.php?<?php echo $common_url_query; ?>"> 00232 <?php echo $strMySQLShowProcess; ?></a> 00233 <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'SHOW_PROCESSLIST') . "\n"; ?> 00234 </td> 00235 </tr> 00236 <?php 00237 00238 if (PMA_MYSQL_INT_VERSION >= 40100) { 00239 echo "\n"; 00240 ?> 00241 <tr><?php 00242 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="./server_collations.php?'.$common_url_query.'">','s_asci.png',$strCharsetsAndCollations,'</a>') : $str_normal_list); 00243 ?> 00244 <td> 00245 <a href="./server_collations.php?<?php echo $common_url_query; ?>"> 00246 <?php echo $strCharsetsAndCollations; ?></a> 00247 </td> 00248 </tr> 00249 <?php 00250 } 00251 ?> 00252 <tr><?php 00253 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="./server_engines.php?'.$common_url_query.'">','b_engine.png',$strStorageEngines,'</a>') : $str_normal_list); 00254 ?> 00255 <td> 00256 <a href="./server_engines.php?<?php echo $common_url_query; ?>"> 00257 <?php echo $strStorageEngines; ?></a> 00258 </td> 00259 </tr> 00260 <?php 00261 if ($is_reload_priv) { 00262 echo "\n"; 00263 ?> 00264 <tr><?php 00265 echo ' ' . ($str_iconic_list!='' ? sprintf($str_iconic_list,'<a href="main.php?'.$common_url_query.'&mode=reload">','s_reload.png',$strReloadMySQL,'</a>') : $str_normal_list); 00266 ?> 00267 <td> 00268 <a href="main.php?<?php echo $common_url_query; ?>&mode=reload"> 00269 <?php echo $strReloadMySQL; ?></a> 00270 <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'FLUSH') . "\n"; ?> 00271 </td> 00272 </tr> 00273 <?php 00274 } 00275 00276 if ($is_superuser) { 00277 echo "\n"; 00278 ?> 00279 <tr><?php 00280 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="server_privileges.php?'.$common_url_query.'">','s_rights.png',$strPrivileges,'</a>') : $str_normal_list); 00281 ?> 00282 <td> 00283 <a href="server_privileges.php?<?php echo $common_url_query; ?>"> 00284 <?php echo $strPrivileges; ?></a> 00285 </td> 00286 </tr> 00287 <?php 00288 } 00289 00290 $binlogs = PMA_DBI_try_query('SHOW MASTER LOGS', NULL, PMA_DBI_QUERY_STORE); 00291 if ($binlogs) { 00292 if (PMA_DBI_num_rows($binlogs) > 0) { 00293 ?> 00294 <tr><?php 00295 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="server_binlog.php?'.$common_url_query.'">','s_tbl.png',$strBinaryLog,'</a>') : $str_normal_list); 00296 ?> 00297 <td> 00298 <a href="server_binlog.php?<?php echo $common_url_query; ?>"> 00299 <?php echo $strBinaryLog; ?></a> 00300 </td> 00301 </tr> 00302 <?php 00303 } 00304 PMA_DBI_free_result($binlogs); 00305 } 00306 unset($binlogs); 00307 ?> 00308 <tr><?php 00309 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="server_databases.php?'.$common_url_query.'">','s_db.png',$strDatabases,'</a>') : $str_normal_list); 00310 ?> 00311 <td> 00312 <a href="./server_databases.php?<?php echo $common_url_query; ?>"> 00313 <?php echo $strDatabases; ?></a> 00314 </td> 00315 </tr> 00316 <tr> 00317 <?php 00318 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="server_export.php?'.$common_url_query.'">','b_export.png',$strExport,'</a>') : $str_normal_list); 00319 ?> 00320 <td> 00321 <a href="./server_export.php?<?php echo $common_url_query; ?>"> 00322 <?php echo $strExport; ?></a> 00323 </td> 00324 </tr> 00325 <?php 00326 00327 // Change password (needs another message) 00328 if ($cfg['ShowChgPassword']) { 00329 echo "\n"; 00330 ?> 00331 <tr> 00332 <?php 00333 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="user_password.php?'.$common_url_query.'">','s_passwd.png',$strChangePassword,'</a>') : $str_normal_list); 00334 ?> 00335 <td> 00336 <a href="user_password.php?<?php echo $common_url_query; ?>"> 00337 <?php echo ($strChangePassword); ?></a> 00338 </td> 00339 </tr> 00340 <?php 00341 } // end if 00342 00343 // Logout for advanced authentication 00344 if ($cfg['Server']['auth_type'] != 'config') { 00345 $http_logout = ($cfg['Server']['auth_type'] == 'http') 00346 ? "\n" 00347 . ' <a href="./Documentation.html#login_bug" target="documentation">' 00348 . ($cfg['ReplaceHelpImg'] ? '<img src="' . $pmaThemeImage . 'b_info.png" width="11" height="11" border="0" alt="Info" align="middle" />' : '(*)') . '</a>' 00349 : ''; 00350 echo "\n"; 00351 ?> 00352 <tr> 00353 <?php 00354 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="index.php?'.$common_url_query.'&old_usr='.urlencode($PHP_AUTH_USER).'">','s_loggoff.png',$strLogout,'</a>') : $str_normal_list); 00355 ?> 00356 <td> 00357 00358 <a href="index.php?<?php echo $common_url_query; ?>&old_usr=<?php echo urlencode($PHP_AUTH_USER); ?>" target="_parent"> 00359 <b><?php echo $strLogout; ?></b></a> <?php echo $http_logout . "\n"; ?> 00360 </td> 00361 </tr> 00362 <?php 00363 } // end if 00364 ?> 00365 </table> 00366 <?php 00367 } // end if 00368 } // end of if ($server > 0) 00369 echo "\n"; 00370 00371 ?> 00372 </td> 00373 <td width="20"> </td> 00374 <td valign="top"> 00375 <table border="0" cellpadding="3" cellspacing="0"> 00376 <tr> 00377 <th class="tblHeaders"<?php echo $str_iconic_colspan; ?>> phpMyAdmin</th> 00378 </tr> 00379 <?php 00380 // Displays language selection combo 00381 if (empty($cfg['Lang'])) { 00382 ?> 00383 <!-- Language Selection --> 00384 <tr><?php 00385 echo ' ' . ($str_iconic_list !='' ? sprintf($str_iconic_list,'<a href="./translators.html" target="documentation">','s_lang.png','Language','</a>') : $str_normal_list); 00386 ?> 00387 <td nowrap="nowrap"> 00388 <form method="post" action="index.php" target="_parent"> 00389 <input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" /> 00390 <input type="hidden" name="server" value="<?php echo $server; ?>" /> 00391 Language <a href="./translators.html" target="documentation"><?php 00392 if ($cfg['ReplaceHelpImg']){ 00393 echo '<img src="' . $pmaThemeImage . 'b_info.png" border="0" width="11" height="11" alt="Info" hspace="1" vspace="1" />'; 00394 }else{ echo '(*)'; } 00395 ?></a>: <select name="lang" dir="ltr" onchange="this.form.submit();" style="vertical-align: middle"> 00396 <?php 00397 echo "\n"; 00398 00409 function PMA_cmp(&$a, $b) 00410 { 00411 return (strcmp($a[1], $b[1])); 00412 } // end of the 'PMA_cmp()' function 00413 00414 uasort($available_languages, 'PMA_cmp'); 00415 foreach ($available_languages AS $id => $tmplang) { 00416 $lang_name = ucfirst(substr(strrchr($tmplang[0], '|'), 1)); 00417 if ($lang == $id) { 00418 $selected = ' selected="selected"'; 00419 } else { 00420 $selected = ''; 00421 } 00422 echo ' '; 00423 echo '<option value="' . $id . '"' . $selected . '>' . $lang_name . ' (' . $id . ')</option>' . "\n"; 00424 } 00425 ?> 00426 </select> 00427 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript> 00428 </form> 00429 </td> 00430 </tr> 00431 00432 <?php 00433 } 00434 00435 if (isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] 00436 && $server != 0 && $allow_recoding && PMA_MYSQL_INT_VERSION < 40100) { 00437 echo "\n"; 00438 ?> 00439 <!-- Charset Selection --> 00440 <tr><?php 00441 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','s_asci.png',$strMySQLCharset,'') : $str_normal_list); 00442 ?> 00443 <td> 00444 <form method="post" action="index.php" target="_parent"> 00445 <input type="hidden" name="server" value="<?php echo $server; ?>" /> 00446 <input type="hidden" name="lang" value="<?php echo $lang; ?>" /> 00447 <?php echo $strMySQLCharset;?>: 00448 <select name="convcharset" dir="ltr" onchange="this.form.submit();" style="vertical-align: middle"> 00449 <?php 00450 echo "\n"; 00451 foreach ($cfg['AvailableCharsets'] AS $id => $tmpcharset) { 00452 if ($convcharset == $tmpcharset) { 00453 $selected = ' selected="selected"'; 00454 } else { 00455 $selected = ''; 00456 } 00457 echo ' ' 00458 . '<option value="' . $tmpcharset . '"' . $selected . '>' . $tmpcharset . '</option>' . "\n"; 00459 } 00460 ?> 00461 </select> 00462 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript> 00463 </form> 00464 </td> 00465 </tr> 00466 <?php 00467 } elseif ($server != 0 && PMA_MYSQL_INT_VERSION >= 40100) { 00468 echo ' <!-- Charset Info -->' . "\n" 00469 . ' <tr>' . "\n" 00470 .' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','s_asci.png',$strMySQLCharset,'') : $str_normal_list) . "\n" 00471 . ' <td>' . "\n" 00472 . ' ' . $strMySQLCharset . ': ' 00473 . ' <b>' 00474 . ' ' . $mysql_charsets_descriptions[$mysql_charset_map[strtolower($charset)]] . "\n" 00475 . ' (' . $mysql_charset_map[strtolower($charset)] . ')' . "\n" 00476 . ' </b>' . "\n" 00477 . ' </td>' . "\n" 00478 . ' </tr>' . "\n" 00479 . ' <!-- MySQL Connection Collation -->' . "\n" 00480 . ' <tr>' . "\n" 00481 .' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'','s_asci.png',$strMySQLConnectionCollation,'') : $str_normal_list) . "\n" 00482 . ' <td>' . "\n" 00483 . ' <form method="post" action="index.php" target="_parent">' . "\n" 00484 . PMA_generate_common_hidden_inputs(NULL, NULL, 4, 'collation_connection') 00485 . ' <label for="select_collation_connection">' . "\n" 00486 . ' ' . $strMySQLConnectionCollation . ': ' . "\n" 00487 . ' </label>' . "\n" 00488 . PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'collation_connection', 'select_collation_connection', $collation_connection, TRUE, 4, TRUE) 00489 . ' <noscript><input type="submit" value="' . $strGo . '" style="vertical-align: middle" /></noscript>' . "\n" 00490 // put the doc link in the form so that it appears on the same line 00491 . PMA_showMySQLDocu('MySQL_Database_Administration', 'Charset-connection') . "\n" 00492 . ' </form>' . "\n" 00493 . ' </td>' . "\n" 00494 . ' </tr>' . "\n"; 00495 } 00496 echo "\n"; 00497 00498 // added by Michael Keck <mail_at_michaelkeck_dot_de> 00499 // ThemeManager if available 00500 00501 if (isset($available_themes_choices) && $available_themes_choices > 1) { 00502 $theme_selected = FALSE; 00503 $theme_preview_path= './themes.php'; 00504 $theme_preview_href = '<a href="' . $theme_preview_path . '" target="themes" onclick="' 00505 . "window.open('" . $theme_preview_path . "','themes','left=10,top=20,width=510,height=350,scrollbars=yes,status=yes,resizable=yes');" 00506 . '">'; 00507 ?> 00508 <!-- Theme Manager --> 00509 <tr> 00510 <?php 00511 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,$theme_preview_href,'s_theme.png',(isset($strTheme) ? $strTheme : 'Theme (Style)'),'</a>') : $str_normal_list) . "\n"; 00512 ?> 00513 <td> 00514 <form name="setTheme" method="post" action="index.php" target="_parent"> 00515 <?php 00516 echo PMA_generate_common_hidden_inputs('', '', 5); 00517 echo $theme_preview_href 00518 . (isset($strTheme) ? $strTheme : 'Theme (Style)') 00519 . '</a>:' . "\n"; 00520 ?> 00521 <select name="set_theme" dir="ltr" onchange="this.form.submit();" style="vertical-align: middle"> 00522 <?php 00523 foreach ($available_themes_choices AS $cur_theme) { 00524 echo '<option value="' . $cur_theme . '"'; 00525 if ($cur_theme == $theme) { 00526 echo ' selected="selected"'; 00527 } 00528 echo '>' . htmlspecialchars($available_themes_choices_names[$cur_theme]) . '</option>'; 00529 } 00530 ?> 00531 </select> 00532 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript> 00533 </form> 00534 </td> 00535 </tr> 00536 <?php 00537 } 00538 ?> 00539 <!-- Documentation --> 00540 <tr><?php 00541 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="Documentation.html" target="documentation">','b_docs.png',$strPmaDocumentation,'</a>') : $str_normal_list); 00542 ?> 00543 <td nowrap="nowrap"> 00544 <a href="Documentation.html" target="documentation"><b><?php echo $strPmaDocumentation; ?></b></a> 00545 </td> 00546 </tr> 00547 00548 <?php 00549 if ($is_superuser || $cfg['ShowPhpInfo']) { 00550 ?> 00551 <!-- PHP Information --> 00552 <tr><?php 00553 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="phpinfo.php?' . PMA_generate_common_url() . '" target="_blank">','php_sym.png',$strShowPHPInfo,'</a>') : $str_normal_list); 00554 ?> 00555 <td nowrap="nowrap"> 00556 <a href="phpinfo.php?<?php echo PMA_generate_common_url(); ?>" target="_blank"><?php echo $strShowPHPInfo; ?></a> 00557 </td> 00558 </tr> 00559 <?php 00560 } 00561 echo "\n"; 00562 ?> 00563 00564 <!-- phpMyAdmin related urls --> 00565 <tr><?php 00566 echo ' ' . ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="http://www.phpMyAdmin.net/" target="_blank">','b_home.png',$strHomepageOfficial,'</a>') : $str_normal_list); 00567 ?> 00568 <td nowrap="nowrap"> 00569 <a href="http://www.phpMyAdmin.net/" target="_blank"><?php echo $strHomepageOfficial; ?></a> 00570 </td> 00571 </tr> 00572 <tr> 00573 <?php 00574 echo '<td><img src="' .$GLOBALS['pmaThemeImage'] . 'spacer.png' . '" width="1" height="1" border="0" /></td>'; 00575 ?> 00576 <td nowrap="nowrap"> 00577 [<a href="changelog.php" target="_blank">ChangeLog</a>] 00578 [<a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpmyadmin/phpMyAdmin/" target="_blank">CVS</a>] 00579 [<a href="http://sourceforge.net/mail/?group_id=23067" target="_blank">Lists</a>] 00580 </td> 00581 </tr> 00582 </table> 00583 00584 </td> 00585 </tr> 00586 </table> 00587 00588 <hr /> 00589 00590 00591 <?php 00601 if ($server != 0 00602 && $cfg['Server']['user'] == 'root' 00603 && $cfg['Server']['password'] == '') { 00604 echo '<div class="warning">' . $strInsecureMySQL . '</div>' . "\n"; 00605 } 00606 00612 if (PMA_PHP_INT_VERSION == 40203 && @extension_loaded('mbstring')) { 00613 echo '<div class="warning">' . $strPHP40203 . '</div>' . "\n"; 00614 } 00615 00621 if (@extension_loaded('mbstring') && @ini_get('mbstring.func_overload') > 1) { 00622 echo '<div class="warning">' . $strMbOverloadWarning . '</div>' . "\n"; 00623 } 00624 00629 if ($GLOBALS['using_mb_charset'] && !@extension_loaded('mbstring')) { 00630 echo '<div class="warning">' . $strMbExtensionMissing . '</div>' . "\n"; 00631 } 00632 00638 if (PMA_PHP_INT_VERSION < 40100) { 00639 echo '<div class="warning">' . sprintf($strUpgrade, 'PHP', '4.1.0') . '</div>' . "\n"; 00640 } 00641 00646 // not yet defined before the server choice 00647 if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) { 00648 echo '<div class="warning">' . sprintf($strUpgrade, 'MySQL', '3.23.32') . '</div>' . "\n"; 00649 } 00653 echo "\n"; 00654 require_once('./footer.inc.php'); 00655 ?>