]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - user/config-sample.php
Translation API! zomigod. First pass. See Issue 52.
[Github/YOURLS.git] / user / config-sample.php
1 <?php\r
2 /* This is a sample config file.\r
3  * Edit this file with your own settings and save it as "config.php"\r
4  */\r
5 \r
6 /*\r
7  ** MySQL settings - You can get this info from your web host\r
8  */\r
9 \r
10 /** MySQL database username */\r
11 define( 'YOURLS_DB_USER', 'your db user name' );\r
12 \r
13 /** MySQL database password */\r
14 define( 'YOURLS_DB_PASS', 'your db password' );\r
15 \r
16 /** The name of the database for YOURLS */\r
17 define( 'YOURLS_DB_NAME', 'yourls' );\r
18 \r
19 /** MySQL hostname */\r
20 define( 'YOURLS_DB_HOST', 'localhost' );\r
21 \r
22 /** MySQL tables prefix */\r
23 define( 'YOURLS_DB_PREFIX', 'yourls_' );\r
24 \r
25 /*\r
26  ** Site options\r
27  */\r
28 \r
29 /** YOURLS installation URL -- all lowercase and with no trailing slash.\r
30  ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */\r
31 define( 'YOURLS_SITE', 'http://site.com' );\r
32 \r
33 /** Timezone GMT offset */\r
34 define( 'YOURLS_HOURS_OFFSET', 0 ); \r
35 \r
36 /** YOURLS language or "locale"\r
37  ** If a translation file is available (usually in user/language) it will be used.\r
38  ** See http://yourls.org/translation for more information */\r
39 define( 'YOURLS_LANG', 'en_US' ); \r
40 \r
41 /** Allow multiple short URLs for a same long URL\r
42  ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)\r
43  ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */\r
44 define( 'YOURLS_UNIQUE_URLS', true );\r
45 \r
46 /** Private means the Admin area will be protected with login/pass as defined below.\r
47  ** Set to false for public usage (eg on a restricted intranet or for test setups)\r
48  ** Read http://yourls.org/privatepublic for more details if you're unsure */\r
49 define( 'YOURLS_PRIVATE', true );\r
50 \r
51 /** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated. Hint: copy from http://yourls.org/cookie **/\r
52 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );\r
53 \r
54 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as salted hashes.\r
55  ** Read http://yourls.org/userpassword for more information */\r
56 $yourls_user_passwords = array(\r
57         'username' => 'password',\r
58         'username2' => 'password2'      // You can have one or more 'login'=>'password' lines\r
59         );\r
60 \r
61 /*\r
62  ** URL Shortening settings\r
63  */\r
64 \r
65 /** URL shortening method: 36 or 62 */\r
66 define( 'YOURLS_URL_CONVERT', 36 );\r
67 /*\r
68  * 36: generates all lowercase keywords (ie: 13jkm)\r
69  * 62: generates mixed case keywords (ie: 13jKm or 13JKm)\r
70  * Stick to one setting. It's best not to change after you've started creating links.\r
71  */\r
72 \r
73 /** \r
74 * Reserved keywords (so that generated URLs won't match them)\r
75 * Define here negative, unwanted or potentially misleading keywords.\r
76 */\r
77 $yourls_reserved_URL = array(\r
78         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',\r
79 );\r
80 \r
81 /*\r
82  ** Personal settings would go after here.\r
83  */\r
84 \r