Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? include_once("tlg_kutup/inc.php");?> <? function pDp ($key, $postmu=true, $temiz..

Decoded Output download

<? include_once("tlg_kutup/inc.php");?> 
<? 
 
 
	function pDp ($key, $postmu=true, $temizle=true, $bosu = null) { 
		$donecek = ""; 
 
		if($temizle){ 
			if($postmu){ 
				$donecek = isset($_POST[$key])?$_POST[$key]:$bosu;  
				$donecek = addslashes(htmlspecialchars($donecek));				 
			}else{ 
				$donecek = isset($_GET[$key])?$_GET[$key]:$bosu;  
				$donecek = addslashes(htmlspecialchars($donecek)); 
			}			 
		}else{ 
			if($postmu){ 
				$donecek = isset($_POST[$key])?$_POST[$key]:$bosu; 
			}else{ 
				$donecek = isset($_GET[$key])?$_GET[$key]:$bosu; 
			}	 
		} 
		 
		$donecek = str_replace("eval","",$donecek); 
		$donecek = str_replace("script","",$donecek); 
		 
		return $donecek; 
	} 
 
	 
	$TLGdil = pDp("lng",false,true,"tr-TR"); 
	if($TLGdil!="tr-TR"){ 
		$sayfa = pDp("page",false,true,"home-page"); 
	}else{ 
		$sayfa = pDp("page",false,true,"ana-sayfa"); 
	} 
	$der = pDp("d",false,true,"0"); 
	$on = ""; 
	for($i=0;$i<$der;$i++){ 
		$on .= "../"; 
	} 
 
  if($TLGdil=="tr-TR"){ 
    define("SITE_BASLIK","AYFROST Dondurulmu Gda"); 
    define("SITE_ICERIK_KOD","utf-8"); 
    define("SITE_ANAHTAR_KELIMELER","dondurulmu gda, katksz, organik, taze, balk, sebze, karides, bezelye, mezgit, somon, soya, yemek tarifleri, ilenmemi, steamfresh, msr, lezzet, lezzetibol"); 
    define("SITE_ICERIK_BILGISI","Taze dondurulmu, % 100 doal ve katksz rnler. IQF teknolojisi. Dondurulmu gda bilgileri."); 
  }else{ 
    define("SITE_BASLIK","AYFROST Frozen Foods"); 
    define("SITE_ICERIK_KOD","utf-8"); 
    define("SITE_ANAHTAR_KELIMELER","dondurulmu gda, katksz, organik, taze, balk, sebze, karides, bezelye, mezgit, somon, soya, yemek tarifleri, ilenmemi, steamfresh, msr, lezzet, lezzetibol"); 
    define("SITE_ICERIK_BILGISI","Taze dondurulmu, % 100 doal ve katksz rnler. IQF teknolojisi. Dondurulmu gda bilgileri."); 
  } 
 
 
	function KlasorOku($adi){ 
		global $sayfa,$TLGdil; 
		$yolBasi = str_replace("index.php",$TLGdil. DIRECTORY_SEPARATOR ,__FILE__); 
 
		$bilgiler = array(); 
 
 
		if ($handle = opendir($yolBasi.$adi)) { 
 
			$sayac = 0; 
			while (false !== ($file = readdir($handle))) { 
 
				if(strlen($file)>4){ 
					$file_icerik = file_get_contents($yolBasi.$adi. DIRECTORY_SEPARATOR .$file, true); 
					$bilgi = mb_convert_encoding($file_icerik, 'UTF-8', mb_detect_encoding($file_icerik, 'UTF-8, ISO-8859-1', true));  
					$bilgilerim = explode("~",$bilgi); 
					//var_dump($bilgilerim); 
					 
					$bilgiler[$sayac] = array(str_replace("txt","jpg",$file),$bilgilerim[0],$bilgilerim[1],$bilgilerim[2],$bilgilerim[3]); 
					$sayac++; 
					 
				} 
			} 
			closedir($handle); 
		} 
		 
		return $bilgiler; 
	} 
 
	function KlasorGetir($kategori){ 
			global $on,$indexim,$TLGdil; 
      if($TLGdil=="tr-TR"){ 
		    $sql = "select id,link_yazisi , baslik , yazi, icon,kategori from urunler where kategori=" 
               .$kategori; 
		  }else{ 
        $sql = "select id,link_yazisi_en as link_yazisi, baslik_en as baslik, yazi_en as yazi, icon,kategori from urunler where kategori=" 
               .$kategori; 
		  } 
      $sql .= " order by link_yazisi "; 
      $_SESSION["VT"]->doQuery($sql); 
		  $bilgiler = $_SESSION["VT"]->arrayYapVer(); 
  
                $donecek = ' 
                                    <div class="acilan_menu"> 
                            <table class="acilan_menu beyaz" border="0" cellpadding="0" cellspacing="0"> 
                              <tr> 
                            <td class="icerik_sol">&nbsp;</td> 
                            <td class="icerik_orta"> 
                            <table cellpadding="0" cellspacing="0" style="float:left;" > 
                            '; 
      if($bilgiler){ 
        $index = 0; 
        foreach($bilgiler as $bilgi){ 
          $index++; 
          $onPath = trim($on."yollama/".$bilgi["kategori"]."/"); 
          $onPathPicto = $on."yollama/picto/"; 
          $link = $bilgi["link_yazisi"]; 
          $baslik = $bilgi["baslik"]; 
          $kucukResim = trim($onPath.$bilgi["icon"]); 
          $icerik = $bilgi["yazi"]; 
          $indexim = $bilgi["id"]; 
 
       if($kategori<3){ 
        if($TLGdil=="tr-TR"){ 
            $picto = $onPathPicto.str_replace("_m","_tp",$bilgi["icon"]); 
        }else{ 
            $picto = $onPathPicto.str_replace("_m","_ep",$bilgi["icon"]); 
        } 
      }else{ 
        $picto = $on."img/kucuk.jpg"; 
      } 
 
 
          $donecek .= ' 
                            <tr> 
          <td class="menu_tik" id="'.$indexim.'" alt="'.$picto.'"> 
          <img style="float:left;" src ="'.$kucukResim.'" /> 
          '.$link.' 
  <div style=\'display:none\'> 
            <div id=\'yazi'.$indexim.'\' style=\'text-align: left;padding:21px; background:#fff;\'> 
              <h1>'.$baslik.'</h1> 
              '.$icerik.' 
            </div> 
            <div id=\'picto'.$indexim.'\' style=\'padding-top:15px; background:#fff;\'> 
                '.$picto.' 
            </div> 
          </div> 
                    </td></tr> 
 
 
          '; 
           
          if($index%5==0){ 
            $donecek .= '</table><table cellpadding="0" cellspacing="0" style="float:left;" >'; 
          } 
          ; 
        } 
      } 
                $donecek .= ' 
                               </table> </td> 
                            <td class="icerik_sag">&nbsp;</td> 
                            </tr> 
                            <tr> 
                            <td class="alt_sol">&nbsp;</td> 
                            <td class="alt_orta">&nbsp;</td> 
                            <td class="alt_sag">&nbsp;</td> 
                            </tr> 
                            </table> 
                        </div>'; 
 
			return $donecek; 
	} 
?> 
 
<?ob_start();?> 
<? include_once($TLGdil."/header.php");?> 
<? include_once($TLGdil."/menu.php");?> 
<? include_once($TLGdil."/".$sayfa.".php"); ?> 
<? include_once($TLGdil."/footer.php");?> 
<?ob_end_flush();?>

Did this file decode correctly?

Original Code

<? include_once("tlg_kutup/inc.php");?>
<?


	function pDp ($key, $postmu=true, $temizle=true, $bosu = null) {
		$donecek = "";

		if($temizle){
			if($postmu){
				$donecek = isset($_POST[$key])?$_POST[$key]:$bosu; 
				$donecek = addslashes(htmlspecialchars($donecek));				
			}else{
				$donecek = isset($_GET[$key])?$_GET[$key]:$bosu; 
				$donecek = addslashes(htmlspecialchars($donecek));
			}			
		}else{
			if($postmu){
				$donecek = isset($_POST[$key])?$_POST[$key]:$bosu;
			}else{
				$donecek = isset($_GET[$key])?$_GET[$key]:$bosu;
			}	
		}
		
		$donecek = str_replace("eval","",$donecek);
		$donecek = str_replace("script","",$donecek);
		
		return $donecek;
	}

	
	$TLGdil = pDp("lng",false,true,"tr-TR");
	if($TLGdil!="tr-TR"){
		$sayfa = pDp("page",false,true,"home-page");
	}else{
		$sayfa = pDp("page",false,true,"ana-sayfa");
	}
	$der = pDp("d",false,true,"0");
	$on = "";
	for($i=0;$i<$der;$i++){
		$on .= "../";
	}

  if($TLGdil=="tr-TR"){
    define("SITE_BASLIK","AYFROST Dondurulmu Gda");
    define("SITE_ICERIK_KOD","utf-8");
    define("SITE_ANAHTAR_KELIMELER","dondurulmu gda, katksz, organik, taze, balk, sebze, karides, bezelye, mezgit, somon, soya, yemek tarifleri, ilenmemi, steamfresh, msr, lezzet, lezzetibol");
    define("SITE_ICERIK_BILGISI","Taze dondurulmu, % 100 doal ve katksz rnler. IQF teknolojisi. Dondurulmu gda bilgileri.");
  }else{
    define("SITE_BASLIK","AYFROST Frozen Foods");
    define("SITE_ICERIK_KOD","utf-8");
    define("SITE_ANAHTAR_KELIMELER","dondurulmu gda, katksz, organik, taze, balk, sebze, karides, bezelye, mezgit, somon, soya, yemek tarifleri, ilenmemi, steamfresh, msr, lezzet, lezzetibol");
    define("SITE_ICERIK_BILGISI","Taze dondurulmu, % 100 doal ve katksz rnler. IQF teknolojisi. Dondurulmu gda bilgileri.");
  }


	function KlasorOku($adi){
		global $sayfa,$TLGdil;
		$yolBasi = str_replace("index.php",$TLGdil. DIRECTORY_SEPARATOR ,__FILE__);

		$bilgiler = array();


		if ($handle = opendir($yolBasi.$adi)) {

			$sayac = 0;
			while (false !== ($file = readdir($handle))) {

				if(strlen($file)>4){
					$file_icerik = file_get_contents($yolBasi.$adi. DIRECTORY_SEPARATOR .$file, true);
					$bilgi = mb_convert_encoding($file_icerik, 'UTF-8', mb_detect_encoding($file_icerik, 'UTF-8, ISO-8859-1', true)); 
					$bilgilerim = explode("~",$bilgi);
					//var_dump($bilgilerim);
					
					$bilgiler[$sayac] = array(str_replace("txt","jpg",$file),$bilgilerim[0],$bilgilerim[1],$bilgilerim[2],$bilgilerim[3]);
					$sayac++;
					
				}
			}
			closedir($handle);
		}
		
		return $bilgiler;
	}

	function KlasorGetir($kategori){
			global $on,$indexim,$TLGdil;
      if($TLGdil=="tr-TR"){
		    $sql = "select id,link_yazisi , baslik , yazi, icon,kategori from urunler where kategori="
               .$kategori;
		  }else{
        $sql = "select id,link_yazisi_en as link_yazisi, baslik_en as baslik, yazi_en as yazi, icon,kategori from urunler where kategori="
               .$kategori;
		  }
      $sql .= " order by link_yazisi ";
      $_SESSION["VT"]->doQuery($sql);
		  $bilgiler = $_SESSION["VT"]->arrayYapVer();
 
                $donecek = '
                                    <div class="acilan_menu">
                            <table class="acilan_menu beyaz" border="0" cellpadding="0" cellspacing="0">
                              <tr>
                            <td class="icerik_sol">&nbsp;</td>
                            <td class="icerik_orta">
                            <table cellpadding="0" cellspacing="0" style="float:left;" >
                            ';
      if($bilgiler){
        $index = 0;
        foreach($bilgiler as $bilgi){
          $index++;
          $onPath = trim($on."yollama/".$bilgi["kategori"]."/");
          $onPathPicto = $on."yollama/picto/";
          $link = $bilgi["link_yazisi"];
          $baslik = $bilgi["baslik"];
          $kucukResim = trim($onPath.$bilgi["icon"]);
          $icerik = $bilgi["yazi"];
          $indexim = $bilgi["id"];

       if($kategori<3){
        if($TLGdil=="tr-TR"){
            $picto = $onPathPicto.str_replace("_m","_tp",$bilgi["icon"]);
        }else{
            $picto = $onPathPicto.str_replace("_m","_ep",$bilgi["icon"]);
        }
      }else{
        $picto = $on."img/kucuk.jpg";
      }


          $donecek .= '
                            <tr>
          <td class="menu_tik" id="'.$indexim.'" alt="'.$picto.'">
          <img style="float:left;" src ="'.$kucukResim.'" />
          '.$link.'
  <div style=\'display:none\'>
            <div id=\'yazi'.$indexim.'\' style=\'text-align: left;padding:21px; background:#fff;\'>
              <h1>'.$baslik.'</h1>
              '.$icerik.'
            </div>
            <div id=\'picto'.$indexim.'\' style=\'padding-top:15px; background:#fff;\'>
                '.$picto.'
            </div>
          </div>
                    </td></tr>


          ';
          
          if($index%5==0){
            $donecek .= '</table><table cellpadding="0" cellspacing="0" style="float:left;" >';
          }
          ;
        }
      }
                $donecek .= '
                               </table> </td>
                            <td class="icerik_sag">&nbsp;</td>
                            </tr>
                            <tr>
                            <td class="alt_sol">&nbsp;</td>
                            <td class="alt_orta">&nbsp;</td>
                            <td class="alt_sag">&nbsp;</td>
                            </tr>
                            </table>
                        </div>';

			return $donecek;
	}
?>

<?ob_start();?>
<? include_once($TLGdil."/header.php");?>
<? include_once($TLGdil."/menu.php");?>
<? include_once($TLGdil."/".$sayfa.".php"); ?>
<? include_once($TLGdil."/footer.php");?>
<?ob_end_flush();?>

Function Calls

None

Variables

None

Stats

MD5 65225a248ddacb4d6b1f7882cff41562
Eval Count 0
Decode Time 51 ms