Subversion Repositories ALCASAR

Rev

Rev 3100 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3100 Rev 3179
Line 1... Line 1...
1
<?php
1
<?php
2
if (!defined('PSI_CONFIG_FILE')) {
2
if (!defined('PSI_CONFIG_FILE')) {
3
    /**
3
    /**
4
     * phpSysInfo version
4
     * phpSysInfo version
5
     */
5
     */
6
    define('PSI_VERSION', '3.4.2');
6
    define('PSI_VERSION', '3.4.3');
7
    /**
7
    /**
8
     * phpSysInfo configuration
8
     * phpSysInfo configuration
9
     */
9
     */
10
    define('PSI_CONFIG_FILE', PSI_APP_ROOT.'/phpsysinfo.ini');
10
    define('PSI_CONFIG_FILE', PSI_APP_ROOT.'/phpsysinfo.ini');
11
 
11
 
Line 87... Line 87...
87
            echo "Client IP address (".$ip.") not allowed.";
87
            echo "Client IP address (".$ip.") not allowed.";
88
            die();
88
            die();
89
        }
89
        }
90
    }
90
    }
91
 
91
 
-
 
92
    if (isset($_GET['jsonp']) && (!defined('PSI_JSONP') || !PSI_JSONP)) {
-
 
93
        echo "JSONP data mode not enabled in phpsysinfo.ini.";
-
 
94
        die();
-
 
95
    }
-
 
96
 
92
    /* default error handler */
97
    /* default error handler */
93
    if (function_exists('errorHandlerPsi')) {
98
    if (function_exists('errorHandlerPsi')) {
94
        restore_error_handler();
99
        restore_error_handler();
95
    }
100
    }
96
 
101
 
Line 325... Line 330...
325
            define('PSI_SYSTEM_CODEPAGE', null);
330
            define('PSI_SYSTEM_CODEPAGE', null);
326
        }
331
        }
327
    }
332
    }
328
 
333
 
329
    if (!defined('PSI_JSON_ISSUE')) { //if not overloaded in phpsysinfo.ini
334
    if (!defined('PSI_JSON_ISSUE')) { //if not overloaded in phpsysinfo.ini
330
        if (!extension_loaded("xml")) {
335
        if (!extension_loaded("simplexml")) {
331
            die("phpSysInfo requires the xml extension to php in order to work properly.");
336
            die("phpSysInfo requires the simplexml extension to php in order to work properly.");
332
        }
337
        }
333
        if (simplexml_load_string("<A><B><C/></B>\n</A>") !== simplexml_load_string("<A><B><C/></B></A>")) { // json_encode issue test
338
        if (simplexml_load_string("<A><B><C/></B>\n</A>") !== simplexml_load_string("<A><B><C/></B></A>")) { // json_encode issue test
334
            define('PSI_JSON_ISSUE', true); // Problem must be solved
339
            define('PSI_JSON_ISSUE', true); // Problem must be solved
335
        }
340
        }
336
    }
341
    }