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