Changes in trunk/client/modules.php [80:154]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules.php
r80 r154 1 1 <?php 2 3 2 4 3 /************************************************************************/ … … 12 11 13 12 // Additional security (Union, CLike, XSS) 14 15 13 // We want to use the function stripos, 16 14 // but thats only available since PHP5. … … 92 90 //////////////////////// 93 91 94 include("config.php"); 92 @require_once("config.php"); 93 # verifica se effettuata la configurazione 94 if(empty($dbname)) { 95 die("<html><body><div style=\"text-align:center\"><br /><br /><img src=\"modules/Elezioni/images/logo.jpg\" alt=\"Eleonline\" title=\"Eleonline\"><br /><br /><strong>Sembra che <a href='http://www.eleonline.it' title='Eleonline'>Eleonline</a> non sia stato ancora installato.<br /><br />Puoi procedere <a href='../install/index.php'>cliccando qui</a> per iniziare l'installazione</strong></div></body></html>"); 96 } 97 95 98 96 99 … … 105 108 } 106 109 mysql_query("SET NAMES 'utf8'", $dbi); 110 111 # protezione csrf ottobre 2012 - by l.apolito 112 if (file_exists("inc/csrf-magic/csrf-magic.php")) { 113 include_once 'inc/csrf-magic/csrf-magic.php'; 114 } 115 116 117 118 119 107 120 108 121 # carica i parametri di default sulla tabella … … 220 233 $file=(isset($_GET['file'])) ? htmlentities($_GET['file']):"index"; 221 234 $name=(isset($_GET['name'])) ? htmlentities($_GET['name']):"Elezioni"; 235 $op=(isset($_GET['op'])) ? htmlentities($_GET['op']):"gruppo"; 222 236 if (!isset($_GET['op'])) $_GET['op']="gruppo"; 223 237
Note:
See TracChangeset
for help on using the changeset viewer.