-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpbook.php
More file actions
37 lines (31 loc) · 811 Bytes
/
Copy pathpbook.php
File metadata and controls
37 lines (31 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* PowerBook - PHP Guestbook System
* Main Entry Point
*
* @license MIT
* @copyright PowerScripts.org
*
* @see https://www.powerscripts.org
*/
declare(strict_types=1);
// BUG-013: Entry-Konstante setzen, damit guestbook.inc.php Direktaufruf ablehnen kann.
if (!defined('PB_ENTRY')) {
define('PB_ENTRY', true);
}
// Include config early for session_start() before any output
require_once __DIR__ . '/pb_inc/config.inc.php';
require_once __DIR__ . '/pb_inc/layout.inc.php';
pb_layout_header('PowerBook Gästebuch', [
'showNav' => true,
'adminLink' => 'pb_inc/admincenter/',
'siteName' => 'PowerBook Gästebuch',
]);
?>
<div class="row g-4">
<div class="col-12">
<?php include __DIR__ . '/pb_inc/guestbook.inc.php'; ?>
</div>
</div>
<?php
pb_layout_footer();