File: setup.php

package info (click to toggle)
phpmyadmin 4%3A3.3.7-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,136 kB
  • ctags: 111,906
  • sloc: php: 196,356; sh: 617; sql: 208; perl: 142; python: 105; makefile: 42
file content (32 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * @version $Id$
 * @package phpMyAdmin-DBG
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
 * checks for DBG extension
 *
 * allways use $GLOBALS here, as this script is included by footer.inc.hp
 * which can also be included from inside a function
 */
if ($GLOBALS['cfg']['DBG']['php']) {
    /**
     * Loads the DBG extension if needed
     */
    if (! @extension_loaded('dbg') ) {
        $message = PMA_Message::error('strCantLoad');
        $message->addParam('DBG');
        $message->addMessage('<a href="./Documentation.html#faqdbg" target="documentation">', false);
        $message->addString('strDocu');
        $message->addMessage('</a>', false);
        $message->display();
    } else {
        $GLOBALS['DBG'] = true;
    }
}
?>