-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (21 loc) · 688 Bytes
/
Copy pathindex.php
File metadata and controls
28 lines (21 loc) · 688 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
<?php
/**
* Guestbook
* @author: kije
* @date: 9/1/14
*/
use kije\Base\SessionManager;
use kije\Guestbook\inc\Guestbook;
// compression
$ob_handler = null;
if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false && function_exists('ob_deflatehandler')) {
$ob_handler = 'ob_deflatehandler';
} elseif (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false && function_exists('ob_gzhandler')) {
$ob_handler = 'ob_gzhandler';
}
ob_start($ob_handler);
require_once 'inc/globals.inc.php';
/** @var Guestbook $app */
$app = require CODE_ROOT . '/kije/Guestbook/App.php';
$app->run();
ob_end_flush(); // might never reach this point -> app exits after rendering