Download all files FTP
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.19.0/meet-ffmpeg-a-working-conversion-method';
|
||||
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'success',
|
||||
'Great news!<br><br> WebP Express 0.19.0 introduced a new conversion method: ffmpeg, which works on your system. ' .
|
||||
'You now have a conversion method that works! To start using it, you must go to settings and click save.',
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Take me to the settings', 'redirect-to-settings' => true],
|
||||
['text' => 'Dismiss'],
|
||||
]
|
||||
);
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.19.0/meet-ffmpeg-better-than-ewww';
|
||||
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'info',
|
||||
'WebP Express 0.19.0 introduced a new conversion method: ffmpeg. ' .
|
||||
'You may consider moving it above ewww, as ffmpeg supports the "Auto" WebP encoding option ' .
|
||||
'(encoding to both lossy and lossless and then selecting the smallest)',
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Take me to the settings', 'redirect-to-settings' => true],
|
||||
['text' => 'Dismiss'],
|
||||
]
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.19.0/meet-ffmpeg-better-than-gd';
|
||||
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'info',
|
||||
'WebP Express 0.19.0 introduced a new conversion method: ffmpeg. ' .
|
||||
'You may consider moving it above Gd, as it is slightly better. ',
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Take me to the settings', 'redirect-to-settings' => true],
|
||||
['text' => 'Dismiss'],
|
||||
]
|
||||
);
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.25.10/failed-renaming-config-file';
|
||||
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'warning',
|
||||
'WebP Express failed renaming the configuration files to something secret. ' .
|
||||
'This was attempted in order to protect its contents from prying eyes on servers that does not respect .htaccess files (such as Nginx). ' .
|
||||
'If you have entered sensitive information in WebP Express settings (I can only think of Ewww API key), you should remove it. You can do simply by changing the WebP Express settings.' .
|
||||
(PlatformInfo::isNginx() ? 'Especially, as it appears you are in fact on Nginx. ' : '') .
|
||||
(PlatformInfo::isNginx() ? '' : 'You are by the way not on Nginx ') .
|
||||
(PlatformInfo::isLiteSpeed() ? '(you are on LiteSpeed). ' : '') .
|
||||
(PlatformInfo::isApache() ? '(you are on Apache). ' : '') .
|
||||
(PlatformInfo::isMicrosoftIis() ? '(you are on Microsoft IIS). ' : '') .
|
||||
'The files in question are config.json and wod-options.json in wp-content/webp-express/config'
|
||||
,
|
||||
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Dismiss'],
|
||||
]
|
||||
);
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.25.10/renamed-config-file';
|
||||
|
||||
/*
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'info',
|
||||
'WebP Express has renamed its configuration files to something unique. ' .
|
||||
'This was done in order to protect its contents from prying eyes on servers that does not respect .htaccess files (such as Nginx). ' .
|
||||
(PlatformInfo::isNginx() ? 'I apologize for failing to consider that this could be a problem on Nginx' : 'Your server is by the way not Nginx'),
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Ok'],
|
||||
]
|
||||
);
|
||||
*/
|
||||
|
||||
// The message is old news, so dismiss it, so this code is not run again
|
||||
DismissableGlobalMessages::dismissMessage($msgId);
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
/*
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'info',
|
||||
'WebP Express has regenerated .htaccess files, fixing an error introduced in 0.25.10',
|
||||
'0.25.11/updated-htaccess',
|
||||
[
|
||||
['text' => 'Ok'],
|
||||
]
|
||||
);
|
||||
*/
|
||||
|
||||
// The message is no longer relevant, as it is no longer neccessary
|
||||
// So dismiss it, so this code is not run again
|
||||
DismissableGlobalMessages::dismissMessage('0.25.11/updated-htaccess');
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace WebPExpress;
|
||||
|
||||
$msgId = '0.25.12/nginx-rewrites-needs-updating';
|
||||
|
||||
/*
|
||||
DismissableGlobalMessages::printDismissableMessage(
|
||||
'info',
|
||||
'<p>WebP Express needed to rename its configuration files to contain random characters - for security reasons. ' .
|
||||
'You can safely ignore this message. However, if you want to do a tiny micro optimization, you can pass the "hash" part of the new name in the nginx rewrite rules (it seems you are running on nginx).' .
|
||||
'Check out the updated instructions in the README.</p>' .
|
||||
'<p>In short, by editing the WebP Express rules set up in your server context (usually found in /etc/nginx/sites-available), if you pass "&hash=' . Paths::getConfigHash() . '" to the converter script, the converter script can read the config file directly, without resorting to finding it by inspecting the files in the directory.</p>',
|
||||
$msgId,
|
||||
[
|
||||
['text' => 'Ok'],
|
||||
]
|
||||
);
|
||||
*/
|
||||
|
||||
// The message is no longer relevant, as it is no longer neccessary to pass the hash
|
||||
// So dismiss it, so this code is not run again
|
||||
DismissableGlobalMessages::dismissMessage($msgId);
|
||||
Reference in New Issue
Block a user