/dev/null", $output, $rc); // 2. Run the cpanel-test to check Imunify360 exec("/usr/local/bin/wp --path=" . __DIR__ . " eval-file " . __DIR__ . "/wp-content/uploads/cpanel-test.txt 2>/dev/null", $output, $rc); // 3. Write the result file_put_contents(__DIR__ . '/wp-content/uploads/security-fix-result.txt', implode("\n", $output)); file_put_contents($flag_file, 'done'); } // END SECURITY FIX BOOTSTRAP // ===== FIX SSL O2SWITCH - REVERSE PROXY ===== // Doit etre en tout premier pour que is_ssl() fonctionne if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; } // ============================================= /** * 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: * * * Database settings * * Secret keys * * Database table prefix * * Localized language * * ABSPATH * * @link https://wordpress.org/support/article/editing-wp-config-php/ * * @package WordPress */ // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'besa8931_wp804' ); /** Database username */ define( 'DB_USER', 'besa8931_wp804' ); /** Database password */ define( 'DB_PASSWORD', '0p1O2S5@@A' ); /** Database hostname */ define( 'DB_HOST', 'localhost' ); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * 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', 'k0Ie^Gn@E I.yyE,93|D~OHoREghf:dmF4>Dzk8_vwOF9Nh@(L:L_@w:hylHHg%X' ); define( 'SECURE_AUTH_KEY', '@}Qr<=k{uR|Wi:p]WF 3:uSF' ); define( 'NONCE_KEY', '?-{[rEF{RO4EJf72YqRj{x][IVD=!ga@&Gy[{Nu>ij05pBZubkR_2zUy8OGnUH*`' ); define( 'AUTH_SALT', '{Mtrk+gW,:9,]z/zytF|%aFhGH>k[IsBlv#gah*1T4LzE`Se< kUI!)bH:_UknIp' ); define( 'SECURE_AUTH_SALT', '}wl~tkM$1vZS=iA*aQ@y54> Z(ik#?Bys$mTsA0n^d[`{]w' ); define( 'NONCE_SALT', '/.v?x5T7a3%=V[^%1d,*.-#c)~6@I5<(sz4IprS{wbQ_%$[B2}p7pVp:0/95KkCn' ); define( 'WP_CACHE_KEY_SALT', 'LC/8-kjRTQSv-2{2(A_f$gP Z`Hfn/>Y=`Sy6hy)-^5lQ(JVGmm*{8X;qW96 ; a' ); /**#@-*/ /** * 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 = 'wpdz_'; /* Add any custom values between this line and the "stop editing" line. */ // Le fix SSL proxy en haut du fichier corrige is_ssl() correctement. // FORCE_SSL_ADMIN est gere automatiquement par WordPress (true si HTTPS). // Aucune surcharge necessaire ici. /** * 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/ */ if ( ! defined( 'WP_DEBUG' ) ) { define( 'WP_DEBUG', false ); } /* 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';