diff --git a/class/class-mainwp-child-server-information.php b/class/class-mainwp-child-server-information.php index 343f7a8..ceefe60 100644 --- a/class/class-mainwp-child-server-information.php +++ b/class/class-mainwp-child-server-information.php @@ -5,10 +5,13 @@ class MainWP_Child_Server_Information { const ERROR = 2; public static function init() { - add_action( 'wp_ajax_mainwp-child_dismiss_warnings', array( - 'MainWP_Child_Server_Information', - 'dismissWarnings', - ) ); + add_action( + 'wp_ajax_mainwp-child_dismiss_warnings', + array( + 'MainWP_Child_Server_Information', + 'dismissWarnings', + ) + ); } public static function dismissWarnings() { @@ -17,14 +20,13 @@ class MainWP_Child_Server_Information { if ( ! is_array( $dismissWarnings ) ) { $dismissWarnings = array(); } - - if ( $_POST['what'] == 'warning' ) { - if ( isset($_POST['warnings']) ) { - $warnings = intval($_POST['warnings']); + if ( 'warning' == $_POST['what'] ) { + if ( isset( $_POST['warnings'] ) ) { + $warnings = intval( $_POST['warnings'] ); } else { $warnings = self::getWarnings(); } - $dismissWarnings['warnings'] = $warnings; + $dismissWarnings['warnings'] = $warnings; } MainWP_Helper::update_option( 'mainwp_child_dismiss_warnings', $dismissWarnings ); } @@ -67,17 +69,15 @@ class MainWP_Child_Server_Information { var data = { action: 'mainwp-child_dismiss_warnings', what: pAction, - warnings: + warnings: }; jQuery.ajax( { type: "POST", url: ajaxurl, data: data, - success: function ( resp ) { - }, - error: function () { - }, + success: function ( resp ) {}, + error: function () {}, dataType: 'json' } ); @@ -102,7 +102,7 @@ class MainWP_Child_Server_Information { border-radius: 3px; margin: 1em 0 !important; - background-image: url('') !important; + background-image: url( '' ) !important; background-position: 1.5em 50% !important; background-repeat: no-repeat !important; background-size: 30px !important; @@ -123,9 +123,8 @@ class MainWP_Child_Server_Information { 0 ) { - $warning .= 'This site may not connect to your dashboard or may have other issues. Check your MainWP server information page to review and check here for more information on possible fixesDismiss'; + $warning .= 'This site may not connect to your dashboard or may have other issues. Check your MainWP server information page.Dismiss'; } echo $warning; ?> @@ -145,22 +144,19 @@ class MainWP_Child_Server_Information { * * By Eli Grey, http://eligrey.com * License: X11/MIT - * See LICENSE.md + * See LICENSE.md */ /*global self */ - /*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true, - plusplus: true */ + /*jslint bitwise: true, regexp: true, confusion: true, es5: true, vars: true, white: true, plusplus: true */ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ var childSaveAs = childSaveAs - || (navigator.msSaveBlob && navigator.msSaveBlob.bind(navigator)) - || (function(view) { + || ( navigator.msSaveBlob && navigator.msSaveBlob.bind( navigator ) ) + || ( function( view ) { "use strict"; - var - doc = view.document - // only get URL when necessary in case BlobBuilder.js hasn't overridden it yet + var doc = view.document , get_URL = function() { return view.URL || view.webkitURL || view; } @@ -189,13 +185,13 @@ class MainWP_Child_Server_Information { var i = deletion_queue.length; while (i--) { var file = deletion_queue[i]; - if (typeof file === "string") { // file is an object URL + if (typeof file === "string") { URL.revokeObjectURL(file); - } else { // file is a File + } else { file.remove(); } } - deletion_queue.length = 0; // clear queue + deletion_queue.length = 0; } , dispatch = function(filesaver, event_types, event) { event_types = [].concat(event_types); @@ -211,8 +207,7 @@ class MainWP_Child_Server_Information { } } } - , FileSaver = function(blob, name) { - // First try a.download, then web filesystem, then object URLs + , FileSaver = function( blob, name ) { var filesaver = this , type = blob.type @@ -225,13 +220,11 @@ class MainWP_Child_Server_Information { return object_url; } , dispatch_all = function() { - dispatch(filesaver, "writestart progress write writeend".split(" ")); + dispatch( filesaver, "writestart progress write writeend".split( " " ) ); } - // on any filesys errors revert to saving with object URLs , fs_error = function() { - // don't create more object URLs than needed - if (blob_changed || !object_url) { - object_url = get_object_url(blob); + if ( blob_changed || !object_url ) { + object_url = get_object_url( blob ); } if (target_view) { target_view.location.href = object_url; @@ -250,34 +243,28 @@ class MainWP_Child_Server_Information { , slice ; filesaver.readyState = filesaver.INIT; - if (!name) { + if ( !name ) { name = "download"; } - if (can_use_save_link) { - object_url = get_object_url(blob); + if ( can_use_save_link ) { + object_url = get_object_url( blob ); save_link.href = object_url; save_link.download = name; - if (click(save_link)) { + if ( click( save_link ) ) { filesaver.readyState = filesaver.DONE; dispatch_all(); return; } } - // Object and web filesystem URLs have a problem saving in Google Chrome when - // viewed in a tab, so I force save with application/octet-stream - // http://code.google.com/p/chromium/issues/detail?id=91158 - if (view.chrome && type && type !== force_saveable_type) { + if ( view.chrome && type && type !== force_saveable_type ) { slice = blob.slice || blob.webkitSlice; - blob = slice.call(blob, 0, blob.size, force_saveable_type); + blob = slice.call( blob, 0, blob.size, force_saveable_type ); blob_changed = true; } - // Since I can't be sure that the guessed media type will trigger a download - // in WebKit, I append .download to the filename. - // https://bugs.webkit.org/show_bug.cgi?id=65440 if (webkit_req_fs && name !== "download") { name += ".download"; } - if (type === force_saveable_type || webkit_req_fs) { + if ( type === force_saveable_type || webkit_req_fs ) { target_view = view; } else { target_view = view.open(); @@ -317,7 +304,6 @@ class MainWP_Child_Server_Information { }), fs_error); }; dir.getFile(name, {create: false}, abortable(function(file) { - // delete file if it already exists file.remove(); save(); }), abortable(function(ex) { @@ -362,8 +348,7 @@ class MainWP_Child_Server_Information { var o = i.toString(); if (!s) { s = '0'; } while (o.length < parseInt(l)) { - // empty - if(w == 'undefined'){ + if( w == 'undefined' ){ o = s + o; }else{ o = o + s; @@ -371,65 +356,62 @@ class MainWP_Child_Server_Information { } return o; }; - jQuery('a.mwp-child-get-system-report-btn').live('click', function(){ + jQuery( 'a.mwp-child-get-system-report-btn' ).live( 'click', function() { var report = ""; - jQuery('.mwp_server_info_box thead, .mwp_server_info_box tbody').each(function(){ + jQuery( '.mwp_server_info_box thead, .mwp_server_info_box tbody' ).each( function() { var td_len = [35, 55, 45, 12, 12]; var th_count = 0; var i; - if ( jQuery( this ).is('thead') ) { + if ( jQuery( this ).is( 'thead' ) ) { i = 0; report = report + "\n### "; - th_count = jQuery( this ).find('th:not(".mwp-not-generate-row")').length; - jQuery( this ).find('th:not(".mwp-not-generate-row")').each(function(){ + th_count = jQuery( this ).find( 'th:not(".mwp-not-generate-row")' ).length; + jQuery( this ).find( 'th:not(".mwp-not-generate-row")' ).each( function() { var len = td_len[i]; - if (i == 0 || i == th_count -1) + if ( i == 0 || i == th_count -1 ) len = len - 4; - report = report + mwp_child_strCut(jQuery.trim( jQuery( this ).text()), len, ' ' ); + report = report + mwp_child_strCut( jQuery.trim( jQuery( this ).text() ), len, ' ' ); i++; - }); + } ); report = report + " ###\n\n"; } else { - jQuery('tr', jQuery( this )).each(function(){ - if (jQuery( this ).hasClass('mwp-not-generate-row')) + jQuery( 'tr', jQuery( this ) ).each( function() { + if ( jQuery( this ).hasClass( 'mwp-not-generate-row' ) ) return; i = 0; - jQuery( this ).find('td:not(".mwp-not-generate-row")').each(function(){ - if (jQuery( this ).hasClass('mwp-hide-generate-row')) { - report = report + mwp_child_strCut(' ', td_len[i], ' ' ); + jQuery( this ).find( 'td:not(".mwp-not-generate-row")' ).each( function() { + if (jQuery( this ).hasClass( 'mwp-hide-generate-row' ) ) { + report = report + mwp_child_strCut( ' ', td_len[i], ' ' ); i++; return; } - report = report + mwp_child_strCut(jQuery.trim( jQuery( this ).text()), td_len[i], ' ' ); + report = report + mwp_child_strCut( jQuery.trim( jQuery( this ).text() ), td_len[i], ' ' ); i++; - }); + } ); report = report + "\n"; - }); - + } ); } } ); - try { - jQuery("#mwp-server-information").slideDown(); - jQuery("#mwp-server-information textarea").val( report ).focus().select(); - jQuery(this).fadeOut(); - jQuery('.mwp_child_close_srv_info').show(); + jQuery( "#mwp-server-information" ).slideDown(); + jQuery( "#mwp-server-information textarea" ).val( report ).focus().select(); + jQuery( this ).fadeOut(); + jQuery( '.mwp_child_close_srv_info' ).show(); return false; } catch(e){ } - }); + } ); - jQuery('a#mwp_child_close_srv_info').live('click', function(){ - jQuery('#mwp-server-information').hide(); - jQuery('.mwp_child_close_srv_info').hide(); - jQuery('a.mwp-child-get-system-report-btn').show(); + jQuery( 'a#mwp_child_close_srv_info' ).live( 'click', function() { + jQuery( '#mwp-server-information' ).hide(); + jQuery( '.mwp_child_close_srv_info' ).hide(); + jQuery( 'a.mwp-child-get-system-report-btn' ).show(); return false; - }); - jQuery('#mwp_child_download_srv_info').live('click', function () { - var server_info = jQuery('#mwp-server-information textarea').val(); - var blob = new Blob([server_info], {type: "text/plain;charset=utf-8"}); - childSaveAs(blob, "server_child_information.txt"); - }); - + } ); + jQuery( '#mwp_child_download_srv_info' ).live( 'click', function() { + var server_info = jQuery( '#mwp-server-information textarea' ).val(); + var blob = new Blob( [server_info], {type: "text/plain;charset=utf-8"} ); + childSaveAs( blob, "server_child_information.txt" ); + } );
-

- | - - +

+ + | +

- +

-

-

- -

- -

- +

+ +

+ +

+
=', '3.4', 'getWordpressVersion' ) ) { $i ++; } @@ -515,8 +489,6 @@ class MainWP_Child_Server_Information { if ( ! self::check( '>=', '10000', 'getOutputBufferSize' ) ) { $i ++; } - // if (!self::check('=', true, 'getSSLSupport')) $i++; - if ( ! self::checkDirectoryMainWPDirectory( false ) ) { $i ++; } @@ -545,305 +517,285 @@ class MainWP_Child_Server_Information { public static function render() { $branding_title = MainWP_Child_Branding::Instance()->get_branding_title(); $isBranding = true; - if ( $branding_title == '' ) { + if ( '' == $branding_title ) { $branding_title = 'MainWP Child'; $isBranding = false; } - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =', '3.4', 'getWordpressVersion' ); - self::renderRow( 'WordPress Memory Limit', '>=', '64M', 'getWordpressMemoryLimit' ); - self::renderRow( 'MultiSite Disabled', '=', true, 'checkIfMultisite' ); - ?> - - - - - - - - - - - =', '5.6', 'getPHPVersion' ); - ?> - - - - - - =', '30', 'getMaxExecutionTime', 'seconds', '=', '0' ); - self::renderRowSec( 'PHP Max Input Time', '>=', '30', 'getMaxInputTime', 'seconds', '=', '0' ); - self::renderRow( 'PHP Memory Limit', '>=', '128M', 'getPHPMemoryLimit', '(256M+ best for big backups)', null, null, true ); - self::renderRow( 'PCRE Backtracking Limit', '>=', '10000', 'getOutputBufferSize' ); - self::renderRow( 'PHP Upload Max Filesize', '>=', '2M', 'getUploadMaxFilesize', '(2MB+ best for upload of big plugins)', null, null, true ); - self::renderRow( 'PHP Post Max Size', '>=', '2M', 'getPostMaxSize', '(2MB+ best for upload of big plugins)', null, null, true ); - self::renderRow( 'SSL Extension Enabled', '=', true, 'getSSLSupport' ); - self::renderRowSec( 'SSL Warnings', '=', '', 'getSSLWarning', 'empty', '' ); - self::renderRowSec( 'cURL Extension Enabled', '=', true, 'getCurlSupport', '', '', null, '', null, self::ERROR ); - self::renderRowSec( 'cURL Timeout', '>=', '300', 'getCurlTimeout', 'seconds', '=', '0' ); - if ( function_exists( 'curl_version' ) ) { - self::renderRowSec( 'cURL Version', '>=', '7.18.1', 'getCurlVersion', '', '', null ); - self::renderRowSec( 'cURL SSL Version', '>=', array( - 'version_number' => 0x009080cf, - 'version' => 'OpenSSL/0.9.8l', - ), 'getCurlSSLVersion', '', '', null, '', 'curlssl' ); - } - ?> - - - - =', '5.0', 'getMySQLVersion' ); - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $plugin ) { - if ( $slug == 'mainwp-child/mainwp-child.php' || $slug == 'mainwp-child-reports/mainwp-child-reports.php' ) { - if ( $isBranding ) { - if ( $slug == 'mainwp-child/mainwp-child.php' ) { - $plugin['Name'] = esc_html( stripslashes( $branding_title ) ); - } elseif ( $slug == 'mainwp-child-reports/mainwp-child-reports.php' ) { - $plugin['Name'] = esc_html( stripslashes( $branding_title ) ) . ' reports'; - } - } - } - - ?> - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =', '3.4', 'getWordpressVersion' ); ?> + =', '64M', 'getWordpressMemoryLimit' ); ?> + + + + + + + + + + + + =', '5.6', 'getPHPVersion' ); ?> + + + + + self::renderRowSec( 'PHP Max Execution Time', '>=', '30', 'getMaxExecutionTime', 'seconds', '=', '0' ); + self::renderRowSec( 'PHP Max Input Time', '>=', '30', 'getMaxInputTime', 'seconds', '=', '0' ); + self::renderRow( 'PHP Memory Limit', '>=', '128M', 'getPHPMemoryLimit', '(256M+ best for big backups)', null, null, true ); + self::renderRow( 'PCRE Backtracking Limit', '>=', '10000', 'getOutputBufferSize' ); + self::renderRow( 'PHP Upload Max Filesize', '>=', '2M', 'getUploadMaxFilesize', '(2MB+ best for upload of big plugins)', null, null, true ); + self::renderRow( 'PHP Post Max Size', '>=', '2M', 'getPostMaxSize', '(2MB+ best for upload of big plugins)', null, null, true ); + self::renderRow( 'SSL Extension Enabled', '=', true, 'getSSLSupport' ); + self::renderRowSec( 'SSL Warnings', '=', '', 'getSSLWarning', 'empty', '' ); + self::renderRowSec( 'cURL Extension Enabled', '=', true, 'getCurlSupport', '', '', null, '', null, self::ERROR ); + self::renderRowSec( 'cURL Timeout', '>=', '300', 'getCurlTimeout', 'seconds', '=', '0' ); + if ( function_exists( 'curl_version' ) ) { + self::renderRowSec( 'cURL Version', '>=', '7.18.1', 'getCurlVersion', '', '', null ); + self::renderRowSec( 'cURL SSL Version', '>=', array( + 'version_number' => 0x009080cf, + 'version' => 'OpenSSL/0.9.8l', + ), 'getCurlSSLVersion', '', '', null, '', 'curlssl' ); + } + ?> + + + + =', '5.0', 'getMySQLVersion' ); ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $plugin ) { + if ( 'mainwp-child/mainwp-child.php' == $slug || 'mainwp-child-reports/mainwp-child-reports.php' == $slug ) { + if ( $isBranding ) { + if ( 'mainwp-child/mainwp-child.php' == $slug ) { + $plugin['Name'] = esc_html( stripslashes( $branding_title ) ); + } elseif ( 'mainwp-child-reports/mainwp-child-reports.php' == $slug ) { + $plugin['Name'] = esc_html( stripslashes( $branding_title ) ) . ' reports'; + } + } + } + ?> + + + + + + + +
-
Version
  

@@ -879,7 +831,6 @@ class MainWP_Child_Server_Information { } public static function mainwpRequiredFunctions() { - // error_reporting(E_ALL); $disabled_functions = ini_get( 'disable_functions' ); if ( '' !== $disabled_functions ) { $arr = explode( ',', $disabled_functions ); @@ -907,11 +858,14 @@ class MainWP_Child_Server_Information { protected static function getMainwpVersion() { include_once ABSPATH . '/wp-admin/includes/plugin-install.php'; - $api = plugins_api( 'plugin_information', array( - 'slug' => 'mainwp-child', - 'fields' => array( 'sections' => false ), - 'timeout' => 60, - ) ); + $api = plugins_api( + 'plugin_information', + array( + 'slug' => 'mainwp-child', + 'fields' => array( 'sections' => false ), + 'timeout' => 60, + ) + ); if ( is_object( $api ) && isset( $api->version ) ) { return $api->version; } @@ -935,14 +889,11 @@ class MainWP_Child_Server_Information { ?> - - - - - + + + + + get_branding_title(); - if ( $branding_title == '' ) { + if ( '' == $branding_title ) { $branding_title = 'MainWP'; } @@ -989,6 +940,7 @@ class MainWP_Child_Server_Information { } $hasWPFileSystem = MainWP_Helper::getWPFilesystem(); + global $wp_filesystem; if ( $hasWPFileSystem && ! empty( $wp_filesystem ) ) { @@ -1020,8 +972,7 @@ class MainWP_Child_Server_Information { ?> - + @@ -1050,16 +1001,16 @@ class MainWP_Child_Server_Information { - - - + + + - + - + - + -  bit - Value; } if ( empty( $sql_mode ) ) { - $sql_mode = __( 'NOT SET' ); + $sql_mode = __( 'NOT SET', 'mainwp-child' ); } echo esc_html( $sql_mode ); } protected static function getPHPAllowUrlFopen() { if ( ini_get( 'allow_url_fopen' ) ) { - $allow_url_fopen = __( 'ON' ); + $allow_url_fopen = __( 'ON', 'mainwp-child' ); } else { - $allow_url_fopen = __( 'OFF' ); + $allow_url_fopen = __( 'OFF', 'mainwp-child' ); } echo esc_html( $allow_url_fopen ); } protected static function getPHPExif() { if ( is_callable( 'exif_read_data' ) ) { - $exif = __( 'YES' ) . ' ( V' . substr( phpversion( 'exif' ), 0, 4 ) . ')'; + $exif = __( 'YES', 'mainwp-child' ) . ' ( V' . substr( phpversion( 'exif' ), 0, 4 ) . ')'; } else { - $exif = __( 'NO' ); + $exif = __( 'NO', 'mainwp-child' ); } echo esc_html( $exif ); } protected static function getPHPIPTC() { if ( is_callable( 'iptcparse' ) ) { - $iptc = __( 'YES' ); + $iptc = __( 'YES', 'mainwp-child' ); } else { - $iptc = __( 'NO' ); + $iptc = __( 'NO', 'mainwp-child' ); } echo esc_html( $iptc ); } protected static function getPHPXML() { if ( is_callable( 'xml_parser_create' ) ) { - $xml = __( 'YES' ); + $xml = __( 'YES', 'mainwp-child' ); } else { - $xml = __( 'NO' ); + $xml = __( 'NO', 'mainwp-child' ); } echo esc_html( $xml ); } - // new - protected static function getCurrentlyExecutingScript() { echo esc_html( $_SERVER['PHP_SELF'] ); } protected static function getServerGetawayInterface() { - $gate = isset($_SERVER['GATEWAY_INTERFACE']) ? $_SERVER['GATEWAY_INTERFACE'] : ''; + $gate = isset( $_SERVER['GATEWAY_INTERFACE'] ) ? $_SERVER['GATEWAY_INTERFACE'] : ''; echo esc_html( $gate ); } @@ -1410,7 +1356,7 @@ class MainWP_Child_Server_Information { echo esc_html( ABSPATH ); } - function formatSizeUnits( $bytes ) { + public function formatSizeUnits( $bytes ) { if ( $bytes >= 1073741824 ) { $bytes = number_format( $bytes / 1073741824, 2 ) . ' GB'; } elseif ( $bytes >= 1048576 ) { @@ -1445,15 +1391,13 @@ class MainWP_Child_Server_Information { ?>
- - -

is_branding() ) ? '' : $pDirectory ); ?> -

is_branding() ) ? '' : $pDirectory ); ?>
Pass' : ' Warning' ); ?>
Pass' : self::getWarningHTML( $errorType ) ); ?> Pass' : self::getWarningHTML( $errorType ) ); ?> Pass'; ?> Pass' : self::getWarningHTML( $errorType ) ); ?> Pass' : self::getWarningHTML( $errorType ) ); ?>
- - - - + + + + - +
- -
strtotime( $b['time'] ) ) ? - 1 : 1; } - static function last_lines( $path, $line_count, $block_size = 512 ) { + public static function last_lines( $path, $line_count, $block_size = 512 ) { $lines = array(); - // we will always have a fragment of a non-complete line + // we will always have a fragment of a non-complete line. // keep this in here till we have our next entire line. $leftover = ''; $fh = fopen( $path, 'r' ); - // go to the end of the file + // go to the end of the file. fseek( $fh, 0, SEEK_END ); + $count_lines = count( $lines ); do { - // need to know whether we can actually go back - // $block_size bytes + // need to know whether we can actually go back. $can_read = $block_size; if ( ftell( $fh ) <= $block_size ) { @@ -1552,23 +1495,20 @@ class MainWP_Child_Server_Information { break; } - // go back as many bytes as we can - // read them to $data and then move the file pointer + // go back as many bytes as we can. + // read them to $data and then move the file pointer. // back to where we were. fseek( $fh, - $can_read, SEEK_CUR ); $data = fread( $fh, $can_read ); $data .= $leftover; fseek( $fh, - $can_read, SEEK_CUR ); - // split lines by \n. Then reverse them, - // now the last line is most likely not a complete - // line which is why we do not directly add it, but - // append it to the data read the next time. + // split lines by \n. Then reverse them, now the last line is most likely not a complete line which is why we do not directly add it, but append it to the data read the next time. $split_data = array_reverse( explode( "\n", $data ) ); $new_lines = array_slice( $split_data, 0, - 1 ); $lines = array_merge( $lines, $new_lines ); $leftover = $split_data[ count( $split_data ) - 1 ]; - } while ( count( $lines ) < $line_count && 0 !== ftell( $fh ) ); + } while ( $count_lines < $line_count && 0 !== ftell( $fh ) ); if ( 0 === ftell( $fh ) ) { $lines[] = $leftover; @@ -1584,7 +1524,6 @@ class MainWP_Child_Server_Information { ?>

WP-Config.php

-

- -
- -
+
get_branding_title(); - if ( $branding_title == '' ) { + if ( '' == $branding_title ) { $branding_title = 'MainWP'; } global $current_user; - $uniqueId = get_option('mainwp_child_uniqueId'); + $uniqueId = get_option( 'mainwp_child_uniqueId' ); $details = array( 'siteurl' => array( - 'title' => __('Site URL', 'mainwp-child'), + 'title' => __( 'Site URL', 'mainwp-child' ), 'value' => get_bloginfo( 'url' ), 'desc' => get_bloginfo( 'url' ), ), 'adminuser' => array( - 'title' => __('Administrator name', 'mainwp-child'), + 'title' => __( 'Administrator name', 'mainwp-child' ), 'value' => $current_user->user_login, - 'desc' => __('This is your Administrator username, however, you can use any existing Administrator username.', 'mainwp-child'), + 'desc' => __( 'This is your Administrator username, however, you can use any existing Administrator username.', 'mainwp-child' ), ), 'friendly_name' => array( - 'title' => __('Friendly site name', 'mainwp-child'), + 'title' => __( 'Friendly site name', 'mainwp-child' ), 'value' => get_bloginfo( 'name' ), - 'desc' => __('For the friendly site name, you can use any name, this is just a suggestion.', 'mainwp-child'), + 'desc' => __( 'For the friendly site name, you can use any name, this is just a suggestion.', 'mainwp-child' ), ), 'uniqueid' => array( - 'title' => __('Child unique security id', 'mainwp-child'), - 'value' => ! empty($uniqueId) ? $uniqueId : __('Leave the field blank', 'mainwp-child'), - 'desc' => sprintf(__('Child unique security id is not required, however, since you have enabled it, you need to add it to your %s dashboard.', 'mainwp-child'), stripslashes( $branding_title ) ), + 'title' => __( 'Child unique security id', 'mainwp-child' ), + 'value' => ! empty( $uniqueId ) ? $uniqueId : __( 'Leave the field blank', 'mainwp-child' ), + 'desc' => sprintf( __( 'Child unique security id is not required, however, since you have enabled it, you need to add it to your %s dashboard.', 'mainwp-child' ), stripslashes( $branding_title ) ), ), 'verify_ssl' => array( - 'title' => __('Verify certificate', 'mainwp-child'), - 'value' => __('Yes', 'mainwp-child'), - 'desc' => __('If there is an issue with SSL certificate on this site, try to set this option to No.', 'mainwp-child'), + 'title' => __( 'Verify certificate', 'mainwp-child' ), + 'value' => __( 'Yes', 'mainwp-child' ), + 'desc' => __( 'If there is an issue with SSL certificate on this site, try to set this option to No.', 'mainwp-child' ), ), 'ssl_version' => array( - 'title' => __('SSL version', 'mainwp-child'), - 'value' => __('Auto Detect', 'mainwp-child'), - 'desc' => __('Auto Detect', 'mainwp-child'), + 'title' => __( 'SSL version', 'mainwp-child' ), + 'value' => __( 'Auto Detect', 'mainwp-child' ), + 'desc' => __( 'Auto Detect', 'mainwp-child' ), ), ); @@ -1671,26 +1605,24 @@ class MainWP_Child_Server_Information {

-
+
+ +
+ + + + + + + + - -
- - - - - - - - - -
+ +