Changeset 427 for trunk/admin/modules/Elezioni/ele.php
- Timestamp:
- Oct 5, 2024, 10:28:06 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r426 r427 169 169 </b></font></font> 170 170 </td>"; 171 echo "<td valign=\"top\" align=\"left\" width=\"150\">"; 171 172 if(!$BACKUP){ 172 echo "<td valign=\"top\" align=\"left\" width=\"150\">";173 173 echo "<a href=\"admin.php?op=configurazione&id_cons_gen=$id_cons_gen\">$bullet"._CONFIGURAZIONE."</a><br>"; 174 174 if($op=="configurazione" || $op=="widget" || $op=="plugin"){ … … 177 177 echo "<hr>"; 178 178 } 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 } 194 $myrev=$_SESSION['localrev']; 195 if($newrev==$myrev or $newrev==0) echo "<a href=\"admin.php?op=aggiorna&id_cons_gen=$id_cons_gen\">$bullet"._AGGIORNA."</a><br>"; 196 else echo "<a href=\"admin.php?op=aggiorna&id_cons_gen=$id_cons_gen\">$bullet_red<b>"._AGGIORNA."</b></a><br>"; 179 } 180 if(isset($_SESSION['remoterev'])) { 181 $newrev=$_SESSION['remoterev']; 182 } else { 183 $rev=0; 184 if ($stream = fopen('http://mail.eleonline.it/version/risposta.php', 'r')) { 185 $rev= stream_get_contents($stream, 4); 186 fclose($stream); 187 } 188 $newrev=(int) filter_var($rev, FILTER_SANITIZE_NUMBER_INT); 189 $_SESSION['remoterev']=$newrev; 190 $myrev=intval(substr($versione,-4,4)); 191 $_SESSION['localrev']=$myrev; 192 193 194 } 195 $myrev=$_SESSION['localrev']; 196 if($newrev==$myrev or $newrev==0) echo "<a href=\"admin.php?op=aggiorna&id_cons_gen=$id_cons_gen\">$bullet"._AGGIORNA."</a><br>"; 197 else echo "<a href=\"admin.php?op=aggiorna&id_cons_gen=$id_cons_gen\">$bullet_red<b>"._AGGIORNA."</b></a><br>"; 198 if(!$BACKUP){ 197 199 echo "<a href=\"admin.php?op=confconsiglio&id_cons_gen=$id_cons_gen\">$bullet"._CONFCONS."</a> 198 200 </td></tr><tr align=\"left\" bgcolor=\"$bgcolor1\"><td> … … 204 206 <a href=\"admin.php?op=associazioni&id_cons_gen=$id_cons_gen\">$bullet"._INSCOMUNE."</a>"; 205 207 }else{ 206 echo "</t r><tr align=\"left\" bgcolor=\"$bgcolor1\"><td valign=\"top\" align=\"left\" width=\"150\" rowspan=\"2\">";208 echo "</td></tr><tr align=\"left\" bgcolor=\"$bgcolor1\"><td valign=\"top\" align=\"left\" width=\"150\" rowspan=\"2\">"; 207 209 echo "<a href=\"admin.php?op=aggcons&id_cons_gen=$id_cons_gen\">$bullet"._AGGDATI."</a>"; 208 210 echo "</td></tr><tr><td>";
Note:
See TracChangeset
for help on using the changeset viewer.