2 /* This is a sample config file.
\r
3 * Edit this file with your own settings and save it as "config.php"
\r
7 ** MySQL settings - You can get this info from your web host
\r
10 /** MySQL database username */
\r
11 define( 'YOURLS_DB_USER', 'your db user name' );
\r
13 /** MySQL database password */
\r
14 define( 'YOURLS_DB_PASS', 'your db password' );
\r
16 /** The name of the database for YOURLS */
\r
17 define( 'YOURLS_DB_NAME', 'yourls' );
\r
19 /** MySQL hostname */
\r
20 define( 'YOURLS_DB_HOST', 'localhost' );
\r
22 /** MySQL tables prefix */
\r
23 define( 'YOURLS_DB_PREFIX', 'yourls_' );
\r
29 /** YOURLS installation URL -- all lowercase and with no trailing slash.
\r
30 ** If you define it to "http://site.com", don't use "http://www.site.com" in your browser (and vice-versa) */
\r
31 define( 'YOURLS_SITE', 'http://site.com' );
\r
33 /** Timezone GMT offset */
\r
34 define( 'YOURLS_HOURS_OFFSET', 0 );
\r
36 /** YOURLS language or "locale".
\r
37 ** Change this setting to "localize" YOURLS (use a translation instead of the default English). A corresponding .mo file
\r
38 ** must be installed in the user/language directory.
\r
39 ** See http://yourls.org/translation for more information */
\r
40 define( 'YOURLS_LANG', '' );
\r
42 /** Allow multiple short URLs for a same long URL
\r
43 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
\r
44 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
\r
45 define( 'YOURLS_UNIQUE_URLS', true );
\r
47 /** Private means the Admin area will be protected with login/pass as defined below.
\r
48 ** Set to false for public usage (eg on a restricted intranet or for test setups)
\r
49 ** Read http://yourls.org/privatepublic for more details if you're unsure */
\r
50 define( 'YOURLS_PRIVATE', true );
\r
52 /** 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
53 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' );
\r
55 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as salted hashes.
\r
56 ** Read http://yourls.org/userpassword for more information */
\r
57 $yourls_user_passwords = array(
\r
58 'username' => 'password',
\r
59 'username2' => 'password2' // You can have one or more 'login'=>'password' lines
\r
63 ** URL Shortening settings
\r
66 /** URL shortening method: 36 or 62 */
\r
67 define( 'YOURLS_URL_CONVERT', 36 );
\r
69 * 36: generates all lowercase keywords (ie: 13jkm)
\r
70 * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
\r
71 * Stick to one setting. It's best not to change after you've started creating links.
\r
75 * Reserved keywords (so that generated URLs won't match them)
\r
76 * Define here negative, unwanted or potentially misleading keywords.
\r
78 $yourls_reserved_URL = array(
\r
79 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 'gay',
\r
83 ** Personal settings would go after here.
\r