-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.php
More file actions
31 lines (29 loc) · 999 Bytes
/
Copy pathshow.php
File metadata and controls
31 lines (29 loc) · 999 Bytes
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
<?php
require_once ("config.php");
$filename = $_GET['img'];
$size = getimagesize($filename);
$select = mysqli_query($dbcnx, "UPDATE photo SET view_count = view_count+1 WHERE big = '$filename'");
if (!$select)
{
exit ('There is a problem');
}
?>
<html>
<head>
<title>Просмотр фотографии</title>
<meta http-equiv="imagetoolbar" content="no">
<style>
table{font-size: 12px; font-family: Arial, Helvetica, sans-serif; background-color: #F3F3F3;}
</style>
</head>
<body marginheight="0" marginwidth="0" rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
<table height="100%" cellpadding="0" cellspacing="0" width="100%" border="1">
<tr>
<td height="100%" valign="middle" align="center">
Дождитесь загрузки изображения
<div style="position: absolute; top: 0px; left: 0px"><img src="<? echo $filename;?>" border="0" <?= $size[3] ?>></div>
</td>
</tr>
</table>
</body>
</html>