57,7 → 57,6 |
function getElement($uid){ |
|
// Controle detournement utilisateur |
session_start(); |
$this->controleUtilisateur($uid[0]); |
|
if (!isset($uid[1]) || $uid[1]=="" || $uid[1]=="all" ) { |
141,8 → 140,8 |
} |
|
if ($obs['date_observation']!="0000-00-00 00:00:00") { |
list($year,$month,$day)= split ('-',$obs['date_observation']); |
list($day)= split (' ',$day); |
list($year,$month,$day)= explode('-',$obs['date_observation']); |
list($day)= explode(' ',$day); |
$obs['date_observation']=$day."/".$month."/".$year; |
} |
else { |
176,7 → 175,7 |
} |
|
if ($url_miniature!='') { |
list($debut,$ext)=split("\.",basename($url_miniature)); |
list($debut,$ext)=explode("\.",basename($url_miniature)); |
$temp = fopen($tempfn, "w"); |
$buf=file_get_contents($url_miniature); |
fwrite($temp,$buf); |