head.php 2.85 KB
Newer Older
1
2
3
4
<?php
/*
 ----------------------------------------------------------------------
 AlternC - Web Hosting System
5
6
 Copyright (C) 2000-2012 by the AlternC Development Team.
 https://alternc.org/
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 ----------------------------------------------------------------------
 LICENSE

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html
 ----------------------------------------------------------------------
 Purpose of file: Main header of all html files
 ----------------------------------------------------------------------
*/
25
if (!$charset) $charset="UTF-8";
26
@header("Content-Type: text/html; charset=$charset");
27
28
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
29
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
30
<head>
31
32
33
34
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<title><?php __("AlternC Control Panel"); ?></title>

<link rel="stylesheet" href="js/jquery_ui/css/smoothness/jquery-ui-1.8.23.custom.css" type="text/css" />
35
<link rel="stylesheet" href="styles/style.css" type="text/css" />
36
<link rel="stylesheet" href="styles/passwordStrengthMeter.css" type="text/css" />
37

Alan Garcia's avatar
Alan Garcia committed
38
<link rel="Shortcut Icon" href="favicon.ico" type="image/ico" />
Alan Garcia's avatar
Alan Garcia committed
39
<link rel="icon" href="favicon.ico" type="image/ico" />
40
41

<script src="js/alternc.js" type="text/javascript" ></script>
42
<script src="js/jquery.min.js" type="text/javascript"></script>
Alan Garcia's avatar
Alan Garcia committed
43
<script src="js/jquery_ui/js/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
44
<script src="js/passwordStrengthMeter.js" type="text/javascript"></script>
45
46
47
48
49
<?php
$lang_date_picker="js/jquery_ui/js/jquery.ui.datepicker-".substr($lang,0,2).".js";
if (file_exists($lang_date_picker)) 
  echo "<script src=\"$lang_date_picker\" type=\"text/javascript\"></script>";
?>
50
51
</head>
<body>
Alan Garcia's avatar
Alan Garcia committed
52
<?
Alan Garcia's avatar
Alan Garcia committed
53
$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
54
55
56
57
$isinvited=false;

if ($admin->enabled) $isinvited=true;

Alan Garcia's avatar
Alan Garcia committed
58
if ($oldid && $oldid!=$cuid) {
59
  $isinvited=true;
Alan Garcia's avatar
Alan Garcia committed
60
  echo "<div align=center><p class='error'>";
61
  __("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>");
Alan Garcia's avatar
Alan Garcia committed
62
63
64
  echo "</p></div>";
}
?>
65
66
67
68
69
<div id="global">
<table>
<tr>
<td id="tdMenu"><div id="menu"><?php include_once("menu.php"); ?></div></td>
<td id="tdContent"><div id="content">