[ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * YOURLS Config for local unit tests. Copy this file to yourls-tests-config.php 4 */ 5 6 /*** YOURLS code base you want to test */ 7 define( 'YOURLS_ABSPATH', '/home/you/yourls_directory' ); 8 9 /*** URL of that YOURLS code base */ 10 define( 'YOURLS_SITE', 'http://127.0.0.1/yourls_directory' ); 11 12 /*** MySQL settings */ 13 define( 'YOURLS_DB_USER', 'your DB username' ); 14 define( 'YOURLS_DB_PASS', 'your DB password' ); 15 define( 'YOURLS_DB_NAME', 'DB name for tests -- an empty one' ); // Must be an EMPTY DATABASE: everything will be erased 16 define( 'YOURLS_DB_HOST', 'localhost' ); 17 18 /*** PHP binary - edit if the executable binary is not in system path and put full path ie 'c:/php/php.exe' */ 19 define( 'YOURLS_PHP_BIN', 'php' ); 20 21 /*** Most likely, don't edit anything else. Pretty much standard YOURLS config. */ 22 23 define('YOURLS_HOURS_OFFSET', 5); 24 define('YOURLS_UNIQUE_URLS', true); 25 define('YOURLS_PRIVATE', true); 26 define('YOURLS_COOKIEKEY', 'I ♥ unit tests'); 27 define('YOURLS_URL_CONVERT', 62); 28 define('YOURLS_DB_PREFIX', 'yourls_'); 29 define('YOURLS_FLOOD_DELAY_SECONDS', 0); 30 define('YOURLS_FLOOD_IP_WHITELIST', ''); 31 define('YOURLS_LANG', 'fr_FR'); // locale of a sample translation file in the data dir 32 define('YOURLS_DEBUG', true); 33 34 $yourls_reserved_URL = array( 35 'porn', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 36 ); 37 38 $yourls_user_passwords = array( 39 'yourls' => 'secret-ci-test', 40 'clear' => 'somepassword', 41 'md5' => 'md5:12373:e52e4488f79a740bd341f229e3c163c8', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with md5 and salt 42 'phpass' => 'phpass:!2a!08!T1ptMlBSxu7g3odpbUXgd.9wbKvg8k7cJt.HbwSqUNrlLPudWnf/6', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass library 43 'phpass2' => 'phpass:$2a$08$gt2bnpfUyuCX3hrp0RPOieFR1RwBnLsMzpq/NvPXwCdV3LqI3RGYi', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass lib but without YOURLS internal char substitution 44 'phpass3' => 'phpass:!2y!10!.FjK.vQR0JVivkMwckiiIesFUFhtMxX/f9pes.i/ccp/W0IuUSxPW', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash 45 'phpass4' => 'phpass:$2y$10$KPP/sv7pv0JL2GwcixNBfuXRPElC4KxQUgetqBfCboB.q30yKwKG6', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash but without YOURLS internal char substitution 46 '1994' => '@$*', 47 'special' => 'lol .\+*?[^]$(){}=!<>|:-/', 48 'quote1' => '"ahah"', 49 'quote2' => "'ahah'", 50 'utf8fun' => 'أنا أحب النقانق', 51 );
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 |