-
Notifications
You must be signed in to change notification settings - Fork 8
/
fl.php
113 lines (92 loc) · 3.74 KB
/
fl.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<html>
<head>
<? /*
// -----------------------------------------
// + Àâòîð ñêðèïòà: VCP +
// + E-mail àâòîðà: vcp_da@obukhov.net +
// + URL àâòîðà: http://vcp.lafox.com.ua +
// ----------------------------------------
*/ ?>
<? include ('config.inc.php'); ?>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<? echo"<title>$title</title>"; ?>
<meta name="author" content="VCP">
<meta name="generator" content="VCP_Editor">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<FORM ENCTYPE="multipart/form-data" ACTION="<?php echo"$PHP_SELF"; ?>" METHOD="POST">
<table border="1" cellspacing="0" width="353" bordercolordark="white" bordercolorlight="black">
<tr>
<td width="343">
<table width="353" cellpadding="0" cellspacing="0" border="1" bordercolor="white" bordercolordark="white" bordercolorlight="white">
<tr>
<td width="128" height="24" bgcolor="#F7F7F7">
<p><font size="2" face="Verdana" color="#CC0000">Âûáîð ôàéëà:</font></p>
</td>
<td width="225" height="24" bgcolor="#F7F7F7">
<font size="2" face="Verdana"> <INPUT NAME="File" TYPE="file" style="font-family:Verdana; font-size:11; color:rgb(0,0,102); border-style:groove;" onMouseOver="style.color='#FF6600'" onMouseOut="style.color='#000066'"></font>
</td>
</tr>
<tr>
<td width="128" bgcolor="#F7F7F7">
<p><font face="Verdana" size="2" color="#CC0000">URL(ññûëêà):</font></p>
</td>
<td width="225" bgcolor="#F7F7F7">
<font size="2" face="Verdana" color="#CC0000"> <input type="text" name="url" value="http://" style="font-family:Verdana; font-size:11; color:rgb(0,0,102); border-style:groove;" onMouseOver="style.color='#FF6600'" onMouseOut="style.color='#000066'"></font>
</td>
</tr>
<tr>
<td width="128" bgcolor="#F7F7F7">
<p><font size="2" face="Verdana" color="#CC0000">Alt (Ïîäñêàçêà):</font></p>
</td>
<td width="225" bgcolor="#F7F7F7">
<p> <input type="text" name="alt" style="font-family:Verdana; font-size:11; color:rgb(0,0,102); border-style:groove;" onMouseOver="style.color='#FF6600'" onMouseOut="style.color='#000066'"></p>
</td>
</tr>
<tr>
<td width="128" bgcolor="#F7F7F7">
<p><font size="2" face="Verdana" color="#CC0000">Äåéñòâèå:</font></p>
</td>
<td width="225" bgcolor="#F7F7F7">
<font size="2" face="Verdana"> <INPUT TYPE="submit" VALUE="Îòïðàâèòü" style="font-family:Verdana; font-size:11; color:rgb(0,0,102); background-color:rgb(212,208,200); border-style:groove;" onMouseOver="style.color='#FF6600'" onMouseOut="style.color='#000066'" ></font>
</td>
</tr>
<tr>
<td width="128" height="23" bgcolor="#F7F7F7">
<p><font size="2" color="#CC0000" face="Verdana">Îïèñàíèå:</font></p>
</td>
<td width="225" height="23" valign="bottom" bgcolor="#F7F7F7">
<font size="2" color="#FF6600" face="Verdana"><?php
/* Êîä êîòîðûé âûâîäèò ñâîéñòâà ôàéëà */
if ($File&& $File !== "none") {
if ( $File_type == "image/pjpeg" || $File_type == "image/x-png" || $File_type == "image/gif" || $File_type == "image/jpeg" ) {
/* Ýòîò êîä çàïåùÿåò ïåðåçàïèñü */
if (file_exists("$direct/$File_name")):
echo "<b>Òàêîé ôàéë óæå ñóùåñòâóåò.</b>";
exit;
endif;
$optdirekt = "$direct/$File_name";
echo "<b>Ôàéë çàïèñàí!</b><BR>";
echo "Íàçâàíèå ôàéëà: $File_name<BR>";
echo "Ðàçìåð ôàéëà: $File_size<BR>";
echo "Òèï ôàéëà: $File_type";
/* Êîä êîïèðîâàíèÿ */
copy ($File, $optdirekt) or die ("No load....");
/* Êîä äîáàâëÿþùèé â áàçó êàðòèíêó */
$open=fopen("base.txt","a") or die ("Íå óäàëîñü äîáàâèòü â áàçó êîä ...");
fwrite($open,"<a href=\"$url\"><img src=\"$optdirekt\" alt=\"$alt\" border=\"0\"></a>\n");
fclose($open);
}
else print "<font face=verdana size=2 color=#FF6600><b>Çàëèâàþòñÿ</b> .jpge | .gif | .png</font\n";
}
?>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</FORM>
</body>
</html>