2.11.1.2 release
[phpmyadmin/arisferyanto.git] / libraries / dbg / setup.php
blob30d870000879624489f7b00a3e69b43a156df40c
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * @version $Id$
5 */
7 /**
8 * checks for DBG extension and trys to load if not loaded
10 * allways use $GLOBALS here, as this script is included by footer.inc.hp
11 * which can also be included from inside a function
13 if ($GLOBALS['cfg']['DBG']['enable']) {
14 /**
15 * Loads the DBG extension if needed
17 if (! @extension_loaded('dbg') && ! PMA_dl('dbg')) {
18 echo '<div class="warning">'
19 .sprintf($GLOBALS['strCantLoad'], 'DBG')
20 .' <a href="./Documentation.html#faqdbg" target="documentation">'
21 .$GLOBALS['strDocu'] . '</a>'
22 .'</div>';
23 } else {
24 $GLOBALS['DBG'] = true;