- Timestamp:
- Mar 19, 2010, 5:55:43 PM (15 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r31 r35 16 16 define('ADMIN_FILE', true); 17 17 #$LIMITE=3; //fascia di separazione del maggioritario (15.000 abitanti) 18 18 # tempo di sessione: ini_set('session.gc_maxlifetime','3600'); 19 19 20 20 // Adattamento variabili superglobal -
trunk/admin/modules/Elezioni/importa.php
r2 r35 54 54 foreach ($ar_lista as $rigalista){ 55 55 $oldidl=0; 56 $okl=0; 56 57 foreach($rigalista as $key=>$campo){ 57 58 if ($key==0) $valori="'$idcns',"; … … 79 80 80 81 foreach ($ar_candi as $rigacandi){ 82 $okc=0; 81 83 foreach($rigacandi as $key=>$campo){ 82 84 if (count($rigacandi)!=8) {unset($valori);continue;} … … 135 137 $currentLine++; 136 138 while($currentLine <= $cntFile ){ 137 $appo=substr($arrFile[$currentLine],1,-2); 139 # $appo=substr($arrFile[$currentLine],1,-2); 140 if(isset($arrFile[$currentLine])) 141 $appo=substr($arrFile[$currentLine],1,-2); 142 else $appo=''; 138 143 if (isset($tabs[($x+1)]) and $appo==$tabs[($x+1)]){ $x++;$conf=$tabs[$x];$currentLine++; continue;} 139 $test=explode(':',$a rrFile[$currentLine]); if(!is_array($test)) {die("errore di import<br>");}144 $test=explode(':',$appo); if(!is_array($test)) {die("errore di import<br>");} 140 145 foreach($test as $key=>$val) #echo "$key : $campo ($conf==$prefix._ele_gruppo)"; die(); 141 146 if ($conf==$prefix."_ele_gruppo")
Note:
See TracChangeset
for help on using the changeset viewer.