Alternc  3.2
Alternc logiel libre pour l'hébergement
 All Data Structures Namespaces Files Functions Variables Pages
head.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  AlternC - Web Hosting System
5  Copyright (C) 2000-2012 by the AlternC Development Team.
6  https://alternc.org/
7  ----------------------------------------------------------------------
8  LICENSE
9 
10  This program is free software; you can redistribute it and/or
11  modify it under the terms of the GNU General Public License (GPL)
12  as published by the Free Software Foundation; either version 2
13  of the License, or (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  To read the license please visit http://www.gnu.org/copyleft/gpl.html
21  ----------------------------------------------------------------------
22  Purpose of file: Main header of all html files
23  ----------------------------------------------------------------------
24 */
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 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
32 <title><?php __("AlternC Control Panel"); ?></title>
33 
34 <link rel="stylesheet" href="js/jquery_ui/css/redmond/jquery-ui-1.10.3.custom.min.css" type="text/css" />
35 <link rel="stylesheet" href="styles/style.css" type="text/css" />
36 <?php
37 if (file_exists("styles/style-custom.css") ) {
38  echo '<link rel="stylesheet" href="styles/style-custom.css" type="text/css" />';
39 }
40 ?>
41 
42 <link rel="stylesheet" href="styles/style-empty.css" type="text/css" title="Default - Desktop TNG"/>
43 <link rel="alternate stylesheet" href="styles/style-bluedesktop10.css" type="text/css" title="Blue Desktop 1.0" />
44 <link rel="alternate stylesheet" href="styles/style-hw.css" type="text/css" title="Halloween" />
45 
46 <link rel="Shortcut Icon" href="favicon.ico" type="image/ico" />
47 <link rel="icon" href="favicon.ico" type="image/ico" />
48 
49 <script src="js/alternc.js" type="text/javascript" ></script>
50 <script src="js/jquery.min_embedded.js" type="text/javascript"></script>
51 <script src="js/jquery_ui/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
52 
53 <script src="js/jquery.tablesorter.min.js" type="text/javascript"></script>
54 
55 <link href="prettify/prettify.css" type="text/css" rel="stylesheet" />
56 <script src="prettify/prettify.js" type="text/javascript"></script>
57 
58 </head>
59 <body onload="prettyPrint()">
60 <?
61 
62 if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
63  echo "<div align=center><p class='alert alert-warning'>";
64  __("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>.");
65  if ($oldid == 2000) echo ' '._("You can also <a href='adm_update_domains.php'>apply changes</a>."); // Yes, hardcoded uid. We will rewrite permissions another day
66  echo "</p></div>";
67 }
68 if ( panel_islocked() ) {
69  echo "<div align=center><p class='alert alert-warning'>";
70  __("Panel is locked! No one can login!");
71  echo "</p></div>";
72 }
73 ?>
74 <div id="global" class="clearfix">
75 <div id="menu"><?php include_once("menu.php"); ?></div>
76 <div id="content">