]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - user/config-sample.php
Merge pull request #1488 from LeoColomb/master
[Github/YOURLS.git] / user / config-sample.php
1 <?php
2 /* This is a sample config file.
3  * Edit this file with your own settings and save it as "config.php"
4  */
5
6 /*
7  ** MySQL settings - You can get this info from your web host
8  */
9
10 /** MySQL database username */
11 define( 'YOURLS_DB_USER', 'your db user name' );
12
13 /** MySQL database password */
14 define( 'YOURLS_DB_PASS', 'your db password' );
15
16 /** The name of the database for YOURLS */
17 define( 'YOURLS_DB_NAME', 'yourls' );
18
19 /** MySQL hostname.
20  ** If using a non standard port, specify it like 'hostname:port', eg. 'localhost:9999' or '127.0.0.1:666' */
21 define( 'YOURLS_DB_HOST', 'localhost' );
22
23 /** MySQL tables prefix */
24 define( 'YOURLS_DB_PREFIX', 'yourls_' );
25
26 /*
27  ** Site options
28  */
29
30 /** YOURLS installation URL -- all lowercase and with no trailing slash.
31  ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */
32 define( 'YOURLS_SITE', 'http://site.com' );
33
34 /** Timezone GMT offset */
35 define( 'YOURLS_HOURS_OFFSET', 0 ); 
36
37 /** YOURLS language or "locale".
38  ** Change this setting to "localize" YOURLS (use a translation instead of the default English). A corresponding .mo file
39  ** must be installed in the user/language directory.
40  ** See http://yourls.org/translations for more information */
41 define( 'YOURLS_LANG', '' ); 
42
43 /** Allow multiple short URLs for a same long URL
44  ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
45  ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
46 define( 'YOURLS_UNIQUE_URLS', true );
47
48 /** Private means the Admin area will be protected with login/pass as defined below.
49  ** Set to false for public usage (eg on a restricted intranet or for test setups)
50  ** Read http://yourls.org/privatepublic for more details if you're unsure */
51 define( 'YOURLS_PRIVATE', true );
52
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 **/
54 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
55
56 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes
57  ** YOURLS will auto encrypt plain text passwords in this file
58  ** Read http://yourls.org/userpassword for more information */
59 $yourls_user_passwords = array(
60         'username' => 'password',
61         'username2' => 'password2'      // You can have one or more 'login'=>'password' lines
62         );
63
64 /** Debug mode to output some internal information
65  ** Default is false for live site. Enable when coding or before submitting a new issue */
66 define( 'YOURLS_DEBUG', false );
67         
68 /*
69  ** URL Shortening settings
70  */
71
72 /** URL shortening method: 36 or 62 */
73 define( 'YOURLS_URL_CONVERT', 36 );
74 /*
75  * 36: generates all lowercase keywords (ie: 13jkm)
76  * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
77  * Stick to one setting. It's best not to change after you've started creating links.
78  */
79
80 /** 
81 * Reserved keywords (so that generated URLs won't match them)
82 * Define here negative, unwanted or potentially misleading keywords.
83 */
84 $yourls_reserved_URL = array(
85         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
86 );
87
88 /*
89  ** Personal settings would go after here.
90  */
91