From 53f70e01084d48526e4f72fefd7ded7419029558 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 23 Jan 2011 20:27:41 +0000 Subject: [PATCH] update config git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@713 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- www/config.php.template | 64 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 45 insertions(+), 19 deletions(-) diff --git a/www/config.php.template b/www/config.php.template index 5fe8be3..80c17bc 100644 --- a/www/config.php.template +++ b/www/config.php.template @@ -78,34 +78,42 @@ $ClientSessionTimeout=2*3600; $template="./template/"; //Renderer options -// uncomment the ones you want to use $twigoptions = array( - //cache should be either set to false (no cache) or an explicit writeable path - //if not present Twig will use a subdirectory under /tmp, which is not particularly secure - //'cache' => '/path/to/compilation_cache', - 'cache' => false, - //character set the templates are written in, default is utf-8 - //'charset' => 'utf-8', - //automatically reload/compile templates when they change - //'auto_reload' => false, + //cache points to: + // a (relative) path to store cached pages in, or + // false to switch caching off + //'cache' => './tcache', + 'cache' => false, + + //character set, default is utf-8 + //'charset' => 'utf-8', + + //enable this while you are actively changing code/templates and use a cache: + //'auto_reload' => true, + + //enable this to throw an exception if an undefined variable is used, + //disable in final deployment: + 'strict_variables' => true, ); -//Renderer extensions $twigextensions = array( - //'Escaper', //provides the escape filter and autoescaping - //'Sandbox', //allows to execute templates in a sandbox - //'I18n', //provides the trans filter + //HTML code auto-escaper: + 'Escaper', + //Sandbox - cannot be loaded like this: it needs extensive configuration + //I18n - you also have to configure PHPs gettext extension to actually use this ); -//there is currently no configuration available for these extensions - this may make them pretty useless -//how long the stuff in a shopping cart is stored, the value is in seconds (1h = 3600s) -$CartTimeout=3600; +//how long the stuff in a shopping cart is stored +// this is the time that can go by while the user is looking around without touching +// the cart +$CartTimeout=30*60; -//Authenticated web session timeout - how long an authenticated web session lasts +//Authenticated web session timeout - +// how long a web session lasts without a refresh; // this should usually be on the order of 10-30 minutes (the value is in seconds) -$WebSessionTimeout=1800; +$WebSessionTimeout=15*60; //whether to show errors in the web client - usually turned off in production mode -$WebShowErrors=false; +$WebShowErrors=true; //default shipping for the web UI // true if shipping is enforced, false if the user may opt out of chosing a shipping option @@ -115,4 +123,22 @@ $WebForceShipping=true; // set this to -1 if you do not want a default option $WebDefaultShipping=1; +//customer flags +// list of flags that customers can have, separated by spaces +$WebCustomerFlags="newsletter reminder"; + +//order flags +// you can add arbitrary input fields to the checkout pagem this array defines +// what values they must have, this can be used for acknowledging standard +// form contract (German: AGB) clauses +$WebOrderFields['sfc_ack']='on'; + +//customer password reset +// this is the time in seconds that the customer has to click on the reset link +$CustomerResetTime=24 * 60 * 60; + +//base URL for the customer subsystem +// leave commented out or empty if MagicSmoke should figure it out automatically +// $BaseUrl = "https://localhost/smoke/index.php"; + ?> \ No newline at end of file -- 1.7.2.5