first commit

This commit is contained in:
2025-02-24 22:33:42 +01:00
commit 737c037e85
18358 changed files with 5392983 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Grant access to webp-on-demand.php and webp-realizer.php
<FilesMatch "(webp-on-demand\.php|webp-realizer\.php|ping\.php|ping\.txt)$">
<IfModule !mod_authz_core.c>
Order deny,allow
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>

View File

@@ -0,0 +1,12 @@
<?php
define('WOD_DIR', __DIR__);
// setLocale - for converting files with non ascii characters (#406)
setlocale(LC_CTYPE, "C.UTF-8");
function webpexpress_autoloader($class) {
if (strpos($class, 'WebPExpress\\') === 0) {
require_once WOD_DIR . '/../lib/classes/' . substr($class, 12) . '.php';
}
}
spl_autoload_register('webpexpress_autoloader');

View File

@@ -0,0 +1 @@
<?php echo 'pong';

View File

@@ -0,0 +1 @@
pong

View File

@@ -0,0 +1,8 @@
<?php
namespace WebPExpress;
include 'autoloader.php';
WebPOnDemand::preventDirectAccess('webp-on-demand.php');
WebPOnDemand::processRequest();

View File

@@ -0,0 +1,8 @@
<?php
namespace WebPExpress;
include 'autoloader.php';
WebPRealizer::preventDirectAccess('webp-realizer.php');
WebPRealizer::processRequest();