Esempio n. 1
0
    }
    function json_decode($text, $assoc = true)
    {
        global $json;
        return $json->decode($text);
    }
}
// Smarty init
if (!defined("NO_TEMPLATES")) {
    $Smarty = Core::GetSmartyInstance();
    $Smarty->caching = false;
}
// PHPSmartyMailer init
$Mailer = Core::GetPHPSmartyMailerInstance();
$Mailer->From = CONFIG::$EMAIL_ADDRESS;
$Mailer->FromName = CONFIG::$EMAIL_NAME;
$Mailer->CharSet = "UTF-8";
//TODO: Move all timeouts to config UI.
CONFIG::$HTTP_PROTO = CONFIG::$HTTP_PROTO ? CONFIG::$HTTP_PROTO : "http";
// cache lifetime
CONFIG::$EVENTS_RSS_CACHE_LIFETIME = 300;
// in seconds
CONFIG::$EVENTS_TIMELINE_CACHE_LIFETIME = 300;
// in seconds
CONFIG::$AJAX_PROCESSLIST_CACHE_LIFETIME = 120;
// in seconds
CONFIG::$SYSDNS_SYSTEM = 0;
// Require observer interfaces
require_once APPPATH . '/observers/interface.IDeferredEventObserver.php';
require_once APPPATH . '/observers/interface.IEventObserver.php';
require_once SRCPATH . '/class.Scalr.php';