|
@@ -388,6 +388,12 @@
|
|
|
|
|
|
unlink($curFile);
|
|
unlink($curFile);
|
|
|
|
|
|
|
|
+ $curFileThumb = $curPath . DIRECTORY_SEPARATOR . "thumbs" . DIRECTORY_SEPARATOR . $real_param1;
|
|
|
|
+
|
|
|
|
+ if (is_readable($curFileThumb)) {
|
|
|
|
+ unlink($curFileThumb);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -550,11 +556,20 @@
|
|
echo("WARNING: destination already exists.<br>");
|
|
echo("WARNING: destination already exists.<br>");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
copy($tmpFullPath, $destFullPath);
|
|
copy($tmpFullPath, $destFullPath);
|
|
|
|
|
|
chmod($destFullPath, 0766);
|
|
chmod($destFullPath, 0766);
|
|
|
|
|
|
|
|
+ // Creating thumb file
|
|
|
|
+ if (is_readable($curPath . DIRECTORY_SEPARATOR . "thumbs")) {
|
|
|
|
+ $destFullPath = $curPath . DIRECTORY_SEPARATOR . "thumbs" . DIRECTORY_SEPARATOR . $destFileName;
|
|
|
|
+
|
|
|
|
+ copy($tmpFullPath, $destFullPath);
|
|
|
|
+
|
|
|
|
+ chmod($destFullPath, 0766);
|
|
|
|
+ }
|
|
|
|
+
|
|
// Updating history..
|
|
// Updating history..
|
|
//$output = [];
|
|
//$output = [];
|
|
//$output[] = $destFileName . " " . "uploaded" . "\n";
|
|
//$output[] = $destFileName . " " . "uploaded" . "\n";
|
|
@@ -654,6 +669,10 @@ function showImages() {
|
|
$ipos = mb_strripos($fsEntry, "/");
|
|
$ipos = mb_strripos($fsEntry, "/");
|
|
$title = substr($fsEntry, $ipos+1);
|
|
$title = substr($fsEntry, $ipos+1);
|
|
|
|
|
|
|
|
+ if ($title === "thumbs") {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
$cdate = date("d-m-Y", filectime($fsEntry));
|
|
$cdate = date("d-m-Y", filectime($fsEntry));
|
|
|
|
|
|
echo "<table style='float:left;width:235px;height:200px;margin-top:5px;margin-right:4px;border:0px solid #D2D2D2'>";
|
|
echo "<table style='float:left;width:235px;height:200px;margin-top:5px;margin-right:4px;border:0px solid #D2D2D2'>";
|
|
@@ -666,6 +685,12 @@ function showImages() {
|
|
/*
|
|
/*
|
|
* Display images
|
|
* Display images
|
|
*/
|
|
*/
|
|
|
|
+ if (is_readable($path . "/thumbs")) {
|
|
|
|
+ $pattern = $path . "/thumbs/*";
|
|
|
|
+ } else {
|
|
|
|
+ $pattern = $path . "/*";
|
|
|
|
+ }
|
|
|
|
+
|
|
$aImages = glob($pattern);
|
|
$aImages = glob($pattern);
|
|
|
|
|
|
sort($aImages);
|
|
sort($aImages);
|