Daan is sweet to Kelley and delegates himself TestCMS code reflection
[ssproject1617.git] / testcms-final-anon / system / classes / helpers.php
1 <?php defined('IN_CMS') or die('No direct access allowed.');
2
3 /*
4 Helper for setting php settings
5 */
6 function ini_safe_set($key, $value) {
7 // some hosts disable ini_set for security
8 // lets check so see if its disabled
9 if(($disable_functions = ini_get('disable_functions')) !== false) {
10 // if it is disabled then return as there is nothing we can do
11 if(strpos($disable_functions, 'ini_set') !== false) {
12 return false;
13 }
14 }
15
16 // lets set it because we can!
17 return ini_set($key, $value);
18 }