Changeset 3095925
- Timestamp:
- 06/01/2024 01:47:15 AM (2 months ago)
- Location:
- wf-cpanel-email-accounts
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
wf-cpanel-email-accounts/tags/5.3/assets/dashboardwidget.js
r3095910 r3095925 5 5 function wfGetData() { 6 6 var xmlHttp = new XMLHttpRequest; 7 console.log( wFcPanelSettings.abs );8 // xmlHttp.open( "GET", encodeURI( wFcPanelSettings.dataURI + '?secret=' + wFcPanelSettings.secret + '&token=' + wFcPanelSettings.token + '&host=' + wFcPanelSettings.host + '&abs=' + wFcPanelSettings.abs + '&inc=' + wFcPanelSettings.inc ), false );9 7 xmlHttp.open( "GET", encodeURI( wFcPanelSettings.dataURI + '?secret=' + wFcPanelSettings.secret + '&token=' + wFcPanelSettings.token + '&host=' + wFcPanelSettings.host + ( wFcPanelSettings.abs == null || wFcPanelSettings.abs.trim().length === 0 ? '' : '&abs=' + wFcPanelSettings.abs ) ), false ); 10 8 xmlHttp.send(); 11 9 12 10 if ( xmlHttp.status >= 200 && xmlHttp.status < 300 ) { 13 // console.log( xmlHttp.responseText );14 11 var cos = JSON.parse( xmlHttp.getResponseHeader( 'X-Threads_connected' ) ); 15 console.log( cos );16 12 var jsondata = JSON.parse( xmlHttp.responseText ); 17 13 var cpdata = jsondata.hasOwnProperty( 'result' ) ? jsondata.result.data : jsondata.data; … … 19 15 if ( cpdata.hasOwnProperty( 'errors' ) && cpdata.errors != null && cpdata.errors.lenght > 0 ) { 20 16 return '{ sts: 406 }'; 21 } else { //console.log ( cpdata );17 } else { 22 18 mu = cpdata.findIndex( obj => obj.name === 'Memory Used' ); 23 19 // sw = cpdata.findIndex( obj => obj.name === 'Swap' ); -
wf-cpanel-email-accounts/tags/5.3/assets/index.php
r3095910 r3095925 3 3 namespace WebFacing\cPanel; 4 4 global $wpdb; 5 \error_log( $_SERVER['QUERY_STRING'] );6 5 $wpabs = \urldecode( \filter_input( \INPUT_GET, 'abs', \FILTER_SANITIZE_SPECIAL_CHARS ) ?: $_SERVER['DOCUMENT_ROOT'] . '/' ); 7 6 … … 26 25 27 26 \header( 'Content-Type: application/json' ); 28 \header( 'Expires: Sat, 21 Apr2024 12:34:56 GMT' );29 \header( 'Cache-Control: no-cache, must-revalidate, max-age= 0' );27 \header( 'Expires: Sat, 2024 12:34:56 GMT' ); 28 \header( 'Cache-Control: no-cache, must-revalidate, max-age=' ); 30 29 \header( 'X-Threads_connected: ' . \json_encode( [ 'co' => $co, 'mc' => $mc, 'tc' => $tc ] ) ); 31 30 32 $secret = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT 31 $secret = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT ) ); 33 32 $token = \filter_input( \INPUT_GET, 'token', \FILTER_SANITIZE_SPECIAL_CHARS ); 34 33 $host = \filter_input( \INPUT_GET, 'host', \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME ); -
wf-cpanel-email-accounts/tags/5.3/includes/SiteHealth.php
r3095910 r3095925 405 405 ( self::is_bool( \DISALLOW_FILE_MODS ) ? 406 406 ( \DISALLOW_FILE_MODS ? 407 _x( 'Enabled', 'Site Health Info' ) . ' ▮':408 _x( 'Disabled','Site Health Info' )407 : 408 'Site Health Info' ) 409 409 ) : 410 410 \DISALLOW_FILE_MODS . ( \DISALLOW_FILE_MODS ? ' ▮' : '' ) … … 816 816 ], 817 817 'mail_exchangers' => [ 818 'label' => _x( 'Mail Exchanger (MX)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 819 'value' => UAPI::mail_exchangers( self::$site_domain ), 818 'label' => _x( 'Email Exchangers (MX)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 819 'value' => '#1 ' . UAPI::mail_exchangers( self::$site_domain ), 820 'debug' => UAPI::mail_exchangers( self::$site_domain ), 820 821 'private' => false, 821 822 ], 822 823 'mail_spf' => [ 823 'label' => _x( ' Sender Policy Framework (SPF)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`',824 'label' => _x( 'Sender Policy Framework (SPF)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 824 825 'value' => _x( $mail_spf[0]?->state ?? '', 'Site Health Info' ) . 825 826 ( \in_array( $mail_spf[0]?->state ?? '', [ 'MISSING', 'ERROR' ], true ) ? … … 861 862 ], 862 863 'maximum_emails' => [ 863 'label' => _x( ' Maximumsending emails per hour', 'Site Health Info' ),864 'label' => _x( ' sending emails per hour', 'Site Health Info' ), 864 865 'value' => \sprintf( 865 866 /* translators: 1: formatted number */ -
wf-cpanel-email-accounts/tags/5.3/index.php
r3095910 r3095925 7 7 * Description: 🕸️ By WebFacing™. Lets you manage all email accounts, forwarders, autoresponders and also backup your hosting account. Let users manage their own email account, from admin or frontend, just by clicking a button. 8 8 * Plugin URI: https://webfacing.eu/ 9 * Version: 5.3. 29 * Version: 5.3. 10 10 * Author: Knut Sparhell 11 11 * Author URI: https://profiles.wordpress.org/knutsp/ -
wf-cpanel-email-accounts/tags/5.3/readme.txt
r3095910 r3095925 28 28 === Current features === 29 29 30 * **NEW **:Dashboard widget with three live graphic server memory usage and server load gauge charts (can eassily be minimized or hidden via Screen Options or programatically)30 * **NEW Dashboard widget with three live graphic server memory usage and server load gauge charts (can eassily be minimized or hidden via Screen Options or programatically) 31 31 * WP Block for frontend access user's own Webmail 32 32 * Bulk entry of forwarders and email accounts (as free trial only, very limited use) … … 207 207 == Changelog == 208 208 209 210 211 212 213 214 209 215 = 5.3.2 = 210 216 -
wf-cpanel-email-accounts/trunk/assets/dashboardwidget.js
r3095896 r3095925 5 5 function wfGetData() { 6 6 var xmlHttp = new XMLHttpRequest; 7 console.log( wFcPanelSettings.abs );8 // xmlHttp.open( "GET", encodeURI( wFcPanelSettings.dataURI + '?secret=' + wFcPanelSettings.secret + '&token=' + wFcPanelSettings.token + '&host=' + wFcPanelSettings.host + '&abs=' + wFcPanelSettings.abs + '&inc=' + wFcPanelSettings.inc ), false );9 7 xmlHttp.open( "GET", encodeURI( wFcPanelSettings.dataURI + '?secret=' + wFcPanelSettings.secret + '&token=' + wFcPanelSettings.token + '&host=' + wFcPanelSettings.host + ( wFcPanelSettings.abs == null || wFcPanelSettings.abs.trim().length === 0 ? '' : '&abs=' + wFcPanelSettings.abs ) ), false ); 10 8 xmlHttp.send(); 11 9 12 10 if ( xmlHttp.status >= 200 && xmlHttp.status < 300 ) { 13 // console.log( xmlHttp.responseText );14 11 var cos = JSON.parse( xmlHttp.getResponseHeader( 'X-Threads_connected' ) ); 15 console.log( cos );16 12 var jsondata = JSON.parse( xmlHttp.responseText ); 17 13 var cpdata = jsondata.hasOwnProperty( 'result' ) ? jsondata.result.data : jsondata.data; … … 19 15 if ( cpdata.hasOwnProperty( 'errors' ) && cpdata.errors != null && cpdata.errors.lenght > 0 ) { 20 16 return '{ sts: 406 }'; 21 } else { //console.log ( cpdata );17 } else { 22 18 mu = cpdata.findIndex( obj => obj.name === 'Memory Used' ); 23 19 // sw = cpdata.findIndex( obj => obj.name === 'Swap' ); -
wf-cpanel-email-accounts/trunk/assets/index.php
r3095896 r3095925 3 3 namespace WebFacing\cPanel; 4 4 global $wpdb; 5 \error_log( $_SERVER['QUERY_STRING'] );6 5 $wpabs = \urldecode( \filter_input( \INPUT_GET, 'abs', \FILTER_SANITIZE_SPECIAL_CHARS ) ?: $_SERVER['DOCUMENT_ROOT'] . '/' ); 7 6 … … 26 25 27 26 \header( 'Content-Type: application/json' ); 28 \header( 'Expires: Sat, 21 Apr2024 12:34:56 GMT' );29 \header( 'Cache-Control: no-cache, must-revalidate, max-age= 0' );27 \header( 'Expires: Sat, 2024 12:34:56 GMT' ); 28 \header( 'Cache-Control: no-cache, must-revalidate, max-age=' ); 30 29 \header( 'X-Threads_connected: ' . \json_encode( [ 'co' => $co, 'mc' => $mc, 'tc' => $tc ] ) ); 31 30 32 $secret = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT 31 $secret = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT ) ); 33 32 $token = \filter_input( \INPUT_GET, 'token', \FILTER_SANITIZE_SPECIAL_CHARS ); 34 33 $host = \filter_input( \INPUT_GET, 'host', \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME ); -
wf-cpanel-email-accounts/trunk/includes/SiteHealth.php
r3095896 r3095925 405 405 ( self::is_bool( \DISALLOW_FILE_MODS ) ? 406 406 ( \DISALLOW_FILE_MODS ? 407 _x( 'Enabled', 'Site Health Info' ) . ' ▮':408 _x( 'Disabled','Site Health Info' )407 : 408 'Site Health Info' ) 409 409 ) : 410 410 \DISALLOW_FILE_MODS . ( \DISALLOW_FILE_MODS ? ' ▮' : '' ) … … 816 816 ], 817 817 'mail_exchangers' => [ 818 'label' => _x( 'Mail Exchanger (MX)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 819 'value' => UAPI::mail_exchangers( self::$site_domain ), 818 'label' => _x( 'Email Exchangers (MX)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 819 'value' => '#1 ' . UAPI::mail_exchangers( self::$site_domain ), 820 'debug' => UAPI::mail_exchangers( self::$site_domain ), 820 821 'private' => false, 821 822 ], 822 823 'mail_spf' => [ 823 'label' => _x( ' Sender Policy Framework (SPF)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`',824 'label' => _x( 'Sender Policy Framework (SPF)', 'Site Health Info' ) . ' ' . __( 'for' ) .' `' . \idn_to_utf8( self::$site_domain ) . '`', 824 825 'value' => _x( $mail_spf[0]?->state ?? '', 'Site Health Info' ) . 825 826 ( \in_array( $mail_spf[0]?->state ?? '', [ 'MISSING', 'ERROR' ], true ) ? … … 861 862 ], 862 863 'maximum_emails' => [ 863 'label' => _x( ' Maximumsending emails per hour', 'Site Health Info' ),864 'label' => _x( ' sending emails per hour', 'Site Health Info' ), 864 865 'value' => \sprintf( 865 866 /* translators: 1: formatted number */ -
wf-cpanel-email-accounts/trunk/index.php
r3095240 r3095925 7 7 * Description: 🕸️ By WebFacing™. Lets you manage all email accounts, forwarders, autoresponders and also backup your hosting account. Let users manage their own email account, from admin or frontend, just by clicking a button. 8 8 * Plugin URI: https://webfacing.eu/ 9 * Version: 5.3. 29 * Version: 5.3. 10 10 * Author: Knut Sparhell 11 11 * Author URI: https://profiles.wordpress.org/knutsp/ -
wf-cpanel-email-accounts/trunk/readme.txt
r3095896 r3095925 28 28 === Current features === 29 29 30 * **NEW **:Dashboard widget with three live graphic server memory usage and server load gauge charts (can eassily be minimized or hidden via Screen Options or programatically)30 * **NEW Dashboard widget with three live graphic server memory usage and server load gauge charts (can eassily be minimized or hidden via Screen Options or programatically) 31 31 * WP Block for frontend access user's own Webmail 32 32 * Bulk entry of forwarders and email accounts (as free trial only, very limited use) … … 207 207 == Changelog == 208 208 209 210 211 212 213 214 209 215 = 5.3.2 = 210 216
Note: See TracChangeset
for help on using the changeset viewer.