Plugin Directory

Changeset 3095925

Timestamp:
06/01/2024 01:47:15 AM (2 months ago)
Author:
knutsp
Message:

5.3.3

  • Jun 1, 2024
  • Remove debug and console logging
  • Minor wording fixes
Location:
wf-cpanel-email-accounts
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • wf-cpanel-email-accounts/tags/5.3/assets/dashboardwidget.js

    r3095910 r3095925  
    55function wfGetData() {
    66    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 );
    97    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 );
    108    xmlHttp.send();
    119   
    1210    if ( xmlHttp.status >= 200 && xmlHttp.status < 300 ) {
    13 //      console.log( xmlHttp.responseText );
    1411        var cos = JSON.parse( xmlHttp.getResponseHeader( 'X-Threads_connected' ) );
    15         console.log( cos );
    1612        var jsondata = JSON.parse( xmlHttp.responseText );
    1713        var cpdata = jsondata.hasOwnProperty( 'result' ) ? jsondata.result.data : jsondata.data;
     
    1915        if ( cpdata.hasOwnProperty( 'errors' ) && cpdata.errors != null && cpdata.errors.lenght > 0 ) {
    2016            return '{ sts: 406 }';
    21         } else { //console.log ( cpdata );
     17        } else {
    2218            mu = cpdata.findIndex( obj => obj.name === 'Memory Used' );
    2319//          sw = cpdata.findIndex( obj => obj.name === 'Swap'        );
  • wf-cpanel-email-accounts/tags/5.3/assets/index.php

    r3095910 r3095925  
    33namespace WebFacing\cPanel;
    44global $wpdb;
    5 \error_log( $_SERVER['QUERY_STRING'] );
    65$wpabs  = \urldecode( \filter_input( \INPUT_GET, 'abs',   \FILTER_SANITIZE_SPECIAL_CHARS ) ?: $_SERVER['DOCUMENT_ROOT'] . '/' );
    76
     
    2625
    2726    \header( 'Content-Type: application/json' );
    28     \header( 'Expires: Sat, 21 Apr 2024 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=' );
    3029    \header( 'X-Threads_connected: ' . \json_encode( [ 'co' => $co, 'mc' => $mc, 'tc' => $tc ] ) );
    3130
    32     $secret   = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT  ) );
     31    $secret   = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT ) );
    3332    $token    =          \filter_input( \INPUT_GET, 'token',  \FILTER_SANITIZE_SPECIAL_CHARS );
    3433    $host     =          \filter_input( \INPUT_GET, 'host',   \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME );
  • wf-cpanel-email-accounts/tags/5.3/includes/SiteHealth.php

    r3095910 r3095925  
    405405                    ( self::is_bool( \DISALLOW_FILE_MODS ) ?
    406406                        ( \DISALLOW_FILE_MODS ?
    407                             _x(  'Enabled', 'Site Health Info' ) . ' ▮' :
    408                             _x( 'Disabled', 'Site Health Info' )
     407                            :
     408                            'Site Health Info' )
    409409                        ) :
    410410                        \DISALLOW_FILE_MODS . ( \DISALLOW_FILE_MODS ? ' ▮' : '' )
     
    816816                    ],
    817817                    '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 ),
    820821                        'private'  => false,
    821822                    ],
    822823                    '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 ) . '`',
    824825                        'value'    => _x( $mail_spf[0]?->state ?? '', 'Site Health Info' ) .
    825826                            ( \in_array( $mail_spf[0]?->state ?? '', [ 'MISSING', 'ERROR' ], true ) ?
     
    861862                    ],
    862863                    'maximum_emails'      => [
    863                         'label'    => _x( 'Maximum sending emails per hour', 'Site Health Info' ),
     864                        'label'    => _x( ' sending emails per hour', 'Site Health Info' ),
    864865                        'value'    => \sprintf(
    865866                            /* translators: 1: formatted number */
  • wf-cpanel-email-accounts/tags/5.3/index.php

    r3095910 r3095925  
    77 * 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.
    88 * Plugin URI:          https://webfacing.eu/
    9  * Version:             5.3.2
     9 * Version:             5.3.
    1010 * Author:              Knut Sparhell
    1111 * Author URI:          https://profiles.wordpress.org/knutsp/
  • wf-cpanel-email-accounts/tags/5.3/readme.txt

    r3095910 r3095925  
    2828=== Current features ===
    2929
    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)
    3131* WP Block for frontend access user's own Webmail
    3232* Bulk entry of forwarders and email accounts (as free trial only, very limited use)
     
    207207== Changelog ==
    208208
     209
     210
     211
     212
     213
     214
    209215= 5.3.2 =
    210216
  • wf-cpanel-email-accounts/trunk/assets/dashboardwidget.js

    r3095896 r3095925  
    55function wfGetData() {
    66    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 );
    97    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 );
    108    xmlHttp.send();
    119   
    1210    if ( xmlHttp.status >= 200 && xmlHttp.status < 300 ) {
    13 //      console.log( xmlHttp.responseText );
    1411        var cos = JSON.parse( xmlHttp.getResponseHeader( 'X-Threads_connected' ) );
    15         console.log( cos );
    1612        var jsondata = JSON.parse( xmlHttp.responseText );
    1713        var cpdata = jsondata.hasOwnProperty( 'result' ) ? jsondata.result.data : jsondata.data;
     
    1915        if ( cpdata.hasOwnProperty( 'errors' ) && cpdata.errors != null && cpdata.errors.lenght > 0 ) {
    2016            return '{ sts: 406 }';
    21         } else { //console.log ( cpdata );
     17        } else {
    2218            mu = cpdata.findIndex( obj => obj.name === 'Memory Used' );
    2319//          sw = cpdata.findIndex( obj => obj.name === 'Swap'        );
  • wf-cpanel-email-accounts/trunk/assets/index.php

    r3095896 r3095925  
    33namespace WebFacing\cPanel;
    44global $wpdb;
    5 \error_log( $_SERVER['QUERY_STRING'] );
    65$wpabs  = \urldecode( \filter_input( \INPUT_GET, 'abs',   \FILTER_SANITIZE_SPECIAL_CHARS ) ?: $_SERVER['DOCUMENT_ROOT'] . '/' );
    76
     
    2625
    2726    \header( 'Content-Type: application/json' );
    28     \header( 'Expires: Sat, 21 Apr 2024 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=' );
    3029    \header( 'X-Threads_connected: ' . \json_encode( [ 'co' => $co, 'mc' => $mc, 'tc' => $tc ] ) );
    3130
    32     $secret   = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT  ) );
     31    $secret   = \intval( \filter_input( \INPUT_GET, 'secret', \FILTER_SANITIZE_NUMBER_INT ) );
    3332    $token    =          \filter_input( \INPUT_GET, 'token',  \FILTER_SANITIZE_SPECIAL_CHARS );
    3433    $host     =          \filter_input( \INPUT_GET, 'host',   \FILTER_VALIDATE_DOMAIN, \FILTER_FLAG_HOSTNAME );
  • wf-cpanel-email-accounts/trunk/includes/SiteHealth.php

    r3095896 r3095925  
    405405                    ( self::is_bool( \DISALLOW_FILE_MODS ) ?
    406406                        ( \DISALLOW_FILE_MODS ?
    407                             _x(  'Enabled', 'Site Health Info' ) . ' ▮' :
    408                             _x( 'Disabled', 'Site Health Info' )
     407                            :
     408                            'Site Health Info' )
    409409                        ) :
    410410                        \DISALLOW_FILE_MODS . ( \DISALLOW_FILE_MODS ? ' ▮' : '' )
     
    816816                    ],
    817817                    '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 ),
    820821                        'private'  => false,
    821822                    ],
    822823                    '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 ) . '`',
    824825                        'value'    => _x( $mail_spf[0]?->state ?? '', 'Site Health Info' ) .
    825826                            ( \in_array( $mail_spf[0]?->state ?? '', [ 'MISSING', 'ERROR' ], true ) ?
     
    861862                    ],
    862863                    'maximum_emails'      => [
    863                         'label'    => _x( 'Maximum sending emails per hour', 'Site Health Info' ),
     864                        'label'    => _x( ' sending emails per hour', 'Site Health Info' ),
    864865                        'value'    => \sprintf(
    865866                            /* translators: 1: formatted number */
  • wf-cpanel-email-accounts/trunk/index.php

    r3095240 r3095925  
    77 * 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.
    88 * Plugin URI:          https://webfacing.eu/
    9  * Version:             5.3.2
     9 * Version:             5.3.
    1010 * Author:              Knut Sparhell
    1111 * Author URI:          https://profiles.wordpress.org/knutsp/
  • wf-cpanel-email-accounts/trunk/readme.txt

    r3095896 r3095925  
    2828=== Current features ===
    2929
    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)
    3131* WP Block for frontend access user's own Webmail
    3232* Bulk entry of forwarders and email accounts (as free trial only, very limited use)
     
    207207== Changelog ==
    208208
     209
     210
     211
     212
     213
     214
    209215= 5.3.2 =
    210216
Note: See TracChangeset for help on using the changeset viewer.