/** Enable W3 Total Cache */ define('WP_CACHE', true); // Added by W3 Total Cache /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ $wp_memory_limit = '256M'; $wp_max_memory_limit = '512M'; // Define Environments $environments = array( 'development' => 'drukarniaformat.localhost', 'staging' => 'drukarniaformat.bimstudio.pl', 'production' => 'drukarniaformat.pl' ); $http_protocols = array( 'development' => 'http://', 'staging' => 'http://', 'production' => 'http://' ); //define('ENVIRONMENT', 'staging'); //define('ENVIRONMENT', 'development'); // Get Server name $server_name = $_SERVER['SERVER_NAME']; // Define ENV based on server name foreach ($environments as $key => $env) { if (strstr($server_name, $env)) { define('ENVIRONMENT', $key); break; } } // If no environment is set default to production if (!defined('ENVIRONMENT')) { define('ENVIRONMENT', 'production'); } // Define different DB connection details depending on environment switch (ENVIRONMENT) { case 'development': define('DB_NAME', 'drukarniaformat.pl'); define('DB_USER', 'root'); define('DB_PASSWORD', 'STARTEDagain1'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('WP_SITEURL', $http_protocols[ENVIRONMENT] . $environments[ENVIRONMENT] . '/'); define('WP_HOME', $http_protocols[ENVIRONMENT] . $environments[ENVIRONMENT] . '/'); $wp_memory_limit = '1024M'; $wp_max_memory_limit = '2048M'; // define('WP_DEBUG', true); // define('WP_DEBUG_LOG', true); // Enable Debug logging to the /wp-content/debug.log file // define('WP_DEBUG_DISPLAY', true); // Disable display of errors and warnings // @ini_set('display_errors', 1); // define('SCRIPT_DEBUG', true); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) break; case 'staging': define('DB_NAME', 'hypermotion_drukarniaformat'); define('DB_USER', 'hypermotion_drukarniaformat'); define('DB_PASSWORD', 'dupotHoURdbl!'); define('DB_HOST', 'mariadb105.hypermotion.nazwa.pl'); define('DB_HOST_SLAVE', 'mariadb105.hypermotion.nazwa.pl'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('WP_SITEURL', 'http://drukarniaformat.bimstudio.pl'); define('WP_HOME', 'http://drukarniaformat.bimstudio.pl'); $wp_memory_limit = '1024M'; $wp_max_memory_limit = '2048M'; define('WP_DEBUG', false); break; case 'production': define('DB_NAME', 'hypermotion_drukarniaformat'); define('DB_USER', 'hypermotion_drukarniaformat'); define('DB_PASSWORD', 'dupotHoURdbl!'); define('DB_HOST', 'mariadb105.hypermotion.nazwa.pl'); define('DB_HOST_SLAVE', 'mariadb105.hypermotion.nazwa.pl'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('WP_SITEURL', 'http://drukarniaformat.pl'); define('WP_HOME', 'http://drukarniaformat.pl'); $wp_memory_limit = '512M'; $wp_max_memory_limit = '1024M'; define('WP_DEBUG', false); break; } define( 'WP_MEMORY_LIMIT', $wp_memory_limit ); define( 'WP_MAX_MEMORY_LIMIT', $wp_max_memory_limit ); /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', '1-[Oj#wD0kvto;8r5 Vhq8dpP@4(kUQ(joe/N5x-VY{0)w4)1r9_Udv*bc14kr3i'); define('SECURE_AUTH_KEY', 'klJp?eM|M-|^[|zt41&K|BYlKR=S@l:)+@YZ},|9`zkOc-nDlD|X`9`#x*BtuON@'); define('LOGGED_IN_KEY', '_esq.;jc&(l_mqJe::T* l-oUVQ=2uHoyKZdCd<@/ISE.BQ@}YvpBm=ZfwCp!D06'); define('NONCE_KEY', 'NG4?+JYep+GVHr'); define('AUTH_SALT', 'oqbEkmARZzomU?NL;j)w|EKA0pPLr;A8K6]6_CA09'); define('SECURE_AUTH_SALT', 'u>ZmX4BR:h]S4)gA8~]Tdd_cjz36QvIDh@l+{GAI?3ex:q'); /**#@-*/ /** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'pbm_'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://wordpress.org/support/article/debugging-in-wordpress/ */ /* reduce the number of kept revisions to increase longterm performance */ //define('WP_POST_REVISIONS', 5); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php'; define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true);