Plugin Directory

Changeset 3468084


Ignore:
Timestamp:
02/23/2026 11:03:08 PM (5 weeks ago)
Author:
seraphinitesoft
Message:

seraphinite-accelerator: 2.28.15.

Location:
seraphinite-accelerator
Files:
143 added
13 edited

Legend:

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

    r3466082 r3468084  
    36553655            $args[ 'provider' ] = 'CURL';
    36563656        if( !isset( $args[ 'user-agent' ] ) )
    3657             $args[ 'user-agent' ] = 'seraph-accel-Agent/2.28.14';
     3657            $args[ 'user-agent' ] = 'seraph-accel-Agent/2.28.15';
    36583658        if( !isset( $args[ 'timeout' ] ) )
    36593659            $args[ 'timeout' ] = 5;
  • seraphinite-accelerator/trunk/Cmn/Plugin.php

    r3466082 r3468084  
    307307            $args[ 'id' ] = 'wordpress-accelerator';
    308308            $args[ 'name' ] = 'Accelerator';
    309             $args[ 'v' ] = '2.28.14';
     309            $args[ 'v' ] = '2.28.15';
    310310            $args[ 'pk' ] = 'Base';
    311311            $args[ 'cfg' ] = '';
     
    329329            $lastCheckPackage = 'Base';
    330330
    331         if( $lastCheckVer !== '2.28.14' || $lastCheckPackage !== 'Base' )
     331        if( $lastCheckVer !== '2.28.15' || $lastCheckPackage !== 'Base' )
    332332        {
    333333            $state = Plugin::StateGet();
    334334
    335             if( $lastCheckVer !== '2.28.14' && !isset( $state[ 'changeVerCheck' ] ) )
     335            if( $lastCheckVer !== '2.28.15' && !isset( $state[ 'changeVerCheck' ] ) )
    336336            {
    337337                $state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : '';
     
    350350        if( !$bForce )
    351351        {
    352             if( $bFirstTimeOnly && $lastCheckVer == '2.28.14' )
     352            if( $bFirstTimeOnly && $lastCheckVer == '2.28.15' )
    353353                return( Gen::S_FALSE );
    354354
     
    369369            $args[ 'id' ] = 'wordpress-accelerator';
    370370            $args[ 'name' ] = 'Accelerator';
    371             $args[ 'v' ] = '2.28.14';
     371            $args[ 'v' ] = '2.28.15';
    372372            $args[ 'pk' ] = 'Base';
    373373            $args[ 'cfg' ] = '';
     
    386386            {
    387387                $data[ 'updTime' ] = $curUpdTime;
    388                 $data[ 'plgVer' ] = '2.28.14';
     388                $data[ 'plgVer' ] = '2.28.15';
    389389                $data[ 'plgPk' ] = 'Base';
    390390
     
    403403        $data[ 'mdfTime' ] = $timeMdf;
    404404        $data[ 'updTime' ] = $curUpdTime;
    405         $data[ 'plgVer' ] = '2.28.14';
     405        $data[ 'plgVer' ] = '2.28.15';
    406406        $data[ 'plgPk' ] = 'Base';
    407407
     
    14601460
    14611461        $urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' );
    1462         $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.28.14' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
     1462        $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.28.15' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
    14631463        $urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' );
    14641464        $urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' );
    1465         $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.28.14' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
     1465        $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.28.15' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
    14661466
    14671467        $urlEula = null;
     
    14721472
    14731473        {
    1474             $version = esc_html( '2.28.14' );
     1474            $version = esc_html( '2.28.15' );
    14751475
    14761476            $res .= Ui::TagOpen( 'div' );
     
    15211521        $rmtCfg = PluginRmtCfg::Get();
    15221522
    1523         $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.28.14' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
     1523        $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.28.15' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
    15241524        $urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' );
    15251525        $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' );
     
    20502050
    20512051            $verFrom = self::_PrevVer_GetInt( $plgVerPrev );
    2052             $verTo = self::_PrevVer_GetInt( '2.28.14' );
     2052            $verTo = self::_PrevVer_GetInt( '2.28.15' );
    20532053            if( $verTo < $verFrom )
    20542054                list( $verTo, $verFrom ) = array( $verFrom, $verTo );
     
    21752175                continue;
    21762176
    2177             wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.28.14' );
     2177            wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.28.15' );
    21782178
    21792179            self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true;
     
    22422242            $scrHndId = Plugin::CmnScriptId( $id );
    22432243
    2244             wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.28.14' );
     2244            wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.28.15' );
    22452245            if( $id == 'Gen' )
    22462246                Plugin::Loc_ScriptLoad( $scrHndId );
     
    26872687                            var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>";
    26882688                            sendDataUrl = sendDataUrl.replace( "{EndPointId}",                  encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) );
    2689                             sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.28.14" ) );
     2689                            sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.28.15" ) );
    26902690                            sendDataUrl = sendDataUrl.replace( "{PluginMode}",                  encodeURI( "base" ) );
    26912691                            sendDataUrl = sendDataUrl.replace( "{PluginPackage}",               encodeURI( "Base" ) );
  • seraphinite-accelerator/trunk/cache.php

    r3466082 r3468084  
    677677
    678678    if( $bHdr )
    679         @header( 'X-Seraph-Accel-Cache: 2.28.14;' . $debugInfo );
     679        @header( 'X-Seraph-Accel-Cache: 2.28.15;' . $debugInfo );
    680680
    681681    if( $bLog )
     
    15841584    {
    15851585        $_SERVER[ 'SERAPH_ACCEL_ORIG_USER_AGENT' ] = ($_SERVER[ 'HTTP_USER_AGENT' ]??'');
    1586         $_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.28.14';
     1586        $_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.28.15';
    15871587    }
    15881588
  • seraphinite-accelerator/trunk/common.php

    r3466082 r3468084  
    41704170function GetViewTypeUserAgent( $viewsDeviceGrp )
    41714171{
    4172     return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.28.14 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
     4172    return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.28.15 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
    41734173}
    41744174
     
    54745474    $args = array( 'sslverify' => false, 'timeout' => $timeout, 'headers' => array() );
    54755475    if( $userAgentCmn )
    5476         $args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.28.14';
     5476        $args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.28.15';
    54775477
    54785478    global $seraph_accel_g_aGetExtContentsFailedSrvs;
     
    59825982    {
    59835983        if( !isset( $headers[ 'User-Agent' ] ) )
    5984             $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.28.14');
     5984            $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.28.15');
    59855985        $headers[ 'User-Agent' ] = str_replace( 'seraph-accel-Agent/', 'seraph-accel-Agent-WarmUp/', $headers[ 'User-Agent' ] );
    59865986
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator-admin.pot

    r3466082 r3468084  
    77msgid ""
    88msgstr ""
    9 "#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.28.14)  #-#-#-#-#\n"
    10 "Project-Id-Version: seraphinite-accelerator 2.28.14\n"
     9"#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.28.15)  #-#-#-#-#\n"
     10"Project-Id-Version: seraphinite-accelerator 2.28.15\n"
    1111"Report-Msgid-Bugs-To: support@s-sols.com\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.28.14)  #-#-#-#-#\n"
    16 "Project-Id-Version: seraphinite-accelerator 2.28.14\n"
     15"#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.28.15)  #-#-#-#-#\n"
     16"Project-Id-Version: seraphinite-accelerator 2.28.15\n"
    1717"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1818"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator.pot

    r3466082 r3468084  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: seraphinite-accelerator 2.28.14\n"
     9"Project-Id-Version: seraphinite-accelerator 2.28.15\n"
    1010"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1111"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/main.php

    r3466082 r3468084  
    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.28.14', __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.28.15', __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' );
     
    12861286{
    12871287    Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
    1288     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.28.14' );
     1288    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.28.15' );
    12891289    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    12901290    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
     
    15281528    $rmtCfg = PluginRmtCfg::Get();
    15291529
    1530     $urlLogoImg = add_query_arg( array( 'v' => '2.28.14' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
     1530    $urlLogoImg = add_query_arg( array( 'v' => '2.28.15' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
    15311531    $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' );
    15321532
     
    23082308function OnAdminApi_GetData( $args )
    23092309{
     2310    $res = array();
     2311
     2312    if( !current_user_can( 'manage_options' ) )
     2313        return( $res );
    23102314
    23112315    $siteId = !($args[ 'allSites' ]??null) ? GetSiteId() : null;
    2312 
    2313     $res = array();
    23142316
    23152317    if( $siteId )
     
    24792481function OnAdminApi_LogClear( $args )
    24802482{
     2483    if( !current_user_can( 'manage_options' ) )
     2484        return;
     2485
    24812486    Gen::LogClear( GetCacheDir() . LogGetRelativeFile(), true );
    24822487}
  • seraphinite-accelerator/trunk/oper.php

    r3466082 r3468084  
    12161216    foreach( $viewId === null ? array( 'cmn' ) : $viewId as $viewIdI )
    12171217        if( CacheOpViewsHeadersGetViewId( $viewIdI ) == 'cmn' )
    1218             $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.28.14' );
     1218            $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.28.15' );
    12191219
    12201220    if( ($settCache[ 'views' ]??null) )
  • seraphinite-accelerator/trunk/options.php

    r3466082 r3468084  
    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.28.14' );
     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.28.15' );
    145145    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    146146    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
  • seraphinite-accelerator/trunk/plugin_root.php

    r3466082 r3468084  
    66Text Domain: seraphinite-accelerator
    77Domain Path: /languages
    8 Version: 2.28.14
     8Version: 2.28.15
    99Author: Seraphinite Solutions
    1010Author URI: https://www.s-sols.com
  • seraphinite-accelerator/trunk/readme.txt

    r3466082 r3468084  
    66Requires at least: 4.5
    77Tested up to: 6.9
    8 Stable tag: 2.28.14
     8Stable tag: 2.28.15
    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.28.15 =
     166
     167Fixes:
     168
     169* API functions 'LogClear' and 'GetData' can be called by users dont have 'manage_options' privilegy.
     170
    165171= 2.28.14 =
    166172
Note: See TracChangeset for help on using the changeset viewer.