Documentation TYPO3 par Ameos

server_common.inc.php

00001 <?php
00002 /* $Id: server_common.inc.php,v 2.4 2004/10/20 15:12:46 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00008 require_once('./libraries/grab_globals.lib.php');
00009 require_once('./libraries/common.lib.php');
00010 
00014 unset($db, $table);
00015 
00019 $url_query = PMA_generate_common_url();
00020 
00024 $err_url = 'main.php' . $url_query;
00025 
00029 require_once('./header.inc.php');
00030 
00034 // We were checking privileges with 'USE mysql' but users with the global
00035 // priv CREATE TEMPORARY TABLES or LOCK TABLES can do a 'USE mysql'
00036 // (even if they cannot see the tables)
00037 
00038 $is_superuser = PMA_DBI_try_query('SELECT COUNT(*) FROM mysql.user');
00039 
00040 // now, select the mysql db
00041 if ($is_superuser) {
00042     PMA_DBI_free_result($is_superuser);
00043     PMA_DBI_select_db('mysql', $userlink);
00044     $is_superuser = TRUE;
00045 } else {
00046     $is_superuser = FALSE;
00047 }
00048 
00049 $has_binlogs = FALSE;
00050 $binlogs = PMA_DBI_try_query('SHOW MASTER LOGS', NULL, PMA_DBI_QUERY_STORE);
00051 if ($binlogs) {
00052     if (PMA_DBI_num_rows($binlogs) > 0) {
00053         $binary_logs = array();
00054         while ($row = PMA_DBI_fetch_array($binlogs)) {
00055             $binary_logs[] = $row[0];
00056         }
00057         $has_binlogs = TRUE;
00058     }
00059     PMA_DBI_free_result($binlogs);
00060 }
00061 unset($binlogs);
00062 ?>


Généré par TYPO3 Ameos avec  doxygen 1.4.6