-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
38 lines (33 loc) · 1.12 KB
/
main.php
File metadata and controls
38 lines (33 loc) · 1.12 KB
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
38
<?php
/**
* @author neo <dipolukarov@gmail.com>
* @version $Id$
*/
global $has_password;
$has_password = 0;
if(isset($_COOKIE['phpMp_password'])) {
$password = $_COOKIE['phpMp_password'];
$has_password = 1;
}
include 'config.php';
include 'theme.php';
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: text/html; charset=UTF-8');
echo '<!DOCTYPE html>' , "\n"
, '<html>' , "\n" , '<head>'
, '<meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT" />'
, '<meta http-equiv="Pragma" content="no-cache" />'
, '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />'
// php won't interpret inside of the style block
, '<style type="text/css">' , "\n"
, '* {' , "\n"
, ' font-family: ' , $fonts['all'] . ";\n"
, "}\n"
, '</style>';
echo '</head>' , "\n"
, '<body link="' , $colors['links']['link'] , '" vlink="' , $colors['links']['visual'] , '" '
, 'alink="' , $colors['links']['active'] , '" bgcolor="' , $colors['background'] , '">';
include 'main_body.php';
echo '</body></html>';