Changeset 426 for trunk/admin/modules/Elezioni/ele.php
- Timestamp:
- Oct 4, 2024, 12:14:01 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r424 r426 66 66 function ele() { 67 67 68 global $espandi, $aid, $bgcolor1, $bgcolor2,$bgcolor5, $prefix, $dbi, $offset, $min,$descr_cons, $id_cons_gen,$tipo_cons,$genere,$op,$id_comune,$perms,$id_cons,$votog,$votol,$votoc,$votocirc,$tema,$fascia,$limite,$BACKUP ;68 global $espandi, $aid, $bgcolor1, $bgcolor2,$bgcolor5, $prefix, $dbi, $offset, $min,$descr_cons, $id_cons_gen,$tipo_cons,$genere,$op,$id_comune,$perms,$id_cons,$votog,$votol,$votoc,$votocirc,$tema,$fascia,$limite,$BACKUP,$versione; 69 69 70 70 include ("header.php"); … … 177 177 echo "<hr>"; 178 178 } 179 $newrev=$_SESSION['remoterev']; 179 if(isset($_SESSION['remoterev'])) { 180 $newrev=$_SESSION['remoterev']; 181 } else { 182 $rev=0; 183 if ($stream = fopen('http://mail.eleonline.it/version/risposta.php', 'r')) { 184 $rev= stream_get_contents($stream, 4); 185 fclose($stream); 186 } 187 $newrev=(int) filter_var($rev, FILTER_SANITIZE_NUMBER_INT); 188 $_SESSION['remoterev']=$newrev; 189 $myrev=intval(substr($versione,-4,4)); 190 $_SESSION['localrev']=$myrev; 191 192 193 } 180 194 $myrev=$_SESSION['localrev']; 181 195 if($newrev==$myrev or $newrev==0) echo "<a href=\"admin.php?op=aggiorna&id_cons_gen=$id_cons_gen\">$bullet"._AGGIORNA."</a><br>"; … … 314 328 } 315 329 316 317 330 ?>
Note:
See TracChangeset
for help on using the changeset viewer.