Photo Station
Share your photo with your friends and family

Upload Manage

%UPLOAD_DATA%
'; //Scan all image within dir if (isset($_GET['folder']) && $_GET['folder'] != ""){ $files = glob("storage/".$_GET['folder'].'/*.{jpg,jpeg,png,gif}', GLOB_BRACE); }else{ $files = glob('uploads/*.{jpg,jpeg,png,gif}', GLOB_BRACE); } //Sort the file accordingly if (isset($_GET['sort']) && $_GET['sort'] != ""){ $sortmode = $_GET['sort']; if ($_GET['sort'] = 'reverse'){ rsort($files); } }else{ $sortmode = ""; sort($files); } $count = 0; $path2name = []; foreach($files as $file) { if ($keyword != ""){ //There are set keyword for search $ext = pathinfo($file, PATHINFO_EXTENSION); if(substr(basename($file),0,6) === "inith"){ $filename = str_replace("." . $inith,"",str_replace("inith","",basename($file))); $filename = hex2bin($filename); }else{ $filename = basename($file); } if (strpos(strtolower($filename),strtolower($keyword)) !== False){ //echo $file . "
"; $box = str_replace("%FILE_PATH%",$file,$template); $box = str_replace("%UPLOAD_DATA%",$filename,$box); $box = str_replace("%IMGAGE_PATH%",$file,$box); echo $box; $count += 1; array_push($path2name,[$file,$filename . "." .$ext]); } }else{ $ext = pathinfo($file, PATHINFO_EXTENSION); if(substr(basename($file),0,6) === "inith"){ $filename = str_replace("." . $inith,"",str_replace("inith","",basename($file))); $filename = hex2bin($filename); }else{ $filename = basename($file); } //echo $file . "
"; $box = str_replace("%FILE_PATH%",$file,$template); $box = str_replace("%UPLOAD_DATA%",$filename,$box); $box = str_replace("%IMGAGE_PATH%",$file,$box); echo $box; $count += 1; array_push($path2name,[$file,$filename. "." .$ext]); } } if ($count == 0){ //No result found. $box = str_replace("%FILE_PATH%","img/no_img_found.png",$template); $uploadmsg = "
Upload
"; $box = str_replace("%IMGAGE_PATH%","img/no_img_found.png",$box); $box = str_replace("%UPLOAD_DATA%",$uploadmsg,$box); echo $box; } ?>

ArOZ Online Beta Photo Station
CopyRight IMUS Laboratory, 2016-2020
You are using PHP , Recommmend version was >=70404