PageRenderTime 64ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-config.php

https://gitlab.com/GzusGO/TDD-WordPress-standard-installation
PHP | 112 lines | 58 code | 10 blank | 44 comment | 6 complexity | c60855a73c771cabacfd1003cbac2870 MD5 | raw file
  1. <?php
  2. // ===================================================
  3. // Load database info and local development parameters
  4. // ===================================================
  5. if ( file_exists( dirname( __FILE__ ) . '/env-config-T.php' ) && ($_SERVER['HTTP_HOST'] == "web1.test.com" )) {
  6. define( 'WP_LOCAL_TEST', true );
  7. define( 'FORCE_SSL_LOGIN', false );
  8. define( 'FORCE_SSL_ADMIN', false );
  9. define( 'WP_CACHE', false ); //Added by WP-Cache Manager back true Gzus
  10. $urlFolder='/wp';
  11. include( dirname( __FILE__ ) . '/env-config-T.php' );
  12. } elseif ( file_exists( dirname( __FILE__ ) . '/env-config-D.php' )) {
  13. define( 'WP_LOCAL_DEV', true );
  14. define( 'FORCE_SSL_LOGIN', false );
  15. define( 'FORCE_SSL_ADMIN', false );
  16. define( 'WP_CACHE', false ); //Added by WP-Cache Manager back true Gzus
  17. $urlFolder='/wp';
  18. include( dirname( __FILE__ ) . '/env-config-D.php' );
  19. } else {
  20. // production
  21. // TODO: cambiar a por defecto localhost
  22. $urlFolder='/wp';
  23. define( 'WP_LOCAL_PRO', false );
  24. define( 'FORCE_SSL_LOGIN', true );
  25. define( 'FORCE_SSL_ADMIN', true );
  26. define( 'WP_CACHE', true ); //Added by WP-Cache Manager back true
  27. define( 'DB_NAME', '%%DB_NAME%%' );/** The name of the database for WordPress */
  28. define( 'DB_USER', '%%DB_USER%%' );/** MySQL database username */
  29. define( 'DB_PASSWORD', '%%DB_PASSWORD%%*' );/** MySQL database password */
  30. define('DB_HOST', 'localhost');/** MySQL hostname */
  31. }
  32. // increase PHP upload memory limit
  33. define( 'WP_MEMORY_LIMIT', '512M' );
  34. //deleate trash
  35. define( 'EMPTY_TRASH_DAYS', 30 ); // 30 days
  36. //The entries below were created by iThemes Security to enforce SSL
  37. define( 'FORCE_SSL_LOGIN', true );
  38. define( 'FORCE_SSL_ADMIN', true );
  39. define( 'WP_POST_REVISIONS', 10 );
  40. // ========================
  41. // Custom Content Directory
  42. // ========================
  43. define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' );
  44. define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'].'/content' );
  45. define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'].$urlFolder );
  46. define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'].$urlFolder );
  47. define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) .'/content/plugins' );
  48. define( 'UPLOADS', 'http://' . $_SERVER['HTTP_HOST'].'/upload' );
  49. // ================================================
  50. // You almost certainly do not want to change these
  51. // ================================================
  52. define( 'DB_CHARSET', 'utf8' );
  53. define( 'DB_COLLATE', '' );
  54. // ==============================================================
  55. // Salts, for security
  56. // Grab these from: https://api.wordpress.org/secret-key/1.1/salt
  57. // ==============================================================
  58. define('AUTH_KEY','');
  59. define('SECURE_AUTH_KEY','');
  60. define('LOGGED_IN_KEY','');
  61. define('NONCE_KEY','');
  62. define('AUTH_SALT','');
  63. define('SECURE_AUTH_SALT','');
  64. define('LOGGED_IN_SALT','');
  65. define('NONCE_SALT','');
  66. // ==============================================================
  67. // Table prefix
  68. // Change this if you have multiple installs in the same database
  69. // ==============================================================
  70. $table_prefix = 'er7b9i_';
  71. // ================================
  72. // Language
  73. // Leave blank for American English
  74. // ================================
  75. define( 'WPLANG', '' );
  76. // ===========
  77. // Hide errors
  78. // ===========
  79. ini_set( 'display_errors', 0 );
  80. define( 'WP_DEBUG_DISPLAY', false );
  81. // =================================================================
  82. // Debug mode
  83. // Debugging? Enable these. Can also enable them in local-config.php
  84. // =================================================================
  85. // define( 'SAVEQUERIES', true );
  86. // define( 'WP_DEBUG', true );
  87. // ======================================
  88. // Load a Memcached config if we have one
  89. // ======================================
  90. if ( file_exists( dirname( __FILE__ ) . '/memcached.php' ) )
  91. $memcached_servers = include( dirname( __FILE__ ) . '/memcached.php' );
  92. // ===========================================================================================
  93. // This can be used to programatically set the stage when deploying (e.g. production, staging)
  94. // ===========================================================================================
  95. define( 'WP_STAGE', '%%WP_STAGE%%' );
  96. define( 'STAGING_DOMAIN', '%%WP_STAGING_DOMAIN%%' ); // Does magic in WP Stack to handle staging domain rewriting
  97. // ===================
  98. // Bootstrap WordPress
  99. // ===================
  100. if ( !defined( 'ABSPATH' ) )
  101. define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
  102. require_once( ABSPATH . "wp-settings.php" );