3 Commits
v2.0.7 ... main

Author SHA1 Message Date
086e7c7a77 full path 2025-06-10 12:00:35 +02:00
181bed4449 config corrections 2025-06-10 11:57:16 +02:00
6e0795bbdf url 2025-06-10 11:55:13 +02:00
5 changed files with 12 additions and 3 deletions

View File

@ -20,6 +20,6 @@ _buildConfig() {
echo "" echo ""
} }
_buildConfig > src/inc/config.inc.php _buildConfig > /srv/src/config.inc.php
caddy run --config /etc/caddy/Caddyfile caddy run --config /etc/caddy/Caddyfile

3
src/.gitignore vendored
View File

@ -1 +1,2 @@
vendor/ vendor/
config.inc.php

3
src/example.config.inc.php Executable file
View File

@ -0,0 +1,3 @@
<?php
define('URL','http://localhost:8080');

View File

@ -30,7 +30,12 @@ switch ($url[0]) {
} }
$ip = getUserIP(); $ip = getUserIP();
$viewport = $_REQUEST['viewport']; $viewport = $_REQUEST['viewport'] ?? '1024x768';
if (!preg_match('/^\d+x\d+$/', $viewport)) {
header('HTTP/1.0 400 Bad Request');
echo 'Invalid viewport format. Use WIDTHxHEIGHT (e.g., 1024x768)';
exit;
}
$js = $_REQUEST['js'] == 'false' ? false : true; $js = $_REQUEST['js'] == 'false' ? false : true;
$serverUrl = 'http://localhost:4444'; $serverUrl = 'http://localhost:4444';