source: trunk/admin/header.php@ 243

Last change on this file since 243 was 239, checked in by luc, 9 years ago

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

File size: 1.7 KB
Line 
1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Roberto Gigli & Luciano Apolito */
5/* http://www.eleonline.it */
6/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
7/************************************************************************/
8
9
10if (!defined('ADMIN_FILE')) {
11 die ("You can't access this file directly...");
12}
13
14#include("config.php");
15#$dbi = mysql_connect($dbhost, $dbuname, $dbpass);
16#mysql_select_db($dbname);
17 if (isset($param['language'])) {
18 $_SESSION['lang']=substr($param['language'],0,2);
19 $lang=$_SESSION['lang'];
20 }
21 elseif (strlen($_SESSION['lang'])==2) $lang=$_SESSION['lang'];
22 else $lang=$language;
23if ($_SESSION['tema']=='facebook')
24 $tema=$_SESSION['tema'];
25else $tema='default';
26include("temi/$tema/index.php");
27include("modules/Elezioni/language/lang-$lang.php");
28
29$bgcolor1="#b0b0b0";
30function head() {
31 global $csv,$tema;
32 echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
33 echo "<html>\n";
34 echo "<head>\n";
35 echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
36 echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
37 echo "<title>Eleonline - Elezioni on line</title>\n";
38 echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
39 echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
40 echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
41 if (!$csv)testata($tema);
42
43
44}
45
46
47head();
48
49
50?>
Note: See TracBrowser for help on using the repository browser.