]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - includes/config-sample.php
Initial commit (importing from http://svn.planetozh.com/ozhin)
[Github/YOURLS.git] / includes / config-sample.php
1 <?php\r
2 // MySQL settings : auth\r
3 define('YOURLS_DB_USER', 'dbuser');\r
4 define('YOURLS_DB_PASS', 'dbpassword');\r
5 define('YOURLS_DB_NAME', 'shorturl');\r
6 define('YOURLS_DB_HOST', 'localhost');\r
7 \r
8 // MySQL settings : table names\r
9 define('YOURLS_DB_TABLE_URL', 'url');\r
10 define('YOURLS_DB_TABLE_NEXTDEC', 'next_id');\r
11 \r
12 // Site settings\r
13 define('YOURLS_SITE', 'http://site.com'); // Short domain URL, no trailing slash\r
14 define('YOURLS_HOURS_OFFSET', 0); // Sort of timezone, number of hours ahead of GMT\r
15 define('YOURLS_PRIVATE', true); // Private means protected with login/pass as defined below. Set to false for public\r
16 $yourls_user_passwords = array(\r
17         'joe' => 'mypass',\r
18         'toto' => '123'\r
19         ); // array of login/password to access the site (can be just one 'key'=>'value')\r
20 \r
21 // URL shortening method: 36 or 62.\r
22 //              36: generates case insentitive lowercase keywords (ie: 13jkm)\r
23 //              64: generate case sensitive keywords (ie: 13jKm or 13JKm)\r
24 //              Stick to one setting, don't change after you've created links as it will change all your short URLs!\r
25 //              Base 36 should be picked. Use 62 only if you understand what it implies.\r
26 //              Using base 62 means you *need* PHP extension BCCOMP\r
27 define('YOURLS_URL_CONVERT', 36);\r
28 \r
29 // Reserved keywords (so that generated URLs won't match them)\r
30 //              Define here negative, unwanted or potentially misleading keywords\r
31 $yourls_reserved_URL = array(\r
32         'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',\r
33 );\r
34 \r
35 /******************** DO NOT EDIT ANYTHING ELSE ********************/\r
36 \r
37 // Include everything except auth functions\r
38 require_once 'functions.php';\r
39 require_once 'functions-baseconvert.php';\r
40 require_once 'class-mysql.php';\r
41 \r