-
Notifications
You must be signed in to change notification settings - Fork 1
/
enlarge_pic.php
44 lines (38 loc) · 1.07 KB
/
enlarge_pic.php
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
35
36
37
38
39
40
41
42
43
<?php
/**
* Allomani E-Store v1.0
*
* @package Allomani.E-Store
* @version 1.0
* @copyright (c) 2006-2018 Allomani , All rights reserved.
* @author Ali Allomani <[email protected]>
* @link http://allomani.com
* @license GNU General Public License version 3.0 (GPLv3)
*
*/
?>
<HEAD>
<script language='javascript'>
var NS = (navigator.appName=="Netscape")?true:false;
function FitPic() {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = document.images[0].width - iWidth;
iHeight = document.images[0].height - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
};
</script>
<?
if(!strpos(strtolower($_GET['url']),"javascript")){
print "<title>".htmlspecialchars($_GET['title'])."</title>
</HEAD>
<BODY onload='FitPic();' topmargin=\"0\"
marginheight=\"0\" leftmargin=\"0\" marginwidth=\"0\">";
print "<img src=\"" . htmlspecialchars(strip_tags($_GET['url'])) . "\" border=0>
</BODY>
</HTML>";
}else{
die();
}
?>