home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / server_links.inc.php < prev    next >
Encoding:
PHP Script  |  2003-11-26  |  1.4 KB  |  68 lines

  1. <?php
  2. /* $Id: server_links.inc.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. // Check parameters
  6.  
  7. require_once('./libraries/common.lib.php');
  8. PMA_checkParameters(array('is_superuser', 'url_query'));
  9.  
  10. /**
  11.  * Counts amount of navigation tabs
  12.  */
  13. $server_links_count_tabs = 0;
  14.  
  15.  
  16. /**
  17.  * Put something in $sub_part
  18.  */
  19. if (!isset($sub_part)) {
  20.     $sub_part = '';
  21. }
  22.  
  23.  
  24. /**
  25.  * Prepares links
  26.  */
  27. if ($is_superuser) {
  28.     $cfg['ShowMysqlInfo'] = TRUE;
  29.     $cfg['ShowMysqlVars'] = TRUE;
  30. }
  31.  
  32.  
  33. /**
  34.  * Displays a message
  35.  */
  36. if (!empty($message)) {
  37.     PMA_showMessage($message);
  38. }
  39.  
  40.  
  41. /**
  42.  * Displays tab links
  43.  */
  44. ?>
  45. <table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
  46.     <tr>
  47.         <td width="8"> </td>
  48. <?php
  49. echo PMA_printTab($strDatabases, 'server_databases.php', $url_query);
  50. if ($cfg['ShowMysqlInfo']) {
  51.     echo PMA_printTab($strStatus, 'server_status.php', $url_query);
  52. }
  53. if ($cfg['ShowMysqlVars']) {
  54.     echo PMA_printTab($strServerTabVariables, 'server_variables.php', $url_query);
  55. }
  56. if (PMA_MYSQL_INT_VERSION >= 40100) {
  57.     echo PMA_printTab($strCharsets, 'server_collations.php', $url_query);
  58. }
  59. if ($is_superuser) {
  60.     echo PMA_printTab($strPrivileges, 'server_privileges.php', $url_query);
  61. }
  62. echo PMA_printTab($strServerTabProcesslist, 'server_processlist.php', $url_query);
  63. echo PMA_printTab($strExport, 'server_export.php', $url_query);
  64. ?>
  65.     </tr>
  66. </table>
  67. <br />
  68.