Alternc  latest
Alternc logiel libre pour l'hébergement
head.php
Go to the documentation of this file.
1 <?php
2 /*
3  ----------------------------------------------------------------------
4  LICENSE
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License (GPL)
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  To read the license please visit http://www.gnu.org/copyleft/gpl.html
17  ----------------------------------------------------------------------
18 */
19 
20 /**
21  * main HEADER of all HTML page of the panel
22  *
23  * @copyright AlternC-Team 2000-2017 https://alternc.com/
24  */
25 
26 if (!isset($charset) || ! $charset) $charset="UTF-8";
27 @header("Content-Type: text/html; charset=$charset");
28 
29 require_once("html-head.php");
30 ?>
31 <body>
32 <?php
33 
34 if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
35  echo "<div align=center><p class='alert alert-warning'>";
36  __("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>.");
37  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
38  echo "</p></div>";
39 }
40 if ( panel_islocked() ) {
41  echo "<div align=center><p class='alert alert-warning'>";
42  __("Panel is locked! No one can login!");
43  echo "</p></div>";
44 }
45 ?>
46 <div id="global" class="clearfix">
47 <div id="menu"><?php include_once("menu.php"); ?></div>
48 <div id="content">
$cuid
Definition: bootstrap.php:43
$isinvited
Definition: config.php:204
if(count($_POST) &&!defined("NOCSRF")) if(!defined('NOCHECK')) for($i=0; $i< count($classes); $i++) $oldid
Definition: config.php:203
panel_islocked()
Definition: functions.php:1149
__($str)
Definition: functions.php:404