Changeset 31 for trunk/admin/modules/Elezioni/restore.php
- Timestamp:
- Mar 18, 2010, 7:22:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.