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 error_reporting(E_ALL ^ E_NOTICE);
date_default_timezone_set('Asia/Hong_Kong'); //date_default_timezone_set('HKT/8.0/no DST');
if ($without_no_cache_header !== true) require_once( realpath(dirname(__FILE__)) . '/no_cache_header.php'); if ($without_connection !== true) require_once( realpath(dirname(__FILE__)) . '/connection.php'); if ($without_session_start !== true) session_start();
// IE use last version header('X-UA-Compatible: IE=edge,chrome=1');
// Javascript / CSS release version $v = 10;
/** * Wrapper of htmlspecialchars() * @param string $text * @param string $charset * @return string */ function h($text, $charset = null) { return htmlspecialchars($text, ENT_QUOTES, isset($charset) ? $charset : 'UTF-8'); }
|