settings_debugrow(__('Web server:', 'updraftplus'), htmlspecialchars($web_server).' ('.htmlspecialchars($uname_info).')'); $updraftplus_admin->settings_debugrow('ABSPATH:', htmlspecialchars(ABSPATH)); $updraftplus_admin->settings_debugrow('WP_CONTENT_DIR:', htmlspecialchars(WP_CONTENT_DIR)); $updraftplus_admin->settings_debugrow('WP_PLUGIN_DIR:', htmlspecialchars(WP_PLUGIN_DIR)); $updraftplus_admin->settings_debugrow('Table prefix:', htmlspecialchars($updraftplus->get_table_prefix())); $updraftplus_admin->settings_debugrow(__('Web-server disk space in use by UpdraftPlus', 'updraftplus').':', ''.UpdraftPlus_Filesystem_Functions::get_disk_space_used('updraft').''.__('refresh', 'updraftplus').''); $peak_memory_usage = memory_get_peak_usage(true)/1048576; $memory_usage = memory_get_usage(true)/1048576; $updraftplus_admin->settings_debugrow(__('Peak memory usage', 'updraftplus').':', $peak_memory_usage.' MB'); $updraftplus_admin->settings_debugrow(__('Current memory usage', 'updraftplus').':', $memory_usage.' MB'); $updraftplus_admin->settings_debugrow(__('Memory limit', 'updraftplus').':', htmlspecialchars(ini_get('memory_limit'))); $updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'PHP'), htmlspecialchars(phpversion()).' - '.__('show PHP information (phpinfo)', 'updraftplus').''); $db_version = $wpdb->get_var('SELECT VERSION()'); // WPDB::db_version() uses mysqli_get_server_info() ; see: https://github.com/joomla/joomla-cms/issues/9062 if ('' == $db_version) $db_version = $wpdb->db_version(); $updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'MySQL'), htmlspecialchars($db_version)); if (function_exists('curl_version') && function_exists('curl_exec')) { $cv = curl_version(); $cvs = $cv['version'].' / SSL: '.$cv['ssl_version'].' / libz: '.$cv['libz_version']; } else { $cvs = __('Not installed', 'updraftplus').' ('.__('required for some remote storage providers', 'updraftplus').')'; } $updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'Curl'), htmlspecialchars($cvs)); $updraftplus_admin->settings_debugrow(sprintf(__('%s version:', 'updraftplus'), 'OpenSSL'), defined('OPENSSL_VERSION_TEXT') ? OPENSSL_VERSION_TEXT : '-'); $updraftplus_admin->settings_debugrow('MCrypt:', function_exists('mcrypt_encrypt') ? __('Yes') : __('No')); if (version_compare(PHP_VERSION, '5.2.0', '>=') && extension_loaded('zip')) { $ziparchive_exists = __('Yes', 'updraftplus'); } else { // First do class_exists, because method_exists still sometimes segfaults due to a rare PHP bug $ziparchive_exists = (class_exists('ZipArchive') && method_exists('ZipArchive', 'addFile')) ? __('Yes', 'updraftplus') : __('No', 'updraftplus'); } $updraftplus_admin->settings_debugrow('ZipArchive::addFile:', $ziparchive_exists); $binzip = $updraftplus->find_working_bin_zip(false, false); $updraftplus_admin->settings_debugrow(__('zip executable found:', 'updraftplus'), ((is_string($binzip)) ? __('Yes').': '.$binzip : __('No'))); $hosting_bytes_free = $updraftplus->get_hosting_disk_quota_free(); if (is_array($hosting_bytes_free)) { $perc = round(100*$hosting_bytes_free[1]/(max($hosting_bytes_free[2], 1)), 1); $updraftplus_admin->settings_debugrow(__('Free disk space in account:', 'updraftplus'), sprintf(__('%s (%s used)', 'updraftplus'), round($hosting_bytes_free[3]/1048576, 1)." MB", "$perc %")); } if (function_exists('apache_get_modules')) { $apache_info = ''; $apache_modules = apache_get_modules(); if (is_array($apache_modules)) { sort($apache_modules, SORT_STRING); foreach ($apache_modules as $mod) { if (0 === strpos($mod, 'mod_')) { $apache_info .= ', '.substr($mod, 4); } else { $apache_info .= ', '.$mod; } } } $apache_info = substr($apache_info, 2); $updraftplus_admin->settings_debugrow(__('Apache modules', 'updraftplus').':', $apache_info); } if (empty($options['suppress_plugins_for_debugging'])) { $updraftplus_admin->settings_debugrow(__('Plugins for debugging:', 'updraftplus'), 'WP Crontrol | SQL Executioner | Advanced Code Editor '.(current_user_can('edit_plugins') ? '(edit UpdraftPlus)' : '').' | WP Filemanager'); } $updraftplus_admin->settings_debugrow("HTTP Get: ", ''.__('Fetch', 'updraftplus').''.__('Fetch', 'updraftplus').' (Curl)

'); $updraftplus_admin->settings_debugrow(__("Call WordPress action:", 'updraftplus'), ''.__('Call', 'updraftplus').'
'); $updraftplus_admin->settings_debugrow('Site ID:', '(used to identify any Vault connections) '.htmlspecialchars($updraftplus->siteid()).' - '.__('reset', 'updraftplus').""); $updraftplus_admin->settings_debugrow('', ''.__('Show raw backup and file list', 'updraftplus').'
'.__('Rescan remote storage', 'updraftplus').' - '.__('log results to console', 'updraftplus').''); ?>