[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/tests/data/config/ -> yourls-tests-config-ci.php (source)

   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  define( 'YOURLS_DB_PREFIX', 'yourls_' );
  16  
  17  /*** Site options */
  18  define( 'YOURLS_PHP_BIN', 'php' );
  19  
  20  /*** Standard YOURLS config. */
  21  
  22  define('YOURLS_LANG',  'fr_FR'); // locale of a sample translation file in the data dir
  23  define('YOURLS_DEBUG', true);
  24  define('YOURLS_COOKIEKEY',  'I &hearts; unit tests');
  25  
  26  $yourls_reserved_URL = array(
  27      'porn', 'sex', 'nigger', 'fuck', 'cunt', 'dick',
  28  );
  29  
  30  $yourls_user_passwords = array(
  31      'yourls'  => 'secret-ci-test',
  32      'clear'   => 'somepassword',
  33      'md5'     => 'md5:12373:e52e4488f79a740bd341f229e3c163c8',                          // password: '3cd6944201fa7bbc5e0fe852e36b1096' with md5 and salt
  34      'phpass'  => 'phpass:!2a!08!T1ptMlBSxu7g3odpbUXgd.9wbKvg8k7cJt.HbwSqUNrlLPudWnf/6', // password: '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass library
  35      'phpass2' => 'phpass:$2a$08$gt2bnpfUyuCX3hrp0RPOieFR1RwBnLsMzpq/NvPXwCdV3LqI3RGYi', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' with old PHPass lib but without YOURLS internal char substitution
  36      'phpass3' => 'phpass:!2y!10!.FjK.vQR0JVivkMwckiiIesFUFhtMxX/f9pes.i/ccp/W0IuUSxPW', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash
  37      'phpass4' => 'phpass:$2y$10$KPP/sv7pv0JL2GwcixNBfuXRPElC4KxQUgetqBfCboB.q30yKwKG6', // password: also '3cd6944201fa7bbc5e0fe852e36b1096' hashed with password_hash but without YOURLS internal char substitution
  38      '1994'    => '@$*',
  39      'special' => 'lol .\+*?[^]$(){}=!<>|:-/',
  40      'quote1'  => '"ahah"',
  41      'quote2'  => "'ahah'",
  42      'utf8fun' => 'أنا أحب النقانق',
  43  );


Generated: Sat Aug 8 05:10:51 2026 Cross-referenced by PHPXref 0.7.1