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 tables prefix */
\r
19 define('YOURLS_DB_PREFIX', 'yourls_');
\r
21 /** !!! IMPORTANT !!!
\r
22 * If you are UPGRADING from version 1.3,
\r
23 * there are additional constants to define.
\r
24 * Refer to the readme.html for details .
\r
31 /** YOURLS installation URL, no trailing slash */
\r
32 define('YOURLS_SITE', 'http://site.com'); //
\r
34 /** Timezone GMT offset */
\r
35 define('YOURLS_HOURS_OFFSET', 0);
\r
37 /** Allow multiple short URLs for a same long URL
\r
38 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
\r
39 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
\r
40 define('YOURLS_UNIQUE_URLS', true);
\r
42 /** Private means protected with login/pass as defined below. Set to false for public usage. */
\r
43 define('YOURLS_PRIVATE', true);
\r
45 /** 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
46 define('YOURLS_COOKIEKEY', 'qQ4KhL_pu|s@Zm7n#%:b^{A[vhm');
\r
48 /** Username(s) and password(s) allowed to access the site */
\r
49 $yourls_user_passwords = array(
\r
50 'username' => 'password',
\r
51 'username2' => 'password2' // You can have one or more 'login'=>'password' lines
\r
55 ** URL Shortening settings
\r
58 /** URL shortening method: 36 or 62 */
\r
59 define('YOURLS_URL_CONVERT', 36);
\r
61 * 36: generates case insentitive lowercase keywords (ie: 13jkm)
\r
62 * 62: generate case sensitive keywords (ie: 13jKm or 13JKm)
\r
63 * Stick to one setting, don't change after you've created links as it will change all your short URLs!
\r
64 * Base 36 should be picked. Use 62 only if you understand what it implies.
\r
68 * Reserved keywords (so that generated URLs won't match them)
\r
69 * Define here negative, unwanted or potentially misleading keywords.
\r
71 $yourls_reserved_URL = array(
\r
72 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
\r
76 ** Personal settings would go after here
\r