3 ** MySQL settings - You can get this info from your web host
\r
6 /** MySQL database username */
\r
7 define('YOURLS_DB_USER', 'dbuser');
\r
9 /** MySQL database password */
\r
10 define('YOURLS_DB_PASS', 'dbpassword');
\r
12 /** The name of the database for YOURLS */
\r
13 define('YOURLS_DB_NAME', 'yourls');
\r
15 /** MySQL hostname */
\r
16 define('YOURLS_DB_HOST', 'localhost');
\r
18 /** MySQL table name to store URLs. Don't change this if in doubt. */
\r
19 define('YOURLS_DB_TABLE_URL', 'yourls_url');
\r
21 /** MySQL Next ID table name. Don't change this if in doubt. */
\r
22 define('YOURLS_DB_TABLE_NEXTDEC', 'yourls_next_id');
\r
24 /** MySQL table name to store a few options. Don't change this if in doubt. */
\r
25 define('YOURLS_DB_TABLE_OPTIONS', 'yourls_options');
\r
27 /** MySQL table name to log redirects (for stats). Don't change this if in doubt. */
\r
28 define('YOURLS_DB_TABLE_LOG', 'yourls_log');
\r
34 /** Turn this on to enable error reporting. Leave this to false **/
\r
35 define('YOURLS_DEBUG', false);
\r
37 /** Short domain URL, no trailing slash */
\r
38 define('YOURLS_SITE', 'http://site.com'); //
\r
40 /** Timezone GMT offset */
\r
41 define('YOURLS_HOURS_OFFSET', 0);
\r
43 /** Private means protected with login/pass as defined below. Set to false for public usage. */
\r
44 define('YOURLS_PRIVATE', true);
\r
46 /** 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/cookiekey.php **/
\r
47 define('YOURLS_COOKIEKEY', 'qQ4KhL_pu|s@Zm7n#%:b^{A[vhm');
\r
49 /** Username(s) and password(s) allowed to access the site */
\r
50 $yourls_user_passwords = array(
\r
51 'username' => 'password',
\r
52 'username2' => 'password2' // You can have one or more 'login'=>'password' lines
\r
56 ** URL Shortening settings
\r
59 /** URL shortening method: 36 or 62 */
\r
60 define('YOURLS_URL_CONVERT', 36);
\r
62 * 36: generates case insentitive lowercase keywords (ie: 13jkm)
\r
63 * 62: generate case sensitive keywords (ie: 13jKm or 13JKm)
\r
64 * Stick to one setting, don't change after you've created links as it will change all your short URLs!
\r
65 * Base 36 should be picked. Use 62 only if you understand what it implies.
\r
66 * Using base 62 means you *need* PHP extension BCMath
\r
70 * Reserved keywords (so that generated URLs won't match them)
\r
71 * Define here negative, unwanted or potentially misleading keywords.
\r
73 $yourls_reserved_URL = array(
\r
74 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
\r
78 /******************** DO NOT EDIT ANYTHING ELSE ********************/
\r
79 require_once (dirname(__FILE__).'/load-yourls.php');
\r