dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxWebApp_base_url_cache_test.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5require_once dirname(__DIR__, 2) . '/vendor/autoload.php';
6require_once dirname(__DIR__) . '/dbxKernel.php';
7
8$_SERVER['HTTPS'] = 'on';
9$_SERVER['HTTP_HOST'] = 'localhost';
10$_SERVER['SERVER_PORT'] = '443';
11
12$web = dbx()->get_system_obj('dbxWebApp');
13
14dbx()->set_remember_var('base_url', 'https://localhost/dbxapp/', 'dbx');
15$baseUrl = $web->get_base_url('/dbxapp-github');
16if ($baseUrl !== 'https://localhost/dbxapp-github/') {
17 fwrite(STDERR, "FAIL: Veralteter Installationspfad blieb im Basis-URL-Cache: $baseUrl\n");
18 exit(1);
19}
20
21dbx()->set_remember_var('base_url', 'https://localhost/dbxapp-github/', 'dbx');
22$sameBaseUrl = $web->get_base_url('/dbxapp-github');
23if ($sameBaseUrl !== 'https://localhost/dbxapp-github/') {
24 fwrite(STDERR, "FAIL: Passender Basis-URL-Cache wurde nicht beibehalten: $sameBaseUrl\n");
25 exit(2);
26}
27
28echo "OK dbxWebApp base URL cache\n";
$_SERVER['REQUEST_METHOD']
exit
Definition index.php:146
DBX schema administration.