Files
preland/tests/render-preland.php
T

8 lines
351 B
PHP

<?php
if (PHP_SAPI !== 'cli') { http_response_code(404); exit; }
$_SERVER['HTTP_HOST'] = $argv[1] ?? 'zoomstage.online';
$_SERVER['SERVER_NAME'] = 'fixture.local';
$_GET = ['theme' => 'abcd' . (($argv[2] ?? 'light') === 'dark' ? '1' : '2'), 'indpic' => 'abcd1'];
if (isset($argv[3])) $_GET['part'] = $argv[3];
require dirname(__DIR__) . '/index.php';