1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
/*
* general-example:
* Example values for the "general" config file.
*
* Configuration parameters, in PHP syntax. Configuration parameters are set
* using the PHP define('OPTION_...', '...') function. Both perl and PHP code
* parse this properly, so you can use comments and conditionals and whatnot,
* but unless essential it's better to keep it simple....
*
* Copy this file to one called "general" in the same directory. Or
* have multiple config files and use a symlink to change between them.
*
* NOTE ON USE IN RAILS: So that people don't have to have PHP installed just
* to run this stuff, by convention we always provide a default config value
* in the source code when reading the config option. The Rails application
* should run fine without the general config file, it is a bug if it does not.
*
* Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
* Email: francis@mysociety.org; WWW: http://www.mysociety.org
*
* $Id: general-example,v 1.18 2009-02-09 10:37:13 francis Exp $
*
*/
// Doesn't do anything right now.
define('OPTION_STAGING_SITE', 1);
// Domain used in URLs generated by scripts (e.g. for going in some emails)
define('OPTION_DOMAIN', '127.0.0.1:3000');
// Incoming email
define('OPTION_INCOMING_EMAIL_DOMAIN', 'localhost'); // e.g. 'foifa.com'
define('OPTION_INCOMING_EMAIL_PREFIX', ''); // e.g. 'foi+'
define('OPTION_INCOMING_EMAIL_SECRET', 'xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx'); // used for hash in request email address
define('OPTION_BLACKHOLE_PREFIX', 'do-not-reply-to-this-address'); // used as envelope from at the incoming email domain for cases where we don't care about failure
// Administration
define('OPTION_CONTACT_EMAIL', 'admin@localhost');
define('OPTION_ADMIN_BASE_URL', '/admin/');
define('OPTION_ADMIN_PUBLIC_URL', '/'); // where /stylesheets sits under for admin pages
// Secret key for signing cookie_store sessions
define('OPTION_COOKIE_STORE_SESSION_SECRET', 'your secret key here, make it long and random');
// Recaptcha, for detecting humans. Get keys here: http://recaptcha.net/whyrecaptcha.html
define('OPTION_RECAPTCHA_PUBLIC_KEY', 'x');
define('OPTION_RECAPTCHA_PRIVATE_KEY', 'x');
// If present, puts the site in read only mode, and uses the text as reason
// (whole paragraph). Please use a read-only database user as well, as it only
// checks in a few obvious places.
define('OPTION_READ_ONLY', '');
?>
|