X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplglobals.php;h=d1680373e8a0b54fcb9e3f895a7fe1735a0f4165;hb=02f705e9f211b8c253509c8bc08cc43450503ce0;hp=51858361edbc746fc8ba134f83b7c3769eaa7192;hpb=a7f778a593a0a7e168a7112ec28cb84d032adaf3;p=platal.git diff --git a/classes/plglobals.php b/classes/plglobals.php index 5185836..d168037 100644 --- a/classes/plglobals.php +++ b/classes/plglobals.php @@ -1,6 +1,6 @@ read/only // '' => site down + /** Catch-all mode for emails. + * If set to a valid email address, all emails from plat/al are sent to + * that email address, instead of their normal destination (From:, To:, + * and CC: headers are not actually modified). + * Note: only valid if restricted_platal is set to true. + */ + public $email_catchall = false; + + /** Tell smarty to check the timestamps of the templates to decide + * whether recompile the template or not. If this option is false and + * debug mode is not activate, templates won't be recompile if they changed. + */ + public $smarty_autocompile = false; + /** BaseURL of the site. * This is read from the HTTP headers if available but you MUST give a * default value for this field in you configuration file (because, this @@ -92,6 +115,13 @@ class PlGlobals public $cookie_ns = 'ORG'; public $cookie_path = '/'; + /** Cache duration for static and dynamic cacheable content generated by + * plat/al. Defaults to a week for static content, and an hour for dynamic + * content. + */ + public $static_cache_duration = 604800; + public $dynamic_cache_duration = 3600; + /** You must give a list of file to load. * The filenames given are relatives to the config path of your plat/al installation. */ @@ -171,10 +201,10 @@ class PlGlobals /** Change dynamic config file * @param conf array of keys and values to add or replace * @param category name of category to change - * + * * Opens the dynamic conf file and set values from conf in specified * category. Updates config vars too. - */ + */ public function changeDynamicConfig($conf, $category = 'Core') { $dynamicfile = $this->spoolroot.'/spool/conf/platal.dynamic.conf'; @@ -217,7 +247,7 @@ class PlGlobals if (isset($conflower[strtolower($k)])) { $array[$same][$k] = $v; } - } + } } } // writes the file over