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


Generated: Sun Jul 12 05:10:03 2026 Cross-referenced by PHPXref 0.7.1