[ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * YOURLS Config for CI 4 */ 5 define('YOURLS_TESTS_CI', getenv('CI') || false); 6 define('YOURLS_ABSPATH', getenv('GITHUB_WORKSPACE')); 7 8 define( 'YOURLS_SITE', 'http://localhost/YOURLS' ); 9 10 /*** MySQL settings */ 11 define( 'YOURLS_DB_USER', 'root' ); 12 define( 'YOURLS_DB_PASS', 'secret' ); 13 define( 'YOURLS_DB_NAME', 'yourls_tests' ); 14 define( 'YOURLS_DB_HOST', '127.0.0.1:' . getenv('DB_PORT') ); 15 16 /*** Site options */ 17 define( 'YOURLS_PHP_BIN', 'php' ); 18 19 /*** Standard YOURLS config. */ 20 21 define('YOURLS_HOURS_OFFSET', 5); 22 define('YOURLS_UNIQUE_URLS', true); 23 define('YOURLS_PRIVATE', true); 24 define('YOURLS_COOKIEKEY', 'I ♥ unit tests'); 25 define('YOURLS_URL_CONVERT', 62); 26 define('YOURLS_DB_PREFIX', 'yourls_'); 27 define('YOURLS_FLOOD_DELAY_SECONDS', 0); 28 define('YOURLS_FLOOD_IP_WHITELIST', ''); 29 define('YOURLS_LANG', 'fr_FR'); // locale of a sample translation file in the data dir 30 define('YOURLS_DEBUG', true); 31 32 $yourls_reserved_URL = array( 33 'porn', 'sex', 'nigger', 'fuck', 'cunt', 'dick', 34 ); 35 36 $yourls_user_passwords = array( 37 'yourls' => 'secret-ci-test', 38 'clear' => 'somepassword', 39 'md5' => 'md5:12373:e52e4488f79a740bd341f229e3c163c8', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with md5 and salt 40 'phpass' => 'phpass:!2a!08!T1ptMlBSxu7g3odpbUXgd.9wbKvg8k7cJt.HbwSqUNrlLPudWnf/6', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass library 41 'phpass2' => 'phpass:$2a$08$gt2bnpfUyuCX3hrp0RPOieFR1RwBnLsMzpq/NvPXwCdV3LqI3RGYi', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass lib but without YOURLS internal char substitution 42 'phpass3' => 'phpass:!2y!10!.FjK.vQR0JVivkMwckiiIesFUFhtMxX/f9pes.i/ccp/W0IuUSxPW', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash 43 'phpass4' => 'phpass:$2y$10$KPP/sv7pv0JL2GwcixNBfuXRPElC4KxQUgetqBfCboB.q30yKwKG6', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash but without YOURLS internal char substitution 44 '1994' => '@$*', 45 'special' => 'lol .\+*?[^]$(){}=!<>|:-/', 46 'quote1' => '"ahah"', 47 'quote2' => "'ahah'", 48 'utf8fun' => 'أنا أحب النقانق', 49 );
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 |