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: * @author Unknown
8: * @copyright four for business AG <www.4fb.de>
9: * @license http://www.contenido.org/license/LIZENZ.txt
10: * @link http://www.4fb.de
11: * @link http://www.contenido.org
12: */
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: function getSafeModeStatus ()
17: {
18: if (getPHPIniSetting("safe_mode") == "1")
19: {
20: return true;
21: } else {
22: return false;
23: }
24: }
25:
26: function getSafeModeGidStatus ()
27: {
28: if (getPHPIniSetting("safe_mode_gid") == "1")
29: {
30: return true;
31: } else {
32: return false;
33: }
34: }
35:
36: function getSafeModeIncludeDir ()
37: {
38: return getPHPIniSetting("safe_mode_include_dir");
39: }
40:
41: function getOpenBasedir ()
42: {
43: return getPHPIniSetting("open_basedir");
44: }
45:
46: function getDisabledFunctions ()
47: {
48: return getPHPIniSetting("disable_functions");
49: }
50: ?>