phpinfo(); $serverinfo = ob_get_contents(); ob_end_clean(); $serverinfo = preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $serverinfo); $serverinfo = preg_replace('%^.*<title>(.*)</title>.*$%ms', '$1', $serverinfo); $action_response = null; $dbvar_maxtime = DUP_Util::MysqlVariableValue('wait_timeout'); $dbvar_maxpacks = DUP_Util::MysqlVariableValue('max_allowed_packet'); $dbvar_maxtime = is_null($dbvar_maxtime) ? __("unknow", 'wpduplicator') : $dbvar_maxtime; $dbvar_maxpacks = is_null($dbvar_maxpacks) ? __("unknow", 'wpduplicator') : $dbvar_maxpacks; $space = @disk_total_space(DUPLICATOR_WPROOTPATH); $space_free = @disk_free_space(DUPLICATOR_WPROOTPATH); $perc = @round(100 / $space * $space_free, 2); $mysqldumpPath = DUP_Database::GetMySqlDumpPath(); $mysqlDumpSupport = $mysqldumpPath ? $mysqldumpPath : 'Path Not Found'; $view_state = DUP_UI::GetViewStateArray(); $ui_css_srv_panel = isset($view_state['dup-settings-diag-srv-panel']) && $view_state['dup-settings-diag-srv-panel'] ? 'display:block' : 'display:none'; $ui_css_opts_panel = isset($view_state['dup-settings-diag-opts-panel']) && $view_state['dup-settings-diag-opts-panel'] ? 'display:block' : 'display:none'; //POST BACK $action_updated = null; if (isset($_POST['action'])) { $action_result = DUP_Settings::DeleteWPOption($_POST['action']); switch ($_POST['action']) { case 'duplicator_settings': $action_response = __('Plugin settings reset.', 'wpduplicator'); break; case 'duplicator_ui_view_state': $action_response = __('View state settings reset.', 'wpduplicator'); break; case 'duplicator_package_active': $action_response = __('Active package settings reset.', 'wpduplicator');