forked from brightcloudy/rash-qdb-fork
-
Notifications
You must be signed in to change notification settings - Fork 12
/
settings.example.php
49 lines (43 loc) · 2.2 KB
/
settings.example.php
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
<?php
$CONFIG['template'] = './templates/nhqdb/nhqdb.php';
// Database
$CONFIG['phptype'] = 'mysql';
$CONFIG['hostspec'] = 'localhost';
$CONFIG['port'] = '';
$CONFIG['socket'] = '';
$CONFIG['database'] = 'rashdb';
$CONFIG['username'] = 'root';
$CONFIG['password'] = '';
$CONFIG['db_table_prefix'] = 'rash';
$CONFIG['secret_salt'] = 'changeme'; // Used to encrypt some things.
// Site info
$CONFIG['site_short_title'] = 'nhqdb';
$CONFIG['site_long_title'] = '#NetHack Quote Database';
$CONFIG['prefix_short_title'] = 1;
$CONFIG['rss_url'] = 'http://127.0.0.1';
$CONFIG['rss_title'] = 'Rash QDB';
$CONFIG['rss_desc'] = 'Quote Database for the IRC channel';
$CONFIG['rss_entries'] = 15;
$CONFIG['language'] = 'US-english';
$CONFIG['admin_email'] = '[email protected]';
// Misc configs
$CONFIG['quote_limit'] = 10; // how many quotes ?browse displays at once
$CONFIG['page_limit'] = 5; // how many page numbers to show
$CONFIG['quote_list_limit'] = 50; // Number of quotes shown in ?top/?bottom/?latest/?queue/?random
$CONFIG['min_latest'] = 3; // Minimum number of quotes to show in ?latest
$CONFIG['moderated_quotes'] = 1; // Quotes need to be accepted by a moderator
$CONFIG['login_required'] = 0; // User register & login required for adding/voting/flagging?
$CONFIG['auto_flagged_quotes'] = 0; // Quotes are automatically marked checked by a moderator when they're added.
$CONFIG['captcha'] = 'nocaptcha';
$CONFIG['use_captcha'] = array('flag'=>1, 'add_quote'=>0, 'register_user'=>1);
$CONFIG['spam_regex'] = '<a\s+href='; // Any quote matching this regex will go to hidden spam queue.
$CONFIG['spam_expire_time'] = 0; // Spam expiration, in seconds. 0=never
$CONFIG['auto_block_spam_ip'] = 2; // Automatically block, if ip appears this many times in spamlog. 0=never
$CONFIG['timezone'] = 'America/New_York';
$CONFIG['news_time_format'] = 'Y-m-d';
$CONFIG['quote_time_format'] = 'F j, Y';
$CONFIG['public_queue'] = 1; // Can users view & vote for quotes in the moderation queue?
$CONFIG['min_quote_length'] = 15; // Minimum acceptable quote length, in characters
// No need to change these
$CONFIG['GET_SEPARATOR'] = ini_get('arg_separator.output');
$CONFIG['GET_SEPARATOR_HTML'] = htmlspecialchars($CONFIG['GET_SEPARATOR'], ENT_QUOTES);