Plugin Directory

Changeset 3338405


Ignore:
Timestamp:
08/03/2025 09:28:34 AM (7 months ago)
Author:
seraphinitesoft
Message:

seraphinite-accelerator: 2.27.39.

Location:
seraphinite-accelerator
Files:
143 added
13 edited

Legend:

Unmodified
Added
Removed
  • seraphinite-accelerator/trunk/Cmn/Gen.php

    r3336835 r3338405  
    108108    }
    109109
     110    static function NullIfEmpty( $v )
     111    {
     112        return( empty( $v ) ? null : $v );
     113    }
     114
    110115    static function NormArrFieldKey( $key )
    111116    {
     
    842847    static private function _FileOpen( $filename, $mode, $use_include_path = false )
    843848    {
     849
    844850        if( strpos( $mode, 'r' ) !== false && !@file_exists( $filename ) )
     851            return( false );
     852        if( strpos( $mode, 'x' ) !== false && @file_exists( $filename ) )
    845853            return( false );
    846854
     
    36173625            $args[ 'provider' ] = 'CURL';
    36183626        if( !isset( $args[ 'user-agent' ] ) )
    3619             $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.38';
     3627            $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.39';
    36203628        if( !isset( $args[ 'timeout' ] ) )
    36213629            $args[ 'timeout' ] = 5;
  • seraphinite-accelerator/trunk/Cmn/Plugin.php

    r3336835 r3338405  
    307307            $args[ 'id' ] = 'wordpress-accelerator';
    308308            $args[ 'name' ] = 'Accelerator';
    309             $args[ 'v' ] = '2.27.38';
     309            $args[ 'v' ] = '2.27.39';
    310310            $args[ 'pk' ] = 'Base';
    311311            $args[ 'cfg' ] = '';
     
    329329            $lastCheckPackage = 'Base';
    330330
    331         if( $lastCheckVer !== '2.27.38' || $lastCheckPackage !== 'Base' )
     331        if( $lastCheckVer !== '2.27.39' || $lastCheckPackage !== 'Base' )
    332332        {
    333333            $state = Plugin::StateGet();
    334334
    335             if( $lastCheckVer !== '2.27.38' && !isset( $state[ 'changeVerCheck' ] ) )
     335            if( $lastCheckVer !== '2.27.39' && !isset( $state[ 'changeVerCheck' ] ) )
    336336            {
    337337                $state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : '';
     
    350350        if( !$bForce )
    351351        {
    352             if( $bFirstTimeOnly && $lastCheckVer == '2.27.38' )
     352            if( $bFirstTimeOnly && $lastCheckVer == '2.27.39' )
    353353                return( Gen::S_FALSE );
    354354
     
    369369            $args[ 'id' ] = 'wordpress-accelerator';
    370370            $args[ 'name' ] = 'Accelerator';
    371             $args[ 'v' ] = '2.27.38';
     371            $args[ 'v' ] = '2.27.39';
    372372            $args[ 'pk' ] = 'Base';
    373373            $args[ 'cfg' ] = '';
     
    386386            {
    387387                $data[ 'updTime' ] = $curUpdTime;
    388                 $data[ 'plgVer' ] = '2.27.38';
     388                $data[ 'plgVer' ] = '2.27.39';
    389389                $data[ 'plgPk' ] = 'Base';
    390390
     
    403403        $data[ 'mdfTime' ] = $timeMdf;
    404404        $data[ 'updTime' ] = $curUpdTime;
    405         $data[ 'plgVer' ] = '2.27.38';
     405        $data[ 'plgVer' ] = '2.27.39';
    406406        $data[ 'plgPk' ] = 'Base';
    407407
     
    14491449
    14501450        $urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' );
    1451         $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.38' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
     1451        $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.39' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
    14521452        $urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' );
    14531453        $urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' );
    1454         $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.38' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
     1454        $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.39' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
    14551455
    14561456        $urlEula = null;
     
    14611461
    14621462        {
    1463             $version = esc_html( '2.27.38' );
     1463            $version = esc_html( '2.27.39' );
    14641464
    14651465            $res .= Ui::TagOpen( 'div' );
     
    15101510        $rmtCfg = PluginRmtCfg::Get();
    15111511
    1512         $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.38' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
     1512        $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.39' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
    15131513        $urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' );
    15141514        $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' );
     
    20372037
    20382038            $verFrom = self::_PrevVer_GetInt( $plgVerPrev );
    2039             $verTo = self::_PrevVer_GetInt( '2.27.38' );
     2039            $verTo = self::_PrevVer_GetInt( '2.27.39' );
    20402040            if( $verTo < $verFrom )
    20412041                list( $verTo, $verFrom ) = array( $verFrom, $verTo );
     
    21622162                continue;
    21632163
    2164             wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.38' );
     2164            wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.39' );
    21652165
    21662166            self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true;
     
    22292229            $scrHndId = Plugin::CmnScriptId( $id );
    22302230
    2231             wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.38' );
     2231            wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.39' );
    22322232            if( $id == 'Gen' )
    22332233                Plugin::Loc_ScriptLoad( $scrHndId );
     
    26742674                            var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>";
    26752675                            sendDataUrl = sendDataUrl.replace( "{EndPointId}",                  encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) );
    2676                             sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.38" ) );
     2676                            sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.39" ) );
    26772677                            sendDataUrl = sendDataUrl.replace( "{PluginMode}",                  encodeURI( "base" ) );
    26782678                            sendDataUrl = sendDataUrl.replace( "{PluginPackage}",               encodeURI( "Base" ) );
  • seraphinite-accelerator/trunk/cache.php

    r3336835 r3338405  
    391391        $sessExpiration = $tmCur;
    392392
    393     $httpCacheControl = strtolower( ($_SERVER[ 'HTTP_CACHE_CONTROL' ]??null) );
     393    $httpCacheControl = strtolower( ($_SERVER[ 'HTTP_CACHE_CONTROL' ]??'') );
    394394
    395395    if( $timeoutCln && $timeout > $timeoutCln )
     
    400400    $isCip = null;
    401401
    402     $dscFileTm = @filemtime( $seraph_accel_g_dscFile );
     402    $dscFileTm = Gen::FileMTime( $seraph_accel_g_dscFile );
    403403    $dscFileTmAge = $tmCur - $dscFileTm;
    404404
     
    409409            return( Gen::E_FAIL );
    410410
    411         $dscFileTm = @filemtime( $seraph_accel_g_dscFile );
     411        $dscFileTm = Gen::FileMTime( $seraph_accel_g_dscFile );
    412412
    413413        if( $dscFileTm === false )
     
    641641
    642642    if( $bHdr )
    643         @header( 'X-Seraph-Accel-Cache: 2.27.38;' . $debugInfo );
     643        @header( 'X-Seraph-Accel-Cache: 2.27.39;' . $debugInfo );
    644644
    645645    if( $bLog )
     
    670670        if( $tmLm < 60 )
    671671        {
    672             $tmLm = @filemtime( $seraph_accel_g_dscFilePending );
     672            $tmLm = Gen::FileMTime( $seraph_accel_g_dscFilePending );
    673673            if( $tmLm === false )
    674674                $tmLm = $tmCur;
     
    715715        $encoding = '';
    716716
    717         $acceptEncodings = array_map( 'trim', explode( ',', strtolower( ($_SERVER[ 'HTTP_ACCEPT_ENCODING' ]??null) ) ) );
     717        $acceptEncodings = array_map( 'trim', explode( ',', strtolower( ($_SERVER[ 'HTTP_ACCEPT_ENCODING' ]??'') ) ) );
    718718        {
    719719            $acceptEncodingsRaw = $acceptEncodings;
     
    13531353            return( false );
    13541354
    1355         $dscFilePendingTm = @filemtime( $seraph_accel_g_dscFilePending );
     1355        $dscFilePendingTm = Gen::FileMTime( $seraph_accel_g_dscFilePending );
    13561356        if( $dscFilePendingTm !== false && ( $tmCur - $dscFilePendingTm < $procTmLim ) )
    13571357            return( false );
     
    14061406        if( $dsc = CacheReadDsc( $seraph_accel_g_dscFile ) )
    14071407        {
    1408             $dscFileTm = @filemtime( $seraph_accel_g_dscFile );
     1408            $dscFileTm = Gen::FileMTime( $seraph_accel_g_dscFile );
    14091409            _ProcessOutCachedData( $seraph_accel_g_simpCacheMode === null, null, $settGlob, $sett, $settCache, $dsc, $dscFileTm, $dscFileTm, 'revalidated', 'notChanged', false, $content );
    14101410        }
     
    14931493            if( $dsc = CacheReadDsc( $seraph_accel_g_dscFile ) )
    14941494            {
    1495                 $dscFileTm = @filemtime( $seraph_accel_g_dscFile );
     1495                $dscFileTm = Gen::FileMTime( $seraph_accel_g_dscFile );
    14961496                _ProcessOutCachedData( $seraph_accel_g_simpCacheMode === null, null, $settGlob, $sett, $settCache, $dsc, $dscFileTm, $dscFileTm, 'revalidated', 'notChanged', false, $content );
    14971497            }
     
    15331533
    15341534    $content = '';
    1535     $dscFileTm = @filemtime( $seraph_accel_g_dscFile );
     1535    $dscFileTm = Gen::FileMTime( $seraph_accel_g_dscFile );
    15361536    _ProcessOutCachedData( $seraph_accel_g_simpCacheMode === null, null, $settGlob, $sett, $settCache, $dsc, $dscFileTm, $dscFileTm, 'revalidated', null, false, $content );
    15371537    return( $content );
     
    15471547    {
    15481548        $_SERVER[ 'SERAPH_ACCEL_ORIG_USER_AGENT' ] = ($_SERVER[ 'HTTP_USER_AGENT' ]??'');
    1549         $_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.38';
     1549        $_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.39';
    15501550    }
    15511551
  • seraphinite-accelerator/trunk/common.php

    r3336835 r3338405  
    40424042function GetViewTypeUserAgent( $viewsDeviceGrp )
    40434043{
    4044     return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.38 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
     4044    return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.39 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
    40454045}
    40464046
     
    53465346    $args = array( 'sslverify' => false, 'timeout' => $timeout );
    53475347    if( $userAgentCmn )
    5348         $args[ 'user-agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.38';
     5348        $args[ 'user-agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.39';
    53495349
    53505350    global $seraph_accel_g_aGetExtContentsFailedSrvs;
     
    57965796    {
    57975797        if( !isset( $headers[ 'User-Agent' ] ) )
    5798             $headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.38');
     5798            $headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.39');
    57995799        $headers[ 'User-Agent' ] = str_replace( 'seraph-accel-Agent/', 'seraph-accel-Agent-WarmUp/', $headers[ 'User-Agent' ] );
    58005800
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator-admin.pot

    r3336835 r3338405  
    77msgid ""
    88msgstr ""
    9 "#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.38)  #-#-#-#-#\n"
    10 "Project-Id-Version: seraphinite-accelerator 2.27.38\n"
     9"#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.39)  #-#-#-#-#\n"
     10"Project-Id-Version: seraphinite-accelerator 2.27.39\n"
    1111"Report-Msgid-Bugs-To: [email protected]\n"
    1212"MIME-Version: 1.0\n"
    1313"Content-Type: text/plain; charset=UTF-8\n"
    1414"Content-Transfer-Encoding: 8bit\n"
    15 "#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.27.38)  #-#-#-#-#\n"
    16 "Project-Id-Version: seraphinite-accelerator 2.27.38\n"
     15"#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.27.39)  #-#-#-#-#\n"
     16"Project-Id-Version: seraphinite-accelerator 2.27.39\n"
    1717"Report-Msgid-Bugs-To: [email protected]\n"
    1818"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator.pot

    r3336835 r3338405  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: seraphinite-accelerator 2.27.38\n"
     9"Project-Id-Version: seraphinite-accelerator 2.27.39\n"
    1010"Report-Msgid-Bugs-To: [email protected]\n"
    1111"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/main.php

    r3336835 r3338405  
    4242function _AddMenus( $accepted = false )
    4343{
    44     add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',                                                                      $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.27.38', __FILE__ ) );
     44    add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',                                                                      $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.27.39', __FILE__ ) );
    4545    add_submenu_page( 'seraph_accel_manage', esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), 'manage_options', 'seraph_accel_manage',   $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent' );
    4646    add_submenu_page( 'seraph_accel_manage', Wp::GetLocString( 'Settings' ), Wp::GetLocString( 'Settings' ), 'manage_options', 'seraph_accel_settings',                                     $accepted ? 'seraph_accel\\_SettingsPage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent' );
     
    12821282{
    12831283    Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
    1284     wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.38' );
     1284    wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.39' );
    12851285    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    12861286    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
     
    15181518    $rmtCfg = PluginRmtCfg::Get();
    15191519
    1520     $urlLogoImg = add_query_arg( array( 'v' => '2.27.38' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
     1520    $urlLogoImg = add_query_arg( array( 'v' => '2.27.39' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
    15211521    $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' );
    15221522
  • seraphinite-accelerator/trunk/oper.php

    r3336835 r3338405  
    12081208    foreach( $viewId === null ? array( 'cmn' ) : $viewId as $viewIdI )
    12091209        if( CacheOpViewsHeadersGetViewId( $viewIdI ) == 'cmn' )
    1210             $res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.38' );
     1210            $res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.39' );
    12111211
    12121212    if( ($settCache[ 'views' ]??null) )
  • seraphinite-accelerator/trunk/options.php

    r3336835 r3338405  
    142142
    143143    Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
    144     wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.38' );
     144    wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.39' );
    145145    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    146146    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
  • seraphinite-accelerator/trunk/plugin_root.php

    r3336835 r3338405  
    66Text Domain: seraphinite-accelerator
    77Domain Path: /languages
    8 Version: 2.27.38
     8Version: 2.27.39
    99Author: Seraphinite Solutions
    1010Author URI: https://www.s-sols.com
  • seraphinite-accelerator/trunk/readme.txt

    r3336835 r3338405  
    66Requires at least: 4.5
    77Tested up to: 6.8
    8 Stable tag: 2.27.38
     8Stable tag: 2.27.39
    99License: GPLv2 or later (if another license is not provided)
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    163163== Changelog ==
    164164
     165= 2.27.39 =
     166
     167Improvements:
     168
     169* Product gallery images of WooCommerce.
     170
     171Fixes:
     172
     173* PHP warnings to access to non-existed cache files.
     174* Wrong parsing sizes like 1.2345e10px.
     175
    165176= 2.27.38 =
    166177
Note: See TracChangeset for help on using the changeset viewer.