Changeset 3489455
- Timestamp:
- 03/23/2026 10:11:02 PM (9 days ago)
- Location:
- seraphinite-accelerator
- Files:
-
- 144 added
- 16 edited
-
tags/2.28.18 (added)
-
tags/2.28.18/Admin.js (added)
-
tags/2.28.18/Cmn (added)
-
tags/2.28.18/Cmn/AdminUi.css (added)
-
tags/2.28.18/Cmn/AdminUi.js (added)
-
tags/2.28.18/Cmn/Cmn.js (added)
-
tags/2.28.18/Cmn/Db.php (added)
-
tags/2.28.18/Cmn/Ext (added)
-
tags/2.28.18/Cmn/Ext/JS (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/lazysizes.js (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/lazysizes.min.js (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/plugins (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/plugins/unveilhooks (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/plugins/unveilhooks/ls.unveilhooks.js (added)
-
tags/2.28.18/Cmn/Ext/JS/lazysizes/plugins/unveilhooks/ls.unveilhooks.min.js (added)
-
tags/2.28.18/Cmn/Ext/PHP (added)
-
tags/2.28.18/Cmn/Ext/PHP/JShrink (added)
-
tags/2.28.18/Cmn/Ext/PHP/JShrink/Minifier.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/Options.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/PHPSQLParser.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/exceptions (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/exceptions/InvalidParameterException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/exceptions/UnableToCalculatePositionException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/exceptions/UnableToCreateSQLException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/exceptions/UnsupportedFeatureException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/lexer (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/lexer/LexerSplitter.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/lexer/PHPSQLLexer.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/positions (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/positions/PositionCalculator.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/AbstractProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/BracketProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ColumnDefinitionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ColumnListProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/CreateDefinitionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/CreateProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DefaultProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DeleteProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DescProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DescribeProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DropProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/DuplicateProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ExplainProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ExpressionListProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/FromProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/GroupByProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/HavingProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/IndexColumnListProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/IndexProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/InsertProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/IntoProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/LimitProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/OptionsProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/OrderByProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/PartitionDefinitionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/PartitionOptionsProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/RecordProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ReferenceDefinitionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/RenameProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ReplaceProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SQLChunkProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SQLProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SelectExpressionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SelectProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SetProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ShowProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/SubpartitionDefinitionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/TableProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/UnionProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/UpdateProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/UsingProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/ValuesProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/WhereProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/processors/WithProcessor.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/utils (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/utils/ExpressionToken.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/utils/ExpressionType.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/PHPSQLParser/utils/PHPSQLParserConstants.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/YUI-CSS-compressor-PHP-port (added)
-
tags/2.28.18/Cmn/Ext/PHP/YUI-CSS-compressor-PHP-port/Colors.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/YUI-CSS-compressor-PHP-port/Command.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/YUI-CSS-compressor-PHP-port/Minifier.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/YUI-CSS-compressor-PHP-port/Utils.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/jsmin-php (added)
-
tags/2.28.18/Cmn/Ext/PHP/jsmin-php/JSMin.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/jsmin-php/UnterminatedCommentException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/jsmin-php/UnterminatedRegExpException.php (added)
-
tags/2.28.18/Cmn/Ext/PHP/jsmin-php/UnterminatedStringException.php (added)
-
tags/2.28.18/Cmn/Fs.php (added)
-
tags/2.28.18/Cmn/Gen.js (added)
-
tags/2.28.18/Cmn/Gen.php (added)
-
tags/2.28.18/Cmn/Img.php (added)
-
tags/2.28.18/Cmn/Net.js (added)
-
tags/2.28.18/Cmn/Plugin.php (added)
-
tags/2.28.18/Cmn/Ui.js (added)
-
tags/2.28.18/Cmn/Ui.php (added)
-
tags/2.28.18/Images (added)
-
tags/2.28.18/Images/ProductLogo.png (added)
-
tags/2.28.18/Images/Test.css (added)
-
tags/2.28.18/Images/Test.css.gz (added)
-
tags/2.28.18/Images/Test.js (added)
-
tags/2.28.18/Images/Test.js.gz (added)
-
tags/2.28.18/Images/Test.png (added)
-
tags/2.28.18/Images/Test.png.avif (added)
-
tags/2.28.18/Images/Test.png.webp (added)
-
tags/2.28.18/Images/VendorLogo.png (added)
-
tags/2.28.18/Images/hosting-icon-banner.svg (added)
-
tags/2.28.18/cache.php (added)
-
tags/2.28.18/cache_ex.php (added)
-
tags/2.28.18/cache_ext.php (added)
-
tags/2.28.18/cache_ext_CloudFlareHooksEx.php (added)
-
tags/2.28.18/cache_obj.php (added)
-
tags/2.28.18/common.php (added)
-
tags/2.28.18/content.php (added)
-
tags/2.28.18/content_css.php (added)
-
tags/2.28.18/content_css_ex.php (added)
-
tags/2.28.18/content_ex.php (added)
-
tags/2.28.18/content_frm.php (added)
-
tags/2.28.18/content_img.php (added)
-
tags/2.28.18/content_js.php (added)
-
tags/2.28.18/htmlparser.php (added)
-
tags/2.28.18/icon.png (added)
-
tags/2.28.18/languages (added)
-
tags/2.28.18/languages/seraphinite-accelerator-Admin-en_US.json (added)
-
tags/2.28.18/languages/seraphinite-accelerator-Admin-ru_RU.json (added)
-
tags/2.28.18/languages/seraphinite-accelerator-Gen-en_US.json (added)
-
tags/2.28.18/languages/seraphinite-accelerator-Gen-ru_RU.json (added)
-
tags/2.28.18/languages/seraphinite-accelerator-admin-en_US.mo (added)
-
tags/2.28.18/languages/seraphinite-accelerator-admin-ru_RU.mo (added)
-
tags/2.28.18/languages/seraphinite-accelerator-admin.pot (added)
-
tags/2.28.18/languages/seraphinite-accelerator-en_US.mo (added)
-
tags/2.28.18/languages/seraphinite-accelerator-ru_RU.mo (added)
-
tags/2.28.18/languages/seraphinite-accelerator.pot (added)
-
tags/2.28.18/main.php (added)
-
tags/2.28.18/oper.php (added)
-
tags/2.28.18/options.php (added)
-
tags/2.28.18/plugin_root.php (added)
-
tags/2.28.18/readme.txt (added)
-
tags/2.28.18/sql.php (added)
-
tags/2.28.18/third-party-software.html (added)
-
tags/2.28.18/tune.php (added)
-
trunk/Cmn/Gen.php (modified) (3 diffs)
-
trunk/Cmn/Plugin.php (modified) (18 diffs)
-
trunk/Cmn/Ui.php (modified) (1 diff)
-
trunk/cache_ex.php (modified) (2 diffs)
-
trunk/common.php (modified) (9 diffs)
-
trunk/languages/seraphinite-accelerator-admin-en_US.mo (modified) (previous)
-
trunk/languages/seraphinite-accelerator-admin-ru_RU.mo (modified) (previous)
-
trunk/languages/seraphinite-accelerator-admin.pot (modified) (3 diffs)
-
trunk/languages/seraphinite-accelerator-en_US.mo (modified) (previous)
-
trunk/languages/seraphinite-accelerator-ru_RU.mo (modified) (previous)
-
trunk/languages/seraphinite-accelerator.pot (modified) (1 diff)
-
trunk/main.php (modified) (5 diffs)
-
trunk/oper.php (modified) (2 diffs)
-
trunk/options.php (modified) (2 diffs)
-
trunk/plugin_root.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seraphinite-accelerator/trunk/Cmn/Gen.php
r3486643 r3489455 3893 3893 $args[ 'provider' ] = 'CURL'; 3894 3894 if( !isset( $args[ 'user-agent' ] ) ) 3895 $args[ 'user-agent' ] = 'seraph-accel-Agent/2.28.1 7';3895 $args[ 'user-agent' ] = 'seraph-accel-Agent/2.28.18'; 3896 3896 if( !isset( $args[ 'timeout' ] ) ) 3897 3897 $args[ 'timeout' ] = 5; … … 5542 5542 if( is_array( $id ) ) 5543 5543 { 5544 $ctx = $id[ 1 ];5544 $ctx = ($id[ 1 ]??null); 5545 5545 $id = $id[ 0 ]; 5546 } 5546 if( !is_array( $id ) ) 5547 $id = array( $id, $id ); 5548 } 5549 else 5550 $id = array( $id, $id ); 5547 5551 5548 5552 if( $number !== null ) 5549 return( $ctx ? _nx( $id , $id, $number, $ctx, $domain ) : _n( $id, $id, $number, $domain ) );5550 return( $ctx ? _x( $id , $ctx, $domain ) : __( $id, $domain ) );5553 return( $ctx ? _nx( $id[ 0 ], $id[ 1 ], $number, $ctx, $domain ) : _n( $id[ 0 ], $id[ 1 ], $number, $domain ) ); 5554 return( $ctx ? _x( $id[ 0 ], $ctx, $domain ) : __( $id[ 0 ], $domain ) ); 5551 5555 } 5552 5556 … … 7061 7065 return( Gen::S_OK ); 7062 7066 } 7067 7068 static function HumanTimeDiff( $from = 0, $to = 0, $signed = false ) 7069 { 7070 if( !$from ) 7071 $from = time(); 7072 7073 $diff = ( int )( $to - $from ); 7074 if( $diff < 0 ) 7075 $diff = -1 * $diff; 7076 else 7077 $signed = false; 7078 7079 $since = ''; 7080 7081 $secs = ( int )( ( $diff % MINUTE_IN_SECONDS ) / 1 ); 7082 { 7083 if( $signed ) 7084 $secs *= -1; 7085 $since = sprintf( Wp::GetLocString( array( array( '%s second', '%s seconds' ), null ), $secs ), $secs ); 7086 } 7087 7088 $mins = ( int )( ( $diff % HOUR_IN_SECONDS ) / MINUTE_IN_SECONDS ); 7089 if( $mins ) 7090 { 7091 if( $signed ) 7092 $mins *= -1; 7093 $since = sprintf( Wp::GetLocString( array( 'HumanTimeDiffDigitbefore_%1$s%2$s', 'admin.Common' ), null, 'seraphinite-accelerator' ), sprintf( Wp::GetLocString( array( array( '%s minute', '%s minutes' ) ), $mins ), $mins ), $since ); 7094 } 7095 7096 $hours = ( int )( ( $diff % DAY_IN_SECONDS ) / HOUR_IN_SECONDS ); 7097 if( $hours ) 7098 { 7099 if( $signed ) 7100 $hours *= -1; 7101 $since = sprintf( Wp::GetLocString( array( array( '%s hour', '%s hours' ) ), $hours ), $hours ) . ' ' . $since; 7102 } 7103 7104 $days = ( int )( $diff / DAY_IN_SECONDS ); 7105 if( $days ) 7106 { 7107 if( $signed ) 7108 $days *= -1; 7109 $since = sprintf( Wp::GetLocString( array( array( '%s day', '%s days' ) ), $days ), $days ) . ' ' . $since; 7110 } 7111 7112 return( $since ); 7113 } 7063 7114 } 7064 7115 -
seraphinite-accelerator/trunk/Cmn/Plugin.php
r3486643 r3489455 317 317 $args[ 'id' ] = 'wordpress-accelerator'; 318 318 $args[ 'name' ] = 'Accelerator'; 319 $args[ 'v' ] = '2.28.1 7';319 $args[ 'v' ] = '2.28.18'; 320 320 $args[ 'pk' ] = 'Base'; 321 321 $args[ 'cfg' ] = ''; … … 339 339 $lastCheckPackage = 'Base'; 340 340 341 if( $lastCheckVer !== '2.28.1 7' || $lastCheckPackage !== 'Base' )341 if( $lastCheckVer !== '2.28.18' || $lastCheckPackage !== 'Base' ) 342 342 { 343 343 $state = Plugin::StateGet(); 344 344 345 if( $lastCheckVer !== '2.28.1 7' && !isset( $state[ 'changeVerCheck' ] ) )345 if( $lastCheckVer !== '2.28.18' && !isset( $state[ 'changeVerCheck' ] ) ) 346 346 { 347 347 $state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : ''; … … 360 360 if( !$bForce ) 361 361 { 362 if( $bFirstTimeOnly && $lastCheckVer == '2.28.1 7' )362 if( $bFirstTimeOnly && $lastCheckVer == '2.28.18' ) 363 363 return( Gen::S_FALSE ); 364 364 … … 366 366 if( $lastUpdTime && ( $curUpdTime - $lastUpdTime ) <= 3600 ) 367 367 return( Gen::S_FALSE ); 368 369 if( self::$_sessTouched ) 370 return( Gen::S_FALSE );371 }368 } 369 370 if( self::$_sessTouched ) 371 return( Gen::S_FALSE ); 372 372 373 373 self::$_sessTouched = true; … … 379 379 $args[ 'id' ] = 'wordpress-accelerator'; 380 380 $args[ 'name' ] = 'Accelerator'; 381 $args[ 'v' ] = '2.28.1 7';381 $args[ 'v' ] = '2.28.18'; 382 382 $args[ 'pk' ] = 'Base'; 383 383 $args[ 'cfg' ] = ''; … … 396 396 { 397 397 $data[ 'updTime' ] = $curUpdTime; 398 $data[ 'plgVer' ] = '2.28.1 7';398 $data[ 'plgVer' ] = '2.28.18'; 399 399 $data[ 'plgPk' ] = 'Base'; 400 400 … … 407 407 } 408 408 409 $requestRes = Wp::RemoteGet( $urlRemoteCfg, array( 'timeout' => $bForce ? 30: 5, 'redirection' => 5 ) );409 $requestRes = Wp::RemoteGet( $urlRemoteCfg, array( 'timeout' => $bForce ? ( is_int( $bForce ) ? $bForce : 30 ) : 5, 'redirection' => 5 ) ); 410 410 411 411 $timeMdf = self::_Update_GetMdfTime( $requestRes ); … … 413 413 $data[ 'mdfTime' ] = $timeMdf; 414 414 $data[ 'updTime' ] = $curUpdTime; 415 $data[ 'plgVer' ] = '2.28.1 7';415 $data[ 'plgVer' ] = '2.28.18'; 416 416 $data[ 'plgPk' ] = 'Base'; 417 417 … … 431 431 } 432 432 433 static function Get( )434 { 435 436 PluginRmtCfg::Update( );433 static function Get( $bForce = false ) 434 { 435 436 PluginRmtCfg::Update( $bForce ); 437 437 $data = PluginOptions::Get( self::STG_VER, self::STG_ID, __CLASS__ . '::' ); 438 438 return( $data[ 'data' ] ); … … 1448 1448 esc_html_x( 'Start', 'admin.Common', 'seraphinite-accelerator' ); 1449 1449 1450 esc_html_x( 'HumanTimeDiffDigitbefore_%1$s%2$s', 'admin.Common', 'seraphinite-accelerator' ); 1451 1450 1452 esc_html_x( 'FuncBlocked_%1$s', 'admin.Common_Msg', 'seraphinite-accelerator' ); 1451 1453 esc_html_x( 'ExecErr_%1$s', 'admin.Common_Msg', 'seraphinite-accelerator' ); … … 1480 1482 1481 1483 $urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' ); 1482 $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.28.1 7' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;1484 $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.28.18' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null; 1483 1485 $urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' ); 1484 1486 $urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' ); 1485 $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.28.1 7' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;1487 $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.28.18' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null; 1486 1488 1487 1489 $urlEula = null; … … 1492 1494 1493 1495 { 1494 $version = esc_html( '2.28.1 7' );1496 $version = esc_html( '2.28.18' ); 1495 1497 1496 1498 $res .= Ui::TagOpen( 'div' ); … … 1541 1543 $rmtCfg = PluginRmtCfg::Get(); 1542 1544 1543 $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.28.1 7' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;1545 $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.28.18' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null; 1544 1546 $urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' ); 1545 1547 $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' ); … … 2070 2072 2071 2073 $verFrom = self::_PrevVer_GetInt( $plgVerPrev ); 2072 $verTo = self::_PrevVer_GetInt( '2.28.1 7' );2074 $verTo = self::_PrevVer_GetInt( '2.28.18' ); 2073 2075 if( $verTo < $verFrom ) 2074 2076 list( $verTo, $verFrom ) = array( $verFrom, $verTo ); … … 2195 2197 continue; 2196 2198 2197 wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.28.1 7' );2199 wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.28.18' ); 2198 2200 2199 2201 self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true; … … 2262 2264 $scrHndId = Plugin::CmnScriptId( $id ); 2263 2265 2264 wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.28.1 7' );2266 wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.28.18' ); 2265 2267 if( $id == 'Gen' ) 2266 2268 Plugin::Loc_ScriptLoad( $scrHndId ); … … 2462 2464 static function _on_check_plugins_updates( $locales ) 2463 2465 { 2464 $hrUpdated = PluginRmtCfg::Update( );2466 $hrUpdated = PluginRmtCfg::Update( 2 ); 2465 2467 2466 2468 return( $locales ); … … 2707 2709 var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>"; 2708 2710 sendDataUrl = sendDataUrl.replace( "{EndPointId}", encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) ); 2709 sendDataUrl = sendDataUrl.replace( "{PluginVersion}", encodeURI( "2.28.1 7" ) );2711 sendDataUrl = sendDataUrl.replace( "{PluginVersion}", encodeURI( "2.28.18" ) ); 2710 2712 sendDataUrl = sendDataUrl.replace( "{PluginMode}", encodeURI( "base" ) ); 2711 2713 sendDataUrl = sendDataUrl.replace( "{PluginPackage}", encodeURI( "Base" ) ); -
seraphinite-accelerator/trunk/Cmn/Ui.php
r3485735 r3489455 9 9 { 10 10 11 static function Link( $content, $href , $newWnd = false, $prms = null, $attrs = null )11 static function Link( $content, $href = null, $newWnd = false, $prms = null, $attrs = null ) 12 12 { 13 13 if( $attrs === null ) 14 14 $attrs = array(); 15 16 if( $href === null ) 17 $href = $content; 15 18 16 19 $showLink = !empty( $href ) || ($prms[ 'showIfNoHref' ]??null); -
seraphinite-accelerator/trunk/cache_ex.php
r3486643 r3489455 67 67 68 68 if( $bHdr ) 69 @header( 'X-Seraph-Accel-Cache: 2.28.1 7;' . $debugInfo );69 @header( 'X-Seraph-Accel-Cache: 2.28.18;' . $debugInfo ); 70 70 71 71 if( $bLog ) … … 996 996 { 997 997 $_SERVER[ 'SERAPH_ACCEL_ORIG_USER_AGENT' ] = ($_SERVER[ 'HTTP_USER_AGENT' ]??''); 998 $_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.17';998 $_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.18'; 999 999 } 1000 1000 -
seraphinite-accelerator/trunk/common.php
r3486643 r3489455 2648 2648 'debugInfo' => false, 2649 2649 'debug' => false, 2650 'emojiIcons' => false,2650 'emojiIcons' => true, 2651 2651 2652 2652 'log' => false, … … 4233 4233 function GetViewTypeUserAgent( $viewsDeviceGrp ) 4234 4234 { 4235 return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.28.17' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );4235 return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 Seraph-Accel-Agent/2.28.18 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) ); 4236 4236 } 4237 4237 … … 4512 4512 $itemType = ( int )($item[ 'tp' ]??0); 4513 4513 if( $itemType == 0 ) 4514 CachePostPreparePageEx( ($data[ 'm' ]??null), ($data[ 'u' ]??null), ($item[ 's' ]??null), isset( $data[ 'l' ] ) ? -480 : ( int )($data[ 'p' ]??null), ($data[ 'p' ]??null), ($data[ 'h' ]??null), $data[ 'to' ], isset( $data[ 'rdr' ] ) ? ( $data[ 'rdr' ] + 1 ) : null, ($data[ 'l' ]??null) );4514 CachePostPreparePageEx( ($data[ 'm' ]??null), ($data[ 'u' ]??null), ($item[ 's' ]??null), isset( $data[ 'l' ] ) ? -480 : ( int )($data[ 'p' ]??null), ($data[ 'p' ]??null), ($data[ 'h' ]??null), $data[ 'to' ], isset( $data[ 'rdr' ] ) ? ( $data[ 'rdr' ] + 1 ) : 0, ($data[ 'l' ]??null) ); 4515 4515 else 4516 4516 CachePostPrepareObjEx( $itemType, ($data[ 'u' ]??null), ($item[ 's' ]??null), ( int )($data[ 'p' ]??null), $data, ( int )($data[ 'p' ]??null), ( float )($item[ 't' ]??null) ); … … 4725 4725 $bClnDsc = true; 4726 4726 if( $urlRemoteAbort = Gen::GetArrField( $ctlRes, array( 'remote', 'urlAbort' ) ) ) 4727 Wp::RemotePost( $urlRemoteAbort, array( 'timeout' => 2, 'sslverify' => false ) );4727 Wp::RemotePost( $urlRemoteAbort, array( 'timeout' => 5, 'sslverify' => false ) ); 4728 4728 } 4729 4729 … … 5049 5049 5050 5050 } 5051 else if( Gen::StrStartsWith( $this -> skipStatus, 'engineRemote' ) && !( $this -> skipStatus == 'engineRemote MgrAccessDenied' || $this -> skipStatus == 'engineRemoteAccessDenied' || $this -> skipStatus == 'engineRemoteNoLicense' ) )5051 else if( Gen::StrStartsWith( $this -> skipStatus, 'engineRemote' ) && !( $this -> skipStatus == 'engineRemoteAccessDenied' || $this -> skipStatus == 'engineRemoteNoLicense' ) ) 5052 5052 { 5053 5053 if( ($this -> data[ 'rdr' ]??0) < 1000000 ) … … 5165 5165 { 5166 5166 5167 $fileIdx = OnAsyncTasksGetPushUrlFile( true );5168 if( isset( $_SERVER[ 'PHP_SELF' ] ) && ( $uriPath = Gen::GetArrField( Net::UrlParse( $url ), 'path' ) ) && $uriPath != '/' )5169 {5170 $uriPath = substr( $uriPath, strlen( Gen::GetFileDir( $_SERVER[ 'REQUEST_URI' ] ) ) );5171 if( @file_exists( Gen::GetFileDir( $_SERVER[ 'SCRIPT_FILENAME' ] ) . rawurldecode( $uriPath ) . '/' . $fileIdx ) )5172 $fileIdx = $uriPath . '/' . $fileIdx;5173 }5174 5175 5167 $tmStamp = microtime( true ); 5176 return( ProcessQueueItemCtx::MakeRequest( $asyncMode, 'GET', Net::UrlAddArgs( Plugin::AsyncTaskPushGetUrlEx( Wp::GetSiteWpRootUrl( $fileIdx ), 'O', $tmStamp ), array( 'nonce' => hash_hmac( 'md5', Plugin::AsyncTaskPushGetTimerun( $tmStamp ), GetSalt() ) ) ), array( ) ) );5168 return( ProcessQueueItemCtx::MakeRequest( $asyncMode, 'GET', Net::UrlAddArgs( Plugin::AsyncTaskPushGetUrlEx( $url, 'O', $tmStamp ), array( 'nonce' => hash_hmac( 'md5', Plugin::AsyncTaskPushGetTimerun( $tmStamp ), GetSalt() ) ) ), array( ) ) ); 5177 5169 } 5178 5170 … … 5471 5463 $dirQueue = GetCacheDir() . '/q/' . $siteId; 5472 5464 5473 if( $priority == 10 )5465 if( $priority == 10 && $retryIdx === null ) 5474 5466 { 5475 5467 $count = 0; … … 5748 5740 $args = array( 'sslverify' => false, 'timeout' => $timeout, 'headers' => array() ); 5749 5741 if( $userAgentCmn ) 5750 $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.17';5742 $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.18'; 5751 5743 5752 5744 if( $serverId = Net::UrlParse( $url ) ) … … 6264 6256 { 6265 6257 if( !isset( $headers[ 'User-Agent' ] ) ) 6266 $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.17');6258 $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.18'); 6267 6259 $headers[ 'User-Agent' ] = str_replace( 'seraph-accel-Agent/', 'seraph-accel-Agent-WarmUp/', $headers[ 'User-Agent' ] ); 6268 6260 -
seraphinite-accelerator/trunk/languages/seraphinite-accelerator-admin.pot
r3486643 r3489455 7 7 msgid "" 8 8 msgstr "" 9 "#-#-#-#-# cmn.admin.pot (seraphinite-accelerator 2.28.1 7) #-#-#-#-#\n"10 "Project-Id-Version: seraphinite-accelerator 2.28.1 7\n"9 "#-#-#-#-# cmn.admin.pot (seraphinite-accelerator 2.28.18) #-#-#-#-#\n" 10 "Project-Id-Version: seraphinite-accelerator 2.28.18\n" 11 11 "Report-Msgid-Bugs-To: support@s-sols.com\n" 12 12 "MIME-Version: 1.0\n" 13 13 "Content-Type: text/plain; charset=UTF-8\n" 14 14 "Content-Transfer-Encoding: 8bit\n" 15 "#-#-#-#-# main.admin.pot (seraphinite-accelerator 2.28.1 7) #-#-#-#-#\n"16 "Project-Id-Version: seraphinite-accelerator 2.28.1 7\n"15 "#-#-#-#-# main.admin.pot (seraphinite-accelerator 2.28.18) #-#-#-#-#\n" 16 "Project-Id-Version: seraphinite-accelerator 2.28.18\n" 17 17 "Report-Msgid-Bugs-To: support@s-sols.com\n" 18 18 "MIME-Version: 1.0\n" … … 203 203 msgstr "" 204 204 205 # %1$s %2$s 206 #, php-format 207 msgctxt "admin.Common" 208 msgid "HumanTimeDiffDigitbefore_%1$s%2$s" 209 msgstr "" 210 205 211 # Function '%1$s' is blocked 206 212 #, php-format … … 886 892 msgstr "" 887 893 894 # Ended unexpectedly 895 msgctxt "admin.Manage_Queue" 896 msgid "ErrTerminated" 897 msgstr "" 898 899 # Probably, there is not enough memory or was external termination 900 msgctxt "admin.Manage_Queue" 901 msgid "ErrTerminatedDsc" 902 msgstr "" 903 904 # Maximum execution time exceeded 905 msgctxt "admin.Manage_Queue" 906 msgid "ErrTimeout" 907 msgstr "" 908 909 # Probably, PHP execution time should be increased 910 msgctxt "admin.Manage_Queue" 911 msgid "ErrTimeoutDsc" 912 msgstr "" 913 914 # Maximum waiting time exceeded 915 msgctxt "admin.Manage_Queue" 916 msgid "WarnTimeout" 917 msgstr "" 918 919 # Probably, remote optimization is busy 920 msgctxt "admin.Manage_Queue" 921 msgid "WarnTimeoutDsc" 922 msgstr "" 923 924 # Stopped 925 msgctxt "admin.Manage_Queue" 926 msgid "WarnAborted" 927 msgstr "" 928 929 # Not found 930 msgctxt "admin.Manage_Queue" 931 msgid "ErrNotFound" 932 msgstr "" 933 934 # Redirection 935 msgctxt "admin.Manage_Queue" 936 msgid "ErrRedir" 937 msgstr "" 938 939 # Redirection (temporary) 940 msgctxt "admin.Manage_Queue" 941 msgid "ErrRedirTmp" 942 msgstr "" 943 944 # Self-learning completion is needed 945 msgctxt "admin.Manage_Queue" 946 msgid "LearnNeeded" 947 msgstr "" 948 949 # Remote processing is not allowed 950 msgctxt "admin.Manage_Queue" 951 msgid "EngineRemoteAccessDenied" 952 msgstr "" 953 954 # Remote processing is busy 955 msgctxt "admin.Manage_Queue" 956 msgid "EngineRemoteBusy" 957 msgstr "" 958 959 # Completed 960 msgctxt "admin.Manage_Queue" 961 msgid "StateOk" 962 msgstr "" 963 964 # Already optimized 965 msgctxt "admin.Manage_Queue" 966 msgid "StateSkipAlreadyProcessed" 967 msgstr "" 968 969 # Not changed 970 msgctxt "admin.Manage_Queue" 971 msgid "StateSkipNotChanged" 972 msgstr "" 973 974 # Skipped: %1$s 975 #, php-format 976 msgctxt "admin.Manage_Queue" 977 msgid "StateSkip_%1$s" 978 msgstr "" 979 980 # Failed: %1$s 981 #, php-format 982 msgctxt "admin.Manage_Queue" 983 msgid "StateErr_%1$s" 984 msgstr "" 985 888 986 # Geo location 889 987 msgctxt "admin.Settings_Views_Geo" -
seraphinite-accelerator/trunk/languages/seraphinite-accelerator.pot
r3486643 r3489455 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: seraphinite-accelerator 2.28.1 7\n"9 "Project-Id-Version: seraphinite-accelerator 2.28.18\n" 10 10 "Report-Msgid-Bugs-To: support@s-sols.com\n" 11 11 "MIME-Version: 1.0\n" -
seraphinite-accelerator/trunk/main.php
r3486643 r3489455 43 43 function _AddMenus( $accepted = false ) 44 44 { 45 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.1 7', __FILE__ ) );45 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.18', __FILE__ ) ); 46 46 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' ); 47 47 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' ); … … 1287 1287 { 1288 1288 Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) ); 1289 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.1 7' );1289 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.18' ); 1290 1290 Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) ); 1291 1291 wp_enqueue_script( Plugin::ScriptId( 'Admin' ) ); … … 1454 1454 Ui::Button( Wp::safe_html_x( 'SrvDel', 'admin.Manage_Operate', 'seraphinite-accelerator' ), false, null, null, 'button', array( 'class' => array( 'ctlSpaceAfter', 'ctlSpaceVBefore', 'ctlVaMiddle' ), 'style' => array( 'min-width' => '7em' ), 'onclick' => 'seraph_accel.Manager._int.OnCacheOp(this,10,"' . wp_create_nonce( 'op-10' ) . '");return false;' ) ) . 1455 1455 Ui::Button( Wp::GetLocString( 'Cancel' ), false, null, null, 'button', array( 'class' => array( 'ctlSpaceAfter', 'ctlSpaceVBefore', 'ctlVaMiddle', 'cancel' ), 'style' => array( 'min-width' => '7em' ), 'disabled' => true, 'onclick' => 'seraph_accel.Manager._int.OnCacheOpCancel(this,undefined,"' . wp_create_nonce( 'op-cancel' ) . '");return false;' ) ) . 1456 Ui::NumberBox( null, 5, array( 'min' => 1, 'class' => array( 'ctlSpaceAfter', 'ctlSpaceVBefore', 'ctlVaMiddle', 'tmDataRefresh' ), ' style' => array( 'display' => 'none', 'width' => '4em' ) ) ) .1456 Ui::NumberBox( null, 5, array( 'min' => 1, 'class' => array( 'ctlSpaceAfter', 'ctlSpaceVBefore', 'ctlVaMiddle', 'tmDataRefresh' ), 'placeholder' => '0', 'style' => array( 'display' => 'none', 'width' => '4em' ) ) ) . 1457 1457 Ui::Spinner( false, array( 'class' => 'ctlSpaceAfter ctlSpaceVBefore ctlVaMiddle', 'style' => array( 'display' => 'none' ) ) ) . 1458 1458 Ui::Tag( 'span', null, array( 'class' => 'ctlSpaceAfter ctlSpaceVBefore ctlVaMiddle ctlInlineBlock descr', 'style' => array( 'display' => 'none' ) ) ) . … … 1529 1529 $rmtCfg = PluginRmtCfg::Get(); 1530 1530 1531 $urlLogoImg = add_query_arg( array( 'v' => '2.28.1 7' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );1531 $urlLogoImg = add_query_arg( array( 'v' => '2.28.18' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) ); 1532 1532 $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' ); 1533 1533 … … 2341 2341 } 2342 2342 2343 function GetQueueItem_Done_Attrs( $data ) 2344 { 2345 $iconClr = ''; 2346 $stateDsc = ''; 2347 $hr = ($data[ 'hr' ]??null); 2348 $error = ($data[ 'r' ]??null); 2349 2350 if( !$error ) 2351 { 2352 $httpCode = Net::GetResponseCodeFromHr( $hr ); 2353 if( $httpCode ) 2354 { 2355 $error = ( string )$httpCode; 2356 } 2357 else if( $hr == Gen::E_INVALID_STATE ) 2358 { 2359 $error = esc_html_x( 'ErrTerminated', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2360 $stateDsc = esc_html_x( 'ErrTerminatedDsc', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2361 } 2362 else if( $hr == Gen::E_TIMEOUT ) 2363 { 2364 $error = esc_html_x( 'ErrTimeout', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2365 $stateDsc = esc_html_x( 'ErrTimeoutDsc', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2366 } 2367 else if( $hr == Gen::S_TIMEOUT ) 2368 { 2369 $error = esc_html_x( 'WarnTimeout', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2370 $stateDsc = esc_html_x( 'WarnTimeoutDsc', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2371 } 2372 else if( $hr == Gen::S_ABORTED ) 2373 $error = esc_html_x( 'WarnAborted', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2374 else 2375 $error = sprintf( '0x%08X', $hr ); 2376 } 2377 else 2378 { 2379 if( Gen::StrStartsWith( $error, 'err:' ) ) 2380 $error = substr( $error, 4 ); 2381 else if( Gen::StrStartsWith( $error, 'httpCode:' ) ) 2382 { 2383 $error = substr( $error, 9 ); 2384 switch( substr( $error, 0, 3 ) ) 2385 { 2386 case '404': $error = esc_html_x( 'ErrNotFound', 'admin.Manage_Queue', 'seraphinite-accelerator' ) . substr( $error, 3 ); break; 2387 case '308': 2388 case '301': $error = esc_html_x( 'ErrRedir', 'admin.Manage_Queue', 'seraphinite-accelerator' ) . substr( $error, 3 ); break; 2389 case '307': 2390 case '302': $error = esc_html_x( 'ErrRedirTmp', 'admin.Manage_Queue', 'seraphinite-accelerator' ) . substr( $error, 3 ); break; 2391 } 2392 } 2393 else if( $error == 'lrnNeed' ) 2394 { 2395 $error = esc_html_x( 'LearnNeeded', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2396 } 2397 else if( Gen::StrStartsWith( $error, 'engineRemote' ) ) 2398 { 2399 if( $error == 'engineRemoteAccessDenied' || $error == 'engineRemoteNoLicense' ) 2400 $error = esc_html_x( 'EngineRemoteAccessDenied', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2401 else 2402 $error = esc_html_x( 'EngineRemoteBusy', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2403 } 2404 2405 if( ( $pos = strpos( $error, ":" ) ) !== false ) 2406 { 2407 $stateDsc = MsgUnpackLocIds( rawurldecode( substr( $error, $pos + 1 ) ) ); 2408 $error = substr( $error, 0, $pos ); 2409 } 2410 2411 $error = MsgUnpackLocIds( rawurldecode( $error ) ); 2412 } 2413 2414 if( $hr == Gen::S_OK ) 2415 { 2416 $state = esc_html_x( 'StateOk', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2417 $iconClr = 'success'; 2418 2419 $stateDsc = MsgUnpackLocIds( Gen::GetArrField( $data, array( 'w' ), array() ) ); 2420 foreach( $stateDsc as &$stateDscItem ) 2421 { 2422 if( Gen::StrStartsWith( $stateDscItem, 'engineRemote' ) ) 2423 { 2424 if( $stateDscItem == 'engineRemoteAccessDenied' || $stateDscItem == 'engineRemoteNoLicense' ) 2425 $stateDscItem = esc_html_x( 'EngineRemoteAccessDenied', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2426 else 2427 $stateDscItem = esc_html_x( 'EngineRemoteBusy', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2428 } 2429 else 2430 $iconClr = 'warning'; 2431 } 2432 unset( $stateDscItem ); 2433 $stateDsc = implode( "\n", $stateDsc ); 2434 } 2435 else if( Gen::HrSucc( $hr ) ) 2436 { 2437 if( $error === 'alreadyProcessed' ) 2438 $state = esc_html_x( 'StateSkipAlreadyProcessed', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2439 else if( $error === 'notChanged' ) 2440 $state = esc_html_x( 'StateSkipNotChanged', 'admin.Manage_Queue', 'seraphinite-accelerator' ); 2441 else 2442 $state = sprintf( esc_html_x( 'StateSkip_%1$s', 'admin.Manage_Queue', 'seraphinite-accelerator' ), $error ); 2443 $iconClr = 'normal'; 2444 } 2445 else 2446 { 2447 $state = sprintf( esc_html_x( 'StateErr_%1$s', 'admin.Manage_Queue', 'seraphinite-accelerator' ), $error ); 2448 $iconClr = 'error'; 2449 } 2450 2451 $duration = ($data[ 'td' ]??null); 2452 2453 if( $aInfo = Gen::GetArrField( $data, array( 'i' ), array() ) ) 2454 { 2455 foreach( $aInfo as $infoKey => $infoVal ) 2456 { 2457 if( !$infoVal ) 2458 continue; 2459 2460 if( $stateDsc ) 2461 $stateDsc .= "\n"; 2462 if( is_string( $infoKey ) ) 2463 { 2464 $infoKey = MsgUnpackLocIds( $infoKey ); 2465 $stateDsc .= '{TAG_U_OPEN}' . $infoKey . '{TAG_U_CLOSE}' . "\n"; 2466 } 2467 $infoVal = MsgUnpackLocIds( $infoVal ); 2468 if( is_array( $infoVal ) ) 2469 $stateDsc .= implode( "\n", $infoVal ); 2470 else 2471 $stateDsc .= $infoVal; 2472 } 2473 } 2474 2475 return( array( $iconClr, $state, $stateDsc, $duration ) ); 2476 } 2477 2343 2478 function OnAsyncTask_CacheRevalidateAll( $args ) 2344 2479 { -
seraphinite-accelerator/trunk/oper.php
r3486643 r3489455 1157 1157 foreach( $viewId === null ? array( 'cmn' ) : $viewId as $viewIdI ) 1158 1158 if( CacheOpViewsHeadersGetViewId( $viewIdI ) == 'cmn' ) 1159 $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.17' );1159 $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.18' ); 1160 1160 1161 1161 if( ($settCache[ 'views' ]??null) ) … … 1890 1890 } 1891 1891 1892 if( in_array( 'translatepress-multilingual', $availablePlugins ) ) 1893 { 1894 1895 foreach( Gen::GetArrField( get_option( 'trp_settings' ), array( 'trp-multiple-domains' ), array() ) as $lang => $aInfo ) 1896 { 1897 if( !($aInfo[ 'enabled' ]??null) ) 1898 continue; 1899 1900 if( $domain = Gen::GetArrField( $aInfo, array( 'domain' ), '' ) ) 1901 $aAddrSite[] = trim( Net::UrlDeParse( Net::UrlParse( $domain ), 0, array(), array( PHP_URL_HOST, PHP_URL_PORT, PHP_URL_PATH ) ), '/' ); 1902 } 1903 } 1904 1892 1905 if( in_array( 'multiple-domain', $availablePlugins ) ) 1893 1906 { -
seraphinite-accelerator/trunk/options.php
r3486643 r3489455 142 142 143 143 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.1 7' );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.18' ); 145 145 Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) ); 146 146 wp_enqueue_script( Plugin::ScriptId( 'Admin' ) ); … … 152 152 $isPaidLockedContent = false; 153 153 154 $rmtCfg = PluginRmtCfg::Get( );154 $rmtCfg = PluginRmtCfg::Get( 2 ); 155 155 $sett = Plugin::SettGet(); 156 156 $dtCurLoc = new \DateTime( 'now', DateTimeZone::FromOffset( Wp::GetGmtOffset() ) ); -
seraphinite-accelerator/trunk/plugin_root.php
r3486643 r3489455 6 6 Text Domain: seraphinite-accelerator 7 7 Domain Path: /languages 8 Version: 2.28.1 78 Version: 2.28.18 9 9 Author: Seraphinite Solutions 10 10 Author URI: https://www.s-sols.com -
seraphinite-accelerator/trunk/readme.txt
r3486670 r3489455 6 6 Requires at least: 4.5 7 7 Tested up to: 6.9 8 Stable tag: 2.28.1 78 Stable tag: 2.28.18 9 9 License: GPLv2 or later (if another license is not provided) 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 163 163 == Changelog == 164 164 165 = 2.28.18 = 166 167 Improvements: 168 169 * Defining scope in HTML replacement. 170 * Fast optimization: styles processing. 171 * Restarting failed queue items. 172 * Support of subdomains of TranslatePress. 173 174 Fixes: 175 176 * Simple thread of optimization doesnt work with custom 'index.php'. 177 165 178 = 2.28.17 = 166 179 … … 168 181 169 182 * Defining scope in HTML replacement. 183 * Disabled getting external critical images while fast optimization. 170 184 * FOX - Currency Switcher. 171 185
Note: See TracChangeset
for help on using the changeset viewer.