', addslashes($reactivate_url));
require_once W3TC_INC_DIR . '/functions/file.php';
if (w3_check_open_basedir($path)) {
$error = sprintf('%s could not be created, please run following command:
chmod 777 %s
then %s.', $path, (file_exists($path) ? $path : dirname($path)), $reactivate_button);
} else {
$error = sprintf('%s could not be created, open_basedir restriction in effect, please check your php.ini settings:
open_basedir = "%s"
then %s.', $path, ini_get('open_basedir'), $reactivate_button);
}
w3_activate_error($error);
}
/**
* W3 Network activation error
*
* @return void
*/
function w3_network_activate_error() {
w3_activation_cleanup();
wp_redirect(plugins_url('pub/network_activation.php', W3TC_FILE));
echo '
W3 Total Cache Error: plugin cannot be activated network-wide.
'; echo 'Back'; exit(); }