'json',
'curl',
'gd',
- 'mbstring'
+ 'mbstring',
+ 'http'
);
function init($ff, $cfg)
{
-
+
+
+
$cfg = $this->overlayDefaults($cfg);
if (!empty($this->memory_limit)) {
$mem = ini_get('memory_limit');
if (php_sapi_name() != 'cli' && $this->to_bytes($mem) < $this->to_bytes($this->memory_limit)) {
- die("increase the memory limit settings to 2048M or more");
+ trigger_error("increase the memory limit settings to 2048M or more", E_USER_ERROR);
}
}
+
$this->verifyExtensions();
+
+ if (!isset($cfg['Pman']['timezone'])) {
+ trigger_error("timezone needs setting in Pman[timezone]", E_USER_ERROR);
+ }
+ if ($cfg['Pman']['timezone'] != ini_get('date.timezone')) {
+ trigger_error("timezone needs setting in php.ini date.timezone = " . $cfg['Pman']['timezone'], E_USER_ERROR);
+ }
+
+
return $cfg;
}
if(empty($error)){
return true;
}
- die(implode('\n', $error));
+ trigger_error("Missing Extensions: \n" . implode('\n', $error), E_USER_ERROR);
}
}