]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - includes/config-sample.php
- Renamed insert.php to admin.php
[Github/YOURLS.git] / includes / config-sample.php
1 <?php\r
2 // ** MySQL settings - You can get this info from your web host ** //\r
3 /** MySQL database username */\r
4 define('YOURLS_DB_USER', 'dbuser');\r
5 \r
6 /** MySQL database password */\r
7 define('YOURLS_DB_PASS', 'dbpassword');\r
8 \r
9 /** The name of the database for YOURLS */\r
10 define('YOURLS_DB_NAME', 'shorturl');\r
11 \r
12 /** MySQL hostname */\r
13 define('YOURLS_DB_HOST', 'localhost');\r
14 \r
15 /** MySQL URL table name. Don't change this if in doubt. */\r
16 define('YOURLS_DB_TABLE_URL', 'url');\r
17 \r
18 /** MySQL Next ID table name. Don't change this if in doubt. */\r
19 define('YOURLS_DB_TABLE_NEXTDEC', 'next_id');\r
20 \r
21 // ** Site settings ** //\r
22 /** Short domain URL, no trailing slash */\r
23 define('YOURLS_SITE', 'http://site.com'); //\r
24 \r
25 /** Timezone GMT offset */\r
26 define('YOURLS_HOURS_OFFSET', 0); \r
27 \r
28 /** Private means protected with login/pass as defined below. Set to false for public usage. */\r
29 define('YOURLS_PRIVATE', true);\r
30 \r
31 /**  Username and password allowed to access the site */\r
32 $yourls_user_passwords = array(\r
33         'username' => 'password',\r
34         'username2' => 'password2'\r
35         );\r
36 \r
37 /**\r
38 * URL shortening method: 36 or 62.\r
39 *\r
40 * 36: generates case insentitive lowercase keywords (ie: 13jkm)\r
41 * 64: generate case sensitive keywords (ie: 13jKm or 13JKm)\r
42 * Stick to one setting, don't change after you've created links as it will change all your short URLs!\r
43 * Base 36 should be picked. Use 62 only if you understand what it implies.\r
44 * Using base 62 means you *need* PHP extension BCCOMP\r
45 */\r
46 define('YOURLS_URL_CONVERT', 36);\r
47 \r
48 /** \r
49 * Reserved keywords (so that generated URLs won't match them)\r
50 * Define here negative, unwanted or potentially misleading keywords.\r
51 */\r
52 $yourls_reserved_URL = array(\r
53         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',\r
54 );\r
55 \r
56 \r
57 /******************** DO NOT EDIT ANYTHING ELSE ********************/\r
58 \r
59 // Include everything except auth functions\r
60 require_once 'functions.php';\r
61 require_once 'functions-baseconvert.php';\r
62 require_once 'class-mysql.php';