Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / phpmyadmin / libraries / server_common.inc.php
blob39cc83803fdcc19bcc01c6301fbac24dfee83186
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @package PhpMyAdmin
5 */
6 if (! defined('PHPMYADMIN')) {
7 exit;
10 /**
11 * Handles some variables that may have been sent by the calling script
12 * Note: this can be called also from the db panel to get the privileges of
13 * a db, in which case we want to keep displaying the tabs of
14 * the Database panel
16 if (empty($viewing_mode)) {
17 $db = $table = '';
20 /**
21 * Set parameters for links
23 $url_query = PMA_generate_common_url($db);
25 /**
26 * Defines the urls to return to in case of error in a sql statement
28 $err_url = 'index.php' . $url_query;
30 /**
31 * @global boolean Checks for superuser privileges
33 $is_superuser = PMA_isSuperuser();
35 // now, select the mysql db
36 if ($is_superuser && ! PMA_DRIZZLE) {
37 PMA_DBI_select_db('mysql', $userlink);
40 /**
41 * @global array binary log files
43 $binary_logs = PMA_DRIZZLE
44 ? null
45 : PMA_DBI_fetch_result(
46 'SHOW MASTER LOGS',
47 'Log_name',
48 null,
49 null,
50 PMA_DBI_QUERY_STORE
53 PMA_Util::checkParameters(
54 array('is_superuser', 'url_query'), false