X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplglobals.php;h=67cd8b83e7ac786df07fd4f72858fdeff826dbcf;hb=47a44ed04982abfee731ded1921cbf49f9926db9;hp=9818db168703ec542741bdb0f76a3e012ea5b5c3;hpb=3ecd0a882aebbb539b4b0e507a360e961cd51c63;p=platal.git diff --git a/classes/plglobals.php b/classes/plglobals.php index 9818db1..67cd8b8 100644 --- a/classes/plglobals.php +++ b/classes/plglobals.php @@ -64,6 +64,14 @@ class PlGlobals // 'r' => 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. @@ -98,6 +106,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. */