home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / libraries / dbg / setup.php
Encoding:
PHP Script  |  2007-12-20  |  761 b   |  27 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  * @version $Id: setup.php 10240 2007-04-01 11:02:46Z cybot_tm $
  5.  */
  6.  
  7. /**
  8.  * checks for DBG extension and trys to load if not loaded
  9.  *
  10.  * allways use $GLOBALS here, as this script is included by footer.inc.hp
  11.  * which can also be included from inside a function
  12.  */
  13. if ($GLOBALS['cfg']['DBG']['enable']) {
  14.     /**
  15.      * Loads the DBG extension if needed
  16.      */
  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;
  25.     }
  26. }
  27. ?>