liquid_feedback_frontend

diff config/example.lua @ 1222:a38df55525d6

Removed support for old WebMCP 1.x and clean up of example configuration
author bsw
date Tue Dec 01 13:59:16 2015 +0100 (2015-12-01)
parents e80c8790a1ca
children 526b8c82d5fb
line diff
     1.1 --- a/config/example.lua	Tue Dec 01 02:10:40 2015 +0100
     1.2 +++ b/config/example.lua	Tue Dec 01 13:59:16 2015 +0100
     1.3 @@ -19,23 +19,25 @@
     1.4  
     1.5  -- Checkbox(es) the user has to accept while registering
     1.6  -- ------------------------------------------------------------------------
     1.7 +--[[
     1.8  config.use_terms_checkboxes = {
     1.9    {
    1.10      name = "terms_of_use_v1",
    1.11      html = "I accept the terms of use.",
    1.12      not_accepted_error = "You have to accept the terms of use to be able to register."
    1.13    },
    1.14 ---  {
    1.15 ---    name = "extra_terms_of_use_v1",
    1.16 ---    html = "I accept the extra terms of use.",
    1.17 ---    not_accepted_error = "You have to accept the extra terms of use to be able to register."
    1.18 ---  }
    1.19 +  {
    1.20 +    name = "extra_terms_of_use_v1",
    1.21 +    html = "I accept the extra terms of use.",
    1.22 +    not_accepted_error = "You have to accept the extra terms of use to be able to register."
    1.23 +  }
    1.24  }
    1.25 -
    1.26 +--]]
    1.27    
    1.28  -- Absolute base url of application
    1.29  -- ------------------------------------------------------------------------
    1.30  config.absolute_base_url = "http://example.com/"
    1.31 +config.localhost = false
    1.32  
    1.33  
    1.34  -- Connection information for the LiquidFeedback database
    1.35 @@ -219,6 +221,7 @@
    1.36  -- Please note, polling policies never have an admission phase
    1.37  -- The available_func is optional, if not set any target date is allowed
    1.38  
    1.39 +--[[
    1.40  config.free_timing = {
    1.41    calculate_func = function(policy, timing_string)
    1.42      local function interval_by_seconds(secs)
    1.43 @@ -253,13 +256,14 @@
    1.44      }
    1.45    end
    1.46  }
    1.47 -
    1.48 +--]]
    1.49  
    1.50  -- Configuration of lf4rcs
    1.51  -- ------------------------------------------------------------------------
    1.52 -config.lf4rc = {}
    1.53 +-- config.lf4rc = {}
    1.54  
    1.55  -- Example configuration for controlling a Git repository
    1.56 +--[[
    1.57  config.lf4rcs.git = {
    1.58    
    1.59    render_draft_reference = function(url, draft)
    1.60 @@ -364,7 +368,7 @@
    1.61  }
    1.62  
    1.63  lf4rcs.init()
    1.64 -
    1.65 +--]]
    1.66  
    1.67  -- External references
    1.68  -- ------------------------------------------------------------------------
    1.69 @@ -466,11 +470,8 @@
    1.70  -- if cgi then collectgarbage("stop") end
    1.71  
    1.72  -- Trace debug
    1.73 +-- ------------------------------------------------------------------------
    1.74  -- uncomment the following line to enable debug trace
    1.75  -- config.enable_debug_trace = true
    1.76  
    1.77 --- ========================================================================
    1.78 --- Do main initialisation (DO NOT REMOVE FOLLOWING SECTION)
    1.79 --- ========================================================================
    1.80  
    1.81 -execute.config("init")

Impressum / About Us