2006-04-26 12:28:53 +00:00
< ? php
/*
----------------------------------------------------------------------
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
----------------------------------------------------------------------
*/
2017-10-11 09:58:04 +00:00
/**
* main HEADER of all HTML page of the panel
*
* @ copyright AlternC - Team 2000 - 2017 https :// alternc . com /
*/
2014-03-26 14:36:36 +00:00
if ( ! isset ( $charset ) || ! $charset ) $charset = " UTF-8 " ;
2010-04-28 19:28:36 +00:00
@ header ( " Content-Type: text/html; charset= $charset " );
2006-04-26 12:28:53 +00:00
?>
<! DOCTYPE html PUBLIC " -//W3C//DTD XHTML 1.0 Transitional//EN " " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
2012-08-24 14:06:58 +00:00
< html xmlns = " http://www.w3.org/1999/xhtml " xml : lang = " <?php echo $lang ; ?> " lang = " <?php echo $lang ; ?> " >
2006-04-26 12:28:53 +00:00
< head >
2012-08-24 14:06:58 +00:00
< meta http - equiv = " Content-Type " content = " text/html; charset=<?php echo $charset ; ?> " />
< title >< ? php __ ( " AlternC Control Panel " ); ?> </title>
2013-07-17 13:25:52 +00:00
< link rel = " stylesheet " href = " js/jquery_ui/css/redmond/jquery-ui-1.10.3.custom.min.css " type = " text/css " />
2009-09-08 05:29:38 +00:00
< link rel = " stylesheet " href = " styles/style.css " type = " text/css " />
2013-07-22 17:15:03 +00:00
< ? php
if ( file_exists ( " styles/style-custom.css " ) ) {
echo '<link rel="stylesheet" href="styles/style-custom.css" type="text/css" />' ;
}
2014-03-27 09:50:46 +00:00
2014-03-28 11:37:36 +00:00
$favicon = variable_get ( 'favicon' , 'favicon.ico' , 'You can specify a favicon, for example /images/my_logo.ico' , array ( 'desc' => 'URL' , 'type' => 'string' ));
2014-03-27 09:50:46 +00:00
2013-07-22 17:15:03 +00:00
?>
2012-08-24 14:06:58 +00:00
2013-01-30 15:27:43 +00:00
< link rel = " stylesheet " href = " styles/style-empty.css " type = " text/css " title = " Default - Desktop TNG " />
< link rel = " alternate stylesheet " href = " styles/style-bluedesktop10.css " type = " text/css " title = " Blue Desktop 1.0 " />
2012-11-08 19:59:17 +00:00
< link rel = " alternate stylesheet " href = " styles/style-hw.css " type = " text/css " title = " Halloween " />
2012-10-26 17:04:37 +00:00
2014-03-27 09:50:46 +00:00
< link rel = " Shortcut Icon " href = " <?php echo $favicon ;?> " type = " image/ico " />
< link rel = " icon " href = " <?php echo $favicon ;?> " type = " image/ico " />
2012-08-24 14:06:58 +00:00
< script src = " js/alternc.js " type = " text/javascript " ></ script >
2013-10-18 09:43:04 +00:00
< script src = " js/jquery.min_embedded.js " type = " text/javascript " ></ script >
2013-07-17 08:21:32 +00:00
< script src = " js/jquery_ui/js/jquery-ui-1.10.3.custom.min.js " type = " text/javascript " ></ script >
2013-04-23 21:15:17 +00:00
2014-01-15 17:23:05 +00:00
< script src = " js/jquery.tablesorter.min.js " type = " text/javascript " ></ script >
2014-01-17 17:11:11 +00:00
< link href = " prettify/prettify.css " type = " text/css " rel = " stylesheet " />
< script src = " prettify/prettify.js " type = " text/javascript " ></ script >
2009-09-08 05:29:38 +00:00
</ head >
2014-01-17 17:11:11 +00:00
< body onload = " prettyPrint() " >
2015-12-22 15:53:45 +00:00
< ? php
2011-06-04 14:28:57 +00:00
2012-10-16 14:50:16 +00:00
if ( $isinvited && isset ( $oldid ) && ! empty ( $oldid ) && $oldid != $cuid ) {
2013-10-18 12:07:49 +00:00
echo " <div align=center><p class='alert alert-warning'> " ;
2013-03-04 17:17:00 +00:00
__ ( " Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>. " );
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
2011-03-04 12:29:37 +00:00
echo " </p></div> " ;
}
2013-09-12 13:17:04 +00:00
if ( panel_islocked () ) {
2013-10-18 09:59:03 +00:00
echo " <div align=center><p class='alert alert-warning'> " ;
2013-09-12 13:17:04 +00:00
__ ( " Panel is locked! No one can login! " );
echo " </p></div> " ;
}
2011-03-04 12:29:37 +00:00
?>
2013-07-17 08:39:21 +00:00
< div id = " global " class = " clearfix " >
2013-05-17 15:58:42 +00:00
< div id = " menu " >< ? php include_once ( " menu.php " ); ?> </div>
< div id = " content " >