home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / libraries / dbg / setup.php
Encoding:
PHP Script  |  2008-06-23  |  801 b   |  31 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  * @version $Id: setup.php 11326 2008-06-17 21:32:48Z lem9 $
  5.  */
  6. if (! defined('PHPMYADMIN')) {
  7.     exit;
  8. }
  9.  
  10. /**
  11.  * checks for DBG extension and trys to load if not loaded
  12.  *
  13.  * allways use $GLOBALS here, as this script is included by footer.inc.hp
  14.  * which can also be included from inside a function
  15.  */
  16. if ($GLOBALS['cfg']['DBG']['enable']) {
  17.     /**
  18.      * Loads the DBG extension if needed
  19.      */
  20.     if (! @extension_loaded('dbg') && ! PMA_dl('dbg')) {
  21.         echo '<div class="warning">'
  22.             .sprintf($GLOBALS['strCantLoad'], 'DBG')
  23.             .' <a href="./Documentation.html#faqdbg" target="documentation">'
  24.             .$GLOBALS['strDocu'] . '</a>'
  25.             .'</div>';
  26.     } else {
  27.         $GLOBALS['DBG'] = true;
  28.     }
  29. }
  30. ?>
  31.