Changeset 426 for trunk/admin/admin.php
- Timestamp:
- Oct 4, 2024, 12:14:01 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/admin.php
r424 r426 149 149 catch(PDOException $e) 150 150 { 151 echo $sql ."<br>" . $e->getMessage();die();151 echo "<br>" . $e->getMessage();die(); 152 152 } 153 153 $sql = "use $dbname"; … … 292 292 $sth->execute(); 293 293 } 294 /* $sth = $dbi->prepare("select aggiornamento from ".$prefix."_config");295 $sth->execute();296 list($agg)=$sth->fetch(PDO::FETCH_NUM);297 $_SESSION['aggiornamento']=$agg;*/298 ###########299 $righe='';300 if(phpversion()<5.6) $host="http://80.211.143.127";301 else $host="https://trac.eleonline.it";302 $headers=get_headers("$host/ele3/changeset/");303 $testurl=strlen($headers[0])>0?true:false;304 if(!$testurl){305 $newrev=0;306 }else{307 $file = file("$host/ele3/changeset/");308 $cntFile = count($file);309 $fine=0;310 $currentLine=0;311 312 foreach ($file as $line_num => $line) {313 if(strpos($line,'<title>') ) {$fine=1; continue;}314 if ($fine){315 $newrev=(int) filter_var($line, FILTER_SANITIZE_NUMBER_INT);316 break;317 }318 }319 }320 294 include('versione.php'); 321 $myrev=intval(substr($versione,-4,4));322 # $_SESSION['aggiornamento']=$agg;323 $_SESSION['localrev']=$myrev;324 $_SESSION['remoterev']=$newrev;325 unset($file);326 # if($agg) include('aggiornamento.php');327 #die("local: ".$_SESSION['localrev'].$_SESSION['remoterev']);328 295 } 329 296 if(!isset($_SESSION['BASE'])) $_SESSION['BASE']=substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['REQUEST_URI'], "/")-16); … … 509 476 $ref=$ref."&language=$language"; 510 477 $ref.="&msglogout=$msglogout"; 511 #$_SESSION=array(); 512 if (session_status() == PHP_SESSION_ACTIVE) 513 session_destroy(); 514 session_cache_expire (0); 478 $_SESSION=array(); 479 480 session_regenerate_id(); 481 session_write_close(); 482 session_cache_expire (0); 515 483 Header($ref); 516 484
Note:
See TracChangeset
for help on using the changeset viewer.