Changeset 31 for trunk/admin
- Timestamp:
- Mar 18, 2010, 7:22:07 AM (15 years ago)
- Location:
- trunk/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r23 r31 278 278 $lang=strlen($_SESSION['lang'])==2 ? $_SESSION['lang']: $language; 279 279 if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); 280 if (!isset($id_comune)) $id_comune=0; 280 281 session_regenerate_id(); 281 282 $id_ses=session_id(); -
trunk/admin/modules/Elezioni/ele_configurazione.php
r2 r31 168 168 } 169 169 #displayerrors='$displayerrors', 170 $result = mysql_query("update ".$prefix."_config set testata='$stemmablob', nome_testata='$stemmanome', blocco='$blocco', multicomune='$multicomune', language='$language2', siteistat='$siteistat', adminmail='$adminmail', sitename='$sitename', site_logo='$site_logo', siteurl='$siteurl', flash='$flash2', tema='$tema2',gkey='$gkey',ed_user='$ed_user',googlemaps='$googlemaps',editor='$editor',tema_on='$tema_on' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error()); 170 #per il momento non Ú usato: , site_logo='$site_logo' 171 $result = mysql_query("update ".$prefix."_config set testata='$stemmablob', nome_testata='$stemmanome', blocco='$blocco', multicomune='$multicomune', language='$language2', siteistat='$siteistat', adminmail='$adminmail', sitename='$sitename', siteurl='$siteurl', flash='$flash2', tema='$tema2',gkey='$gkey',ed_user='$ed_user',googlemaps='$googlemaps',editor='$editor',tema_on='$tema_on' ", $dbi) || die("Errore di aggiornamento dei dati!".mysql_error()); 171 172 if ($tema2=='facebook') 172 173 $_SESSION['tema']=$tema2; -
trunk/admin/modules/Elezioni/ele_widget.php
r2 r31 47 47 ############# controllo dei widget 48 48 make_db_widget(); // crea tabella se non esiste 49 49 $tlist=''; 50 50 $path = "../client/modules/Elezioni/blocchi"; 51 51 $handle=opendir($path); -
trunk/admin/modules/Elezioni/restore.php
r2 r31 20 20 include("modules/Elezioni/ele.php"); 21 21 ele(); 22 if (!is_uploaded_file($_FILES['datafile']['tmp_name'])) 22 if (isset($_FILES['datafile']['tmp_name'])) $updfile=$_FILES['datafile']['tmp_name']; else $updfile=''; 23 if (!is_uploaded_file($updfile)) 24 # if (!is_uploaded_file($_FILES['datafile']['tmp_name'])) 23 25 # if (file_exists($datafile)) 24 26 { … … 52 54 $currentLine++; 53 55 while($currentLine <= $cntFile ){ 54 $appo=substr($arrFile[$currentLine],1,-2); 55 if ($appo==$tabs[($x+1)]){ $x++; break;} 56 if(isset($arrFile[$currentLine])) 57 $appo=substr($arrFile[$currentLine],1,-2); 58 else $appo=''; 59 if(isset($tabs[($x+1)])) 60 if ($appo==$tabs[($x+1)]){ $x++; break;} 61 elseif($appo=='') { $x++; break;} 56 62 $conta[$x]++; 57 63 $currentLine++; … … 64 70 $y=0; 65 71 while( $currentLine <= $cntFile ){ 66 $tab=substr($arrFile[$currentLine],1,-2); 67 $conf=$tabs[$x]; 72 if(isset($arrFile[$currentLine])) 73 $tab=substr($arrFile[$currentLine],1,-2); 74 else $tab=''; 75 if(isset($tabs[$x])) 76 $conf=$tabs[$x]; 77 else $conf=''; 68 78 if ($tab==$conf){ 69 79 $currentLine++; 70 80 while($currentLine <= $cntFile ){ 71 $appo=substr($arrFile[$currentLine],1,-2); 72 if ($appo==$tabs[($x+1)]){ $x++; break;} 81 # $appo=substr($arrFile[$currentLine],1,-2); 82 # if ($appo==$tabs[($x+1)]){ $x++; break;} 83 if(isset($arrFile[$currentLine])) 84 $appo=substr($arrFile[$currentLine],1,-2); 85 else $appo=''; 86 if(isset($tabs[($x+1)])) 87 if ($appo==$tabs[($x+1)]){ $x++; break;} 88 elseif($appo=='') { $x++; break;} 89 if(isset($arrFile[$currentLine])) 73 90 $test=explode(':',$arrFile[$currentLine]); if(!is_array($test)) {die("errore di import<br>");} 74 91 $valori='';
Note:
See TracChangeset
for help on using the changeset viewer.