]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - includes/config-sample.php
Sample toolbar plugin - draft
[Github/YOURLS.git] / includes / 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  * You can leave it in the "includes" directory, or, better, move it to\r
5  * the "user" directory. This way, when a new version of YOURLS is available,\r
6  * simply delete everything but "/user", and upload the new version.\r
7  */\r
8 \r
9 \r
10 /*\r
11  ** MySQL settings - You can get this info from your web host\r
12  */\r
13 \r
14 /** MySQL database username */\r
15 define('YOURLS_DB_USER', 'dbuser');\r
16 \r
17 /** MySQL database password */\r
18 define('YOURLS_DB_PASS', 'dbpassword');\r
19 \r
20 /** The name of the database for YOURLS */\r
21 define('YOURLS_DB_NAME', 'yourls');\r
22 \r
23 /** MySQL hostname */\r
24 define('YOURLS_DB_HOST', 'localhost');\r
25 \r
26 /** MySQL tables prefix */\r
27 define('YOURLS_DB_PREFIX', 'yourls_');\r
28 \r
29                 /**         !!! IMPORTANT !!!\r
30                  * If you are UPGRADING from version 1.3,\r
31                  * there are additional constants to define.\r
32                  * Refer to the readme.html for details .\r
33                  **/\r
34 \r
35 /*\r
36  ** Site options\r
37  */\r
38 \r
39 /** YOURLS installation URL, no trailing slash */\r
40 define('YOURLS_SITE', 'http://site.com'); //\r
41 \r
42 /** Timezone GMT offset */\r
43 define('YOURLS_HOURS_OFFSET', 0); \r
44 \r
45 /** Allow multiple short URLs for a same long URL\r
46  ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)\r
47  ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */\r
48 define('YOURLS_UNIQUE_URLS', true);\r
49 \r
50 /** Private means protected with login/pass as defined below. Set to false for public usage. */\r
51 define('YOURLS_PRIVATE', true);\r
52 \r
53 /** 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
54 define('YOURLS_COOKIEKEY', 'qQ4KhL_pu|s@Zm7n#%:b^{A[vhm');\r
55 \r
56 /**  Username(s) and password(s) allowed to access the site */\r
57 $yourls_user_passwords = array(\r
58         'username' => 'password',\r
59         'username2' => 'password2'      // You can have one or more 'login'=>'password' lines\r
60         );\r
61 \r
62 /*\r
63  ** URL Shortening settings\r
64  */\r
65 \r
66 /** URL shortening method: 36 or 62 */\r
67 define('YOURLS_URL_CONVERT', 36);\r
68 /*\r
69  * 36: generates case insentitive lowercase keywords (ie: 13jkm)\r
70  * 62: generate case sensitive keywords (ie: 13jKm or 13JKm)\r
71  * Stick to one setting, don't change after you've created links as it will change all your short URLs!\r
72  * Base 36 should be picked. Use 62 only if you understand what it implies.\r
73  */\r
74 \r
75 /** \r
76 * Reserved keywords (so that generated URLs won't match them)\r
77 * Define here negative, unwanted or potentially misleading keywords.\r
78 */\r
79 $yourls_reserved_URL = array(\r
80         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',\r
81 );\r
82 \r
83 /*\r
84  ** Personal settings would go after here\r
85  */\r
86 \r