1: <?php
2: /**
3: * This file contains various helper functions to read specific values needed for setup checks.
4: *
5: * @package Setup
6: * @subpackage Helper_PHP
7: * @version SVN Revision $Rev:$
8: *
9: * @author Unknown
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: function getSafeModeStatus ()
19: {
20: if (getPHPIniSetting("safe_mode") == "1")
21: {
22: return true;
23: } else {
24: return false;
25: }
26: }
27:
28: function getSafeModeGidStatus ()
29: {
30: if (getPHPIniSetting("safe_mode_gid") == "1")
31: {
32: return true;
33: } else {
34: return false;
35: }
36: }
37:
38: function getSafeModeIncludeDir ()
39: {
40: return getPHPIniSetting("safe_mode_include_dir");
41: }
42:
43: function getOpenBasedir ()
44: {
45: return getPHPIniSetting("open_basedir");
46: }
47:
48: function getDisabledFunctions ()
49: {
50: return getPHPIniSetting("disable_functions");
51: }
52: ?>