source: trunk/client/modules/Elezioni/evvai.php@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 1.2 KB
Line 
1<?php
2
3/************************************************************************/
4/* Eleonline - Raccolta e diffusione dei dati elettorali */
5/* by Luciano Apolito & Roberto Gigli */
6/* http://www.eleonline.it */
7/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
8/************************************************************************/
9
10if (!defined('MODULE_FILE')) {
11 die ("You can't access this file directly...");
12}
13if (!isset($filename)) { Header("Location: index.php"); }
14$blocco=0;
15include("header.php");
16$filename="$filename.html";
17
18// verifica se la pagina e' un html
19 if(substr($filename,-4)!=".htm" && substr($filename,-5)!=".html"){
20 echo "Autorizzazione negata...";
21 echo "<hr>"._GOBACK."";
22
23 }else {
24 // verifica link pagine esterne e risalita path
25
26 if( substr($filename,0,1)!="." && substr($filename,0,4)!="http" ){
27 //echo substr($file,-4);
28 include ("pagine/$filename");
29 echo "<hr>"._GOBACK."";
30
31 }
32 else {
33 echo "Autorizzazione negata...";
34 echo "<hr>"._GOBACK."";
35
36 }
37}
38
39CloseTable();
40include("footer.php");
41?>
Note: See TracBrowser for help on using the repository browser.