Index: trunk/admin/modules/Elezioni/ele_configurazione.php
===================================================================
--- trunk/admin/modules/Elezioni/ele_configurazione.php	(revision 336)
+++ trunk/admin/modules/Elezioni/ele_configurazione.php	(revision 344)
@@ -18,5 +18,5 @@
 $aid=$_SESSION['aid'];
 $prefix=$_SESSION['prefix'];
-$currentlang=$_SESSION['lang'];
+$language=$_SESSION['lang'];
 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
 $id_cons_gen=$param['id_cons_gen'];	
@@ -31,23 +31,22 @@
 if(isset($row[0])) {$tipo_cons=$row[0];$id_cons=$row[1];} else {$tipo_cons=0; $id_cons=0;}
 
-if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do='';
+if (isset($param['do'])) $do=addslashes($param['do']); else $do='';
 if (isset($param['min'])) $min=intval($param['min']); else $min=0;
-if (isset($param['ok'])) get_magic_quotes_gpc() ? $ok=$param['ok']:$ok=addslashes($param['ok']); else $ok='';
-if (isset($param['blocco'])) get_magic_quotes_gpc() ? 
-$blocco=$param['blocco']:$blocco=addslashes($param['blocco']); else $blocco='';
-if (isset($param['tema2'])) get_magic_quotes_gpc() ? $tema2=$param['tema2']:$tema2=addslashes($param['tema2']); else $tema2='';
-if (isset($param['multicomune'])) get_magic_quotes_gpc() ? $multicomune=$param['multicomune']:$multicomune=addslashes($param['multicomune']); else $multicomune='';
-if (isset($param['fileout'])) get_magic_quotes_gpc() ? $fileout=$param['fileout']:$fileout=addslashes($param['fileout']); else $fileout='';
-if (isset($param['prefix2'])) get_magic_quotes_gpc() ? $prefix2=$param['prefix2']:$prefix2=addslashes($param['prefix2']); else $prefix2='';
-if (isset($param['adminmail'])) get_magic_quotes_gpc() ? $adminmail=$param['adminmail']:$adminmail=addslashes($param['adminmail']); else $adminmail='';
-if (isset($param['siteurl'])) get_magic_quotes_gpc() ? $siteurl=$param['siteurl']:$siteurl=addslashes($param['siteurl']); else $siteurl='';
-if (isset($param['sitename'])) get_magic_quotes_gpc() ? $sitename=$param['sitename']:$sitename=addslashes($param['sitename']); else $sitename='';
-if (isset($param['siteistat'])) get_magic_quotes_gpc() ? $siteistat=$param['siteistat']:$siteistat=addslashes($param['siteistat']); else $siteistat='';
-if (isset($param['language2'])) get_magic_quotes_gpc() ? $language2=$param['language2']:$language2=addslashes($param['language2']); else $language2='';
-if (isset($param['flash2'])) get_magic_quotes_gpc() ? $flash2=$param['flash2']:$flash2=addslashes($param['flash2']); else $flash2='';
+if (isset($param['ok'])) $ok=addslashes($param['ok']); else $ok='';
+if (isset($param['blocco'])) $blocco=addslashes($param['blocco']); else $blocco='';
+if (isset($param['tema2'])) $tema2=addslashes($param['tema2']); else $tema2='';
+if (isset($param['multicomune'])) $multicomune=addslashes($param['multicomune']); else $multicomune='';
+if (isset($param['fileout'])) $fileout=addslashes($param['fileout']); else $fileout='';
+if (isset($param['prefix2'])) $prefix2=addslashes($param['prefix2']); else $prefix2='';
+if (isset($param['adminmail'])) $adminmail=addslashes($param['adminmail']); else $adminmail='';
+if (isset($param['siteurl'])) $siteurl=addslashes($param['siteurl']); else $siteurl='';
+if (isset($param['sitename'])) $sitename=addslashes($param['sitename']); else $sitename='';
+if (isset($param['siteistat'])) $siteistat=addslashes($param['siteistat']); else $siteistat='';
+if (isset($param['language2'])) $language2=addslashes($param['language2']); else $language2='';
+if (isset($param['flash2'])) $flash2=addslashes($param['flash2']); else $flash2='';
 if (isset($param['displayerrors'])) $displayerrors=intval($param['displayerrors']); else $displayerrors='0';
 
-if (isset($param['gkey'])) get_magic_quotes_gpc() ? $gkey=$param['gkey']:$gkey=addslashes($param['gkey']); else $gkey='';
-if (isset($param['ed_user'])) get_magic_quotes_gpc() ? $ed_user=$param['ed_user']:$ed_user=addslashes($param['ed_user']); else $ed_user='';
+if (isset($param['gkey'])) $gkey=addslashes($param['gkey']); else $gkey='';
+if (isset($param['ed_user'])) $ed_user=addslashes($param['ed_user']); else $ed_user='';
 if (isset($param['googlemaps'])) $googlemaps=intval($param['googlemaps']); else $googlemaps='0';
 if (isset($param['editor'])) $editor=intval($param['editor']); else $editor='0';
@@ -61,5 +60,5 @@
 /*****************************************************/
 	function all() {
-   		global $tipo_cons,$param,$currentlang, $bgcolor1, $bgcolor2, $prefix, $prefix2, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$tema,$language,$help;
+   		global $tipo_cons,$param, $bgcolor1, $bgcolor2, $prefix, $prefix2, $dbi, $offset, $min, $id_cons,$id_cons_gen,$id_comune,$do,$tema,$language,$help;
 		global $gkey,$ed_user,$googlemaps,$editor,$tema_on;
 
