]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - user/config-sample.php
Looser pattern matching for plugin header
[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', 'dbuser' );\r
12 \r
13 /** MySQL database password */\r
14 define( 'YOURLS_DB_PASS', 'dbpassword' );\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 /** Allow multiple short URLs for a same long URL\r
37  ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)\r
38  ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */\r
39 define( 'YOURLS_UNIQUE_URLS', true );\r
40 \r
41 /** Private means protected with login/pass as defined below. Set to false for public usage on a restricted intranet or for test setups. */\r
42 define( 'YOURLS_PRIVATE', true );\r
43 \r
44 /** 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
45 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );\r
46 \r
47 /**  Username(s) and password(s) allowed to access the site */\r
48 $yourls_user_passwords = array(\r
49         'username' => 'password',\r
50         'username2' => 'password2'      // You can have one or more 'login'=>'password' lines\r
51         );\r
52 \r
53 /*\r
54  ** URL Shortening settings\r
55  */\r
56 \r
57 /** URL shortening method: 36 or 62 */\r
58 define( 'YOURLS_URL_CONVERT', 36 );\r
59 /*\r
60  * 36: generates case insentitive lowercase keywords (ie: 13jkm)\r
61  * 62: generate case sensitive keywords (ie: 13jKm or 13JKm)\r
62  * Stick to one setting, don't change after you've created links as it will change all your short URLs!\r
63  * Base 36 should be picked. Use 62 only if you understand what it implies.\r
64  */\r
65 \r
66 /** \r
67 * Reserved keywords (so that generated URLs won't match them)\r
68 * Define here negative, unwanted or potentially misleading keywords.\r
69 */\r
70 $yourls_reserved_URL = array(\r
71         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',\r
72 );\r
73 \r
74 /*\r
75  ** Personal settings would go after here.\r
76  */\r
77 \r