~hexmode/+junk/main

« back to all changes in this revision

Viewing changes to install-files/apps/phpmyadmin2.10.1/libraries/dbg/setup.php

  • Committer: Mark A. Hershberger
  • Date: 2008-01-05 19:38:56 UTC
  • Revision ID: hershberger@spawn-xp-20080105193856-6rnzgwa4nehue3qj
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/* $Id: setup.php 7699 2005-11-03 12:22:08Z cybot_tm $ */
 
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
?>
 
 
b'\\ No newline at end of file'