[ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 /* This is a sample config file. 3 * Edit this file with your own settings and save it as "config.php" 4 * 5 * IMPORTANT: edit and save this file as plain ASCII text, using a text editor, for instance TextEdit on Mac OS or 6 * Notepad on Windows. Make sure there is no character before the opening <?php at the beginning of this file. 7 */ 8 9 /* 10 ** MySQL settings - You can get this info from your web host 11 */ 12 13 /** MySQL database username */ 14 define( 'YOURLS_DB_USER', 'your db user name' ); 15 16 /** MySQL database password */ 17 define( 'YOURLS_DB_PASS', 'your db password' ); 18 19 /** The name of the database for YOURLS 20 ** Use lower case letters [a-z], digits [0-9] and underscores [_] only */ 21 define( 'YOURLS_DB_NAME', 'yourls' ); 22 23 /** MySQL hostname. 24 ** If using a non standard port, specify it like 'hostname:port', e.g. 'localhost:9999' or '127.0.0.1:666' */ 25 define( 'YOURLS_DB_HOST', 'localhost' ); 26 27 /** MySQL tables prefix 28 ** YOURLS will create tables using this prefix (eg `yourls_url`, `yourls_options`, ...) 29 ** Use lower case letters [a-z], digits [0-9] and underscores [_] only */ 30 define( 'YOURLS_DB_PREFIX', 'yourls_' ); 31 32 /* 33 ** Site options 34 */ 35 36 /** YOURLS installation URL 37 ** All lowercase, no trailing slash at the end. 38 ** If you define it to "http://sho.rt", don't use "http://www.sho.rt" in your browser (and vice-versa) 39 ** To use an IDN domain (eg http://héhé.com), write its ascii form here (eg http://xn--hh-bjab.com) */ 40 define( 'YOURLS_SITE', 'http://your-own-domain-here.com' ); 41 42 /** YOURLS language 43 ** Change this setting to use a translation file for your language, instead of the default English. 44 ** That translation file (a .mo file) must be installed in the user/language directory. 45 ** See http://yourls.org/translations for more information */ 46 define( 'YOURLS_LANG', '' ); 47 48 /** Allow multiple short URLs for a same long URL 49 ** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior) 50 ** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */ 51 define( 'YOURLS_UNIQUE_URLS', true ); 52 53 /** Private means the Admin area will be protected with login/pass as defined below. 54 ** Set to false for public usage (eg on a restricted intranet or for test setups) 55 ** Read http://yourls.org/privatepublic for more details if you're unsure */ 56 define( 'YOURLS_PRIVATE', true ); 57 58 /** A random secret hash used to encrypt cookies. You don't have to remember it, make it long and complicated 59 ** Hint: copy from http://yourls.org/cookie */ 60 define( 'YOURLS_COOKIEKEY', 'modify this text with something random' ); 61 62 /** Username(s) and password(s) allowed to access the site. Passwords either in plain text or as encrypted hashes 63 ** YOURLS will auto encrypt plain text passwords in this file 64 ** Read http://yourls.org/userpassword for more information */ 65 $yourls_user_passwords = [ 66 'username' => 'password', 67 // 'username2' => 'password2', 68 // You can have one or more 'login'=>'password' lines 69 ]; 70 71 /** URL shortening method: either 36 or 62 72 ** 36: generates all lowercase keywords (ie: 13jkm) 73 ** 62: generates mixed case keywords (ie: 13jKm or 13JKm) 74 ** For more information, see https://yourls.org/urlconvert */ 75 define( 'YOURLS_URL_CONVERT', 36 ); 76 77 /** Debug mode to output some internal information 78 ** Default is false for live site. Enable when coding or before submitting a new issue */ 79 define( 'YOURLS_DEBUG', false ); 80 81 /** 82 * Reserved keywords (so that generated URLs won't match them) 83 * Define here negative, unwanted or potentially misleading keywords. 84 */ 85 $yourls_reserved_URL = [ 86 'porn', 'faggot', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 87 ]; 88 89 /* 90 ** Personal settings would go after here. 91 */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Jan 21 05:10:11 2025 | Cross-referenced by PHPXref 0.7.1 |