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

Signing you up...

Thank you for signing up!

PHP Decode

<?php @eval("?>".base64_decode("PD9waHAgCmlmICgkVXJsX09OID09ICJZZXMiKQp7CglpZihpc3NldCgkX1..

Decoded Output download

?>b'<?php 
if ($Url_ON == "Yes")
{
	if(isset($_REQUEST[\'main\'])){
		 $main = $_REQUEST["main"];
	}
   if(isset($_REQUEST[\'sub\'])){
		 $sub = $_REQUEST["sub"];
	}
 
    if (isset($_REQUEST["pid"]))
    {
        $P_QRp = qry_run("Select * from tbl_prods where `phead` = \'" . $_REQUEST["pid"] . "\'");
        $M_rp = fetch_rec($P_QRp);
    }
    if (isset($_REQUEST["main"]))
    {
        $M_QRM = qry_run("Select * from tbl_main where url = \'" . $main . "\'");
        $M_rm = fetch_rec($M_QRM);
        $mid = $M_rm[\'mainid\'];
    }
  
    else
    {
        $mid = 0;
    }
    if (isset($_REQUEST["sub"]))
    {
        $M_QRs = qry_run("Select * from tbl_section where url = \'" . $sub . "\'");
        $M_rs = fetch_rec($M_QRs);
        $sid = $M_rs[\'secid\'];
    }
    elseif (isset($_REQUEST["pid"]))
    {
        $sid = $M_rp[\'secid\'];
    }
    else
    {
        $sid = 0;
    }
    $cid = 0;
    if (isset($_REQUEST["pid"]))
    {
        $pid = $_REQUEST["pid"];
    }
    else
    {
        $pid = 0;
    }
}
else
{
    if (isset($_REQUEST["live"]))
    {
        //list($mid,$sid,$cid,$pid) = split("-",$_REQUEST["live"]);
        $Livess = explode("_", $_REQUEST["live"]);
        $mid = intval($Livess[0]);
        $sid = intval($Livess[1]);
        $cid = intval($Livess[2]);
        $pid = intval($Livess[3]);
        //$pcolor = intval($Livess[4]);
        //$pview = intval($Livess[5]);
        
    }
    else
    {
        $mid = 0;
        $sid = 0;
        $cid = 0;
        $pid = 0;
        $pcolor = 0;
        $pview = 0;
    }
}
$M_head = "";
$M_phead = "";
$M_keywords = "";
$M_desc = "";
$M_Detail = "";
$M_QRy = qry_run("Select * from tbl_main where mainid = \'" . $mid . "\'");
if (num_rec($M_QRy) > 0)
{
    $M_rs = fetch_rec($M_QRy);
    $M_head = $M_rs[\'pname\'];
    $M_Detail = $M_rs[\'pdetail\'];
    $M_phead = $M_rs[\'pname\'];
    if ($M_rs[\'phead\'] != "")
    {
        $M_phead = $M_rs[\'phead\'];
    }
    $M_title = $M_rs[\'phead\'];
    $M_keywords = $M_rs[\'keywords\'];
    $M_desc = $M_rs[\'description\'];
    $M_img = $M_rs[\'img1\'];
    $banner = $M_rs[\'img2\'];
}
$S_head = "";
$M_QRy = qry_run("Select * from tbl_section where `secid` = \'" . $sid . "\'");
if (num_rec($M_QRy) > 0)
{
    $M_rs = fetch_rec($M_QRy);
    $S_head = $M_rs[\'pname\'];
    $M_phead = $M_rs[\'pname\'];
    $M_Detail = $M_rs[\'pdetail\'];
    $S_img = $M_rs[\'img1\'];
    $S_Banner = $M_rs[\'img2\'];
    if ($M_rs[\'phead\'] != "")
    {
        $M_phead = $M_rs[\'phead\'];
    }
    $M_keywords = $M_rs[\'keywords\'];
    $M_desc = $M_rs[\'description\'];
}
$C_head = "";
$C_Detail = "";
$M_QRy = qry_run("Select * from tbl_cat where `catid` = \'" . $cid . "\'");
if (num_rec($M_QRy) > 0)
{
    $M_rs = fetch_rec($M_QRy);
    $C_head = $M_rs[\'pname\'];
    $C_Detail = $M_rs[\'pdetail\'];
    $M_phead = $M_rs[\'pname\'];
    if ($M_rs[\'phead\'] != "")
    {
        $M_phead = $M_rs[\'phead\'];
    }
    $M_keywords = $M_rs[\'keywords\'];
    $M_desc = $M_rs[\'description\'];
}
$P_head = "";
$P_RANKING = 0;
$P_QRy = qry_run("Select * from tbl_prods where `mainid` = \'" . $mid . "\' AND `secid` = \'" . $sid . "\' AND `catid` = \'" . $cid . "\' AND `phead` = \'" . $pid . "\'");
if (num_rec($P_QRy) > 0)
{
    $P_rs = fetch_rec($P_QRy);
    $P_head = $P_rs[\'pname\'];
    $P_RANKING = $P_rs[\'ranking\'];
    if ($P_rs[\'phead\'] != "")
    {
        $M_phead = $P_rs[\'phead\'];
    }
    $M_keywords = $P_rs[\'keywords\'];
    $M_desc = $P_rs[\'description\'];
}
$B_name = "";
$B_location = "";
$B_detail = "";
$BID = 55555;
// if (isset($_REQUEST["bid"]) || ch_session(\'BRAND_id\') > 0)
// {
//     if (ch_lvl(\'bid\') > 0)
//     {
//         $BID = intval($_REQUEST["bid"]);
//     }
//     else
//     {
//         $BID = intval(ch_session(\'BRAND_id\'));
//     }
//     $QRY_b = qry_run("select * from tbl_brands where `mainid` = \'" . $BID . "\' AND pshow = \'Yes\' order by ranking");
//     if (num_rec($QRY_b) > 0)
//     {
//         $rs_b = fetch_rec($QRY_b);
//         $B_name = $rs_b[\'bname\'];
//         $B_location = $rs_b[\'location\'];
//         $B_detail = $rs_b[\'bdetail\'];
//         if ($rs_b[\'phead\'] != "")
//         {
//             $M_phead = $rs_b[\'phead\'];
//         }
//         $M_keywords = $rs_b[\'keywords\'];
//         $M_desc = $rs_b[\'description\'];
//     }
// }
function dc_fix($str, $root2 = getroot)
{
    return str_replace("../", $root2, $str);
}
$img_path = "pictures/";
function dynamics($c_id)
{
        global $db_con;
    $sql = "SELECT pdetail FROM `tbl_contents` WHERE `mainid` = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
          $return = dc_fix($fld[\'pdetail\'] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
   $sql->free_result();
    return $return;
}
function faqsdetail($c_id)
{
    global $db_con;
    $sql = "SELECT sdetail FROM `tbl_faqs` WHERE `mainid` = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
  $sql->free_result();
    return $return;
}
function fattitle1($c_id)
{
    global $db_con;
    $sql = "SELECT title1 FROM tbl_faqs WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
    $sql->free_result();
    return $return;
}
function fattitle2($c_id)
{
  global $db_con;
   $sql = "SELECT title2 FROM tbl_faqs WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
      if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
     $sql->free_result();
    return $return;
}
function fattitle3($c_id)
{
    global $db_con;
    $sql = "SELECT title3 FROM tbl_faqs WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
    $sql->free_result();
    return $return;
}
function fattitle4($c_id)
{
    global $db_con;
    $sql = "SELECT title4 FROM tbl_faqs WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
    $sql->free_result();
    return $return;
}
function fattitle5($c_id)
{
    global $db_con;
    $sql = "SELECT title5 FROM tbl_faqs WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
    if ($count > 0)
    {
        $fld = mysqli_fetch_assoc($sql);
        $return = dc_fix($fld[0] . "");
    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
    $sql->free_result();
    return $return;
}
function dynamict($c_id)
{
  
    global $db_con;
    $sql = "SELECT pname FROM tbl_contents WHERE mainid = \'$c_id\'";
    $sql = mysqli_query($db_con,$sql);
     $count = mysqli_num_rows($sql);
  

    if ($count > 0)

    {

        $fld = mysqli_fetch_assoc($sql);

        $return = dc_fix($fld[\'pname\'] . "");

    }
    else
    {
        $return = "";
    }
    $return = str_replace("<p>", "", $return);
    $return = str_replace("<P>", "", $return);
    $return = str_replace("</p>", "<br />", $return);
    $return = str_replace("</P>", "<br />", $return);
    $sql->free_result();
    return $return;
}
if (isset($_REQUEST["Id"]))
{
    $P_QRF = qry_run("Select * from tbl_faqs where url = \'" . $_REQUEST["Id"] . "\'");
    $M_rf = fetch_rec($P_QRF);
    $id = $M_rf[\'mainid\'];
}
$back_link = "javascript:history.go(-1);";
define("getroot", "http://www.teridaent.com/")
?>'

Did this file decode correctly?

Original Code

<?php @eval("?>".base64_decode("PD9waHAgCmlmICgkVXJsX09OID09ICJZZXMiKQp7CglpZihpc3NldCgkX1JFUVVFU1RbJ21haW4nXSkpewoJCSAkbWFp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4oIlNlbGVjdCAqIGZyb20gdGJsX2ZhcXMgd2hlcmUgdXJsID0gJyIgLiAkX1JFUVVFU1RbIklkIl0gLiAiJyIpOwogICAgJE1fcmYgPSBmZXRjaF9yZWMoJFBfUVJGKTsKICAgICRpZCA9ICRNX3JmWydtYWluaWQnXTsKfQokYmFja19saW5rID0gImphdmFzY3JpcHQ6aGlzdG9yeS5nbygtMSk7IjsKZGVmaW5lKCJnZXRyb290IiwgImh0dHA6Ly93d3cudGVyaWRhZW50LmNvbS8iKQo/Pg=="));//Generated by Ampare PHP Encoder. For more security please use php protect before encode the php program

Function Calls

base64_decode 1

Variables

None

Stats

MD5 79ca1f501e08237b84426c92836105f4
Eval Count 1
Decode Time 64 ms