source: alternc/branches/stable-1.0/bureau/admin/head.php @ 3036

Revision 3036, 2.7 KB checked in by benjamin, 4 years ago (diff)

fixing UTF-8 charset issue on AlternC

Line 
1<?php
2/*
3 $Id: head.php,v 1.4 2005/05/03 14:36:34 anarcat Exp $
4 ----------------------------------------------------------------------
5 AlternC - Web Hosting System
6 Copyright (C) 2002 by the AlternC Development Team.
7 http://alternc.org/
8 ----------------------------------------------------------------------
9 Based on:
10 Valentin Lacambre's web hosting softwares: http://altern.org/
11 ----------------------------------------------------------------------
12 LICENSE
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License (GPL)
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 GNU General Public License for more details.
23
24 To read the license please visit http://www.gnu.org/copyleft/gpl.html
25 ----------------------------------------------------------------------
26 Original Author of file: Benjamin Sonntag
27 Purpose of file: Main header of all html files
28 ----------------------------------------------------------------------
29*/
30if (!$charset) $charset="UTF-8";
31@header("Content-Type: text/html; charset=$charset");
32?>
33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
34<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
35<head>
36<title>Bureau</title>
37<link rel="stylesheet" href="styles/style.css" type="text/css" />
38<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
39<script type="text/javascript" src="js/alternc.js"></script>
40<script src="js/jquery.min.js" type="text/javascript"></script>
41<script src="js/jquery_ui/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
42<?php
43$lang_date_picker="js/jquery_ui/js/jquery.ui.datepicker-".substr($lang,0,2).".js";
44if (file_exists($lang_date_picker)) 
45  echo "<script src=\"$lang_date_picker\" type=\"text/javascript\"></script>";
46?>
47<link href="js/jquery_ui/css/smoothness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
48</head>
49<body>
50<?
51$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:'');
52$isinvited=false;
53
54if ($admin->enabled) $isinvited=true;
55
56if ($oldid && $oldid!=$cuid) {
57  $isinvited=true;
58  echo "<div align=center><p class='error'>";
59  __("Administrator session. you may <a href='adm_login.php'>return to your account</a> or <a href='adm_cancel.php'>cancel this feature</a>");
60  echo "</p></div>";
61}
62?>
63<div id="global">
64<table>
65<tr>
66<td id="tdMenu"><div id="menu"><?php include_once("menu.php"); ?></div></td>
67<td id="tdContent"><div id="content">
Note: See TracBrowser for help on using the repository browser.