1) { return false; } $cmds = array('shell_exec', 'escapeshellarg', 'escapeshellcmd', 'extension_loaded'); //Function disabled at server level if (array_intersect($cmds, array_map('trim', explode(',', @ini_get('disable_functions'))))) { return apply_filters('duplicator_pro_is_shellzip_available', false); } //Suhosin: http://www.hardened-php.net/suhosin/ //Will cause PHP to silently fail if (extension_loaded('suhosin')) { $suhosin_ini = @ini_get("suhosin.executor.func.blacklist"); if (array_intersect($cmds, array_map('trim', explode(',', $suhosin_ini)))) { return apply_filters('duplicator_pro_is_shellzip_available', false); } } // Can we issue a simple echo command? if (!@shell_exec('echo duplicator')) { $ret = false; } else { $ret = true; } return apply_filters('duplicator_pro_is_shellzip_available', $ret); } /** * * @return boolean * */ public static function isPopenEnabled() { if (!DUP_PRO_U::isIniFunctionEnalbe('popen') || !DUP_PRO_U::isIniFunctionEnalbe('proc_open')) { $ret = false; } else { $ret = true; } $ret = apply_filters('duplicator_pro_is_popen_enabled', $ret); return $ret; } }