-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRemoveImage.php
More file actions
34 lines (33 loc) · 1.11 KB
/
Copy pathRemoveImage.php
File metadata and controls
34 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?
//Include Common Files @1-5471E0F2
define("RelativePath", ".");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");
$dir = "temp";
$removeImage = @unlink("./$imagename");
if ($removeImage) {
$out = "<HTML>\n";
$out .= "<HEAD>\n";
$out .= "<script language=\"JavaScript\">\n";
$out .= "<!--\n";
$out .= "function newDone() {\n";
$out .= "opener.RemoveImage" . $ID . "();\n";
//$out .= "opener.document.images[\"$which\"].src = \"$img\";\n";
//$out .= "opener.document.items.$whichhid.value = \"$img\";\n";
//$out .= "opener.document.images[\"$which\"].height = $nh;\n";
//$out .= "opener.document.images[\"$which\"].width = $nw;\n";
$out .= "window.close();\n";
$out .= "}\n";
$out .= "// -->\n";
$out .= "</script>\n";
$out .= "</HEAD>\n";
$out .= "<BODY onLoad=\"newDone()\">\n";
$out .= "</BODY>\n";
$out .= "</HTML>\n";
print $out;
} else {
print "<b>No File to Remove</b>";
}
?>