2declare(strict_types=1);
17$_SERVER[
'SCRIPT_NAME'] =
'/dbxapp-docs/index.php';
19define(
'dbxSystem',
'dbxWebApp');
20define(
'dbxRunAsAdmin', 1);
22require
$base .
'/dbx/vendor/autoload.php';
23require_once
$base .
'/dbx/include/dbxKernel.php';
24require_once
$base .
'/dbx/modules/dbxContent/include/dbxContent_bootstrap_sync.php';
35 throw new RuntimeException(
'Die gebündelte Startseitenanimation fehlt oder ist ungültig.');
40 array(
'permalink' =>
'tutorials-dbxapp'),
41 array(
'id',
'permalink',
'content'),
46 throw new RuntimeException(
'Die Dokumentations-Startseite tutorials-dbxapp wurde nicht gefunden.');
51 '#<!--\s*dbxdocs-cinematic:start:[^>]+-->.*?<!--\s*dbxdocs-cinematic:end\s*-->#is',
66 throw new RuntimeException(
'Die Dokumentations-Startseite konnte nicht aktualisiert werden.');
72 array(
'content_id' =>
$pageId,
'slot' =>
'gallery'),
83 $usageId = (int)($usage[
'id'] ?? 0);
84 $mediaId = (int)($usage[
'media_id'] ?? 0);
86 || !in_array(
$mediaId, array(119, 120, 121),
true)
87 || (
int)($usage[
'active'] ?? 0) === 0
100 throw new RuntimeException(
'Galerie-Zuordnung #' . $usageId .
' konnte nicht deaktiviert werden.');
105dbxContentPageCache::invalidateAll();
107echo json_encode(array(
110 'permalink' => (
string)(
$page[
'permalink'] ??
''),
111 'cinematic_seconds' => 84,
113 'cache_invalidated' =>
true,
114), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) . PHP_EOL;
$_SERVER['REQUEST_METHOD']
DBX schema administration.
if($cinematic===''||!str_contains($cinematic, 'data-dbx-cinema')) $page
if($db->update($contentDd, array('content'=> $content), $pageId, 0, 1, 0, 1) !==1) $disabled