<?php
/* $Id: setup.php,v 1.4 2003/06/13 07:37:26 nijel Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

if (!defined('PMA_DBG_SETUP_INCLUDED')) {
    define('PMA_DBG_SETUP_INCLUDED', 1);

    if (isset($GLOBALS['cfg']['DBG']['enable']) && $GLOBALS['cfg']['DBG']['enable']) {
        /**
         * Loads the DBG extension if needed
         */
        if (PMA_PHP_INT_VERSION >= 40000) {
            if (!@extension_loaded('dbg')) {
                PMA_dl('dbg');
            }
            if (!@extension_loaded('dbg')) {
                echo sprintf($strCantLoad, 'DBG') . '<br />' . "\n"
                    . '<a href="./Documentation.html#faqdbg" target="documentation">' . $GLOBALS['strDocu'] . '</a>' . "\n";
                exit();
            }
            $GLOBALS['DBG'] = true;
        }
    }
}

?>
