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 $_SESSION["guvenlik"] = ["birim_ekle" => kod()]; if (isset($_GET["islem"]) == ..

Decoded Output download

<?php 
 
 
$_SESSION["guvenlik"] = ["birim_ekle" => kod()]; 
if (isset($_GET["islem"]) == "duzenle") { 
    $durum = "duzenle"; 
    $Sorgu = $db->prepare("SELECT * FROM birimler WHERE id = ?"); 
    $Sorgu->execute([$_GET["id"]]); 
    if ($Sorgu->rowCount()) { 
        $Sonuc = $Sorgu->fetch(PDO::FETCH_ASSOC); 
        $_SESSION["guvenlik"] = ["birim_guncelle" => kod(), "birimresimsil" => kod()]; 
    } else { 
        header("Location:" . $url . "/404.html"); 
        unset($_SESSION["guvenlik"]); 
        exit; 
    } 
} 
echo "<div class=\"page-header\">
	<div class=\"page-title mt-0 mb-0\">
		<h3>"; 
echo $admindil["txt116"]; 
echo "</h3>
		<div class=\"crumbs\">
			<ul id=\"breadcrumbs\" class=\"breadcrumb\">
				<li><a href=\"index.html\"><i class=\"icon-home menu-icon\"></i></a></li>
				<li><a href=\""; 
echo $sayfalink; 
echo "\">"; 
echo $admindil["txt115"]; 
echo "</a></li>
				<li class=\"active\"><a href=\""; 
echo $sayfalink; 
echo "\">"; 
echo $admindil["txt116"]; 
echo "</a></li>
			</ul>
		</div>
	</div>
</div>
<div class=\"row\">
	<div class=\"col-12 grid-margin stretch-card\">
		<div class=\"card\">
			<div class=\"card-body\">
				<form class=\"forms-sample\" method=\"post\" action=\"../_class/yonetim_islem.php\" enctype=\"multipart/form-data\">
				<input id=\"id\" name=\"id\" type=\"hidden\" value=\""; 
echo $Sonuc["id"]; 
echo "\">
					<div class=\"form-group\">
						<label for=\"adi\">Balk</label>
						<input type=\"text\" class=\"form-control form-control-sm\" name=\"adi\" id=\"adi\" value=\""; 
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["adi"] : ""; 
echo "\" />
					</div>							
					"; 
if (isset($_GET["islem"]) == "duzenle") { 
    echo "							
						"; 
    if ($Sonuc["resim"]) { 
        echo "						<div class=\"form-group row col-md-2\">
							<div id=\"lightgallery\" class=\"row lightGallery\">
								<a href=\"../"; 
        echo tema; 
        echo "/uploads/birimler/"; 
        echo $Sonuc["resim"]; 
        echo "\"><img src=\"../"; 
        echo tema; 
        echo "/uploads/birimler/"; 
        echo $Sonuc["resim"]; 
        echo "\" class=\"img-responsive img-thumbnail\" style=\"margin-bottom:2px;width:100%;\"></a>
							</div>
							<a style=\"width: 100%;\" class=\"btn btn-danger btn-sm popconfirm\" title=\"Resim Sil\" href=\"../_class/yonetim_islem.php?birimresimsil=ok&sid="; 
        echo $Sonuc["id"]; 
        echo "\"><i class=\"fal fa-trash\"></i> Resim Sil</a>
						</div>
						"; 
    } 
    echo "							
					"; 
} 
echo "					<div class=\"form-group row col-md-6\">
					<label>Birim Resmi</label>
						<input type=\"file\" name=\"resim\" class=\"file-upload-default\">
						<div class=\"input-group col-xs-12\">
							<input type=\"text\" class=\"form-control file-upload-info form-control-sm\" disabled=\"\" placeholder=\"Resim dosyas seiniz\">
							<span class=\"input-group-append\">
								<button class=\"file-upload-browse btn btn-primary btn-sm\" type=\"button\"><i class=\"icon-cloud-upload font-12\"></i> Dosya Se</button>
							</span>
						</div>
					</div>
					<div class=\"form-group\">
						<label class=\"d-block\" for=\"durum\">Durum</label>
						"; 
if (isset($_GET["islem"]) == "duzenle") { 
    echo "						<label class=\"switch\">
							<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" "; 
    if ($Sonuc["durum"] == "1") { 
        echo " checked "; 
    } 
    echo ">
							<span class=\"slider\"></span>
						</label>
						"; 
} else { 
    echo "						<label class=\"switch\">
							<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" checked>
							<span class=\"slider\"></span>
						</label>
						"; 
} 
echo "								
					</div>					
					<div class=\"form-group\">
						<label for=\"adi\">erik</label>
						<textarea name=\"aciklama\" id=\"myTextarea\">"; 
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["aciklama"] : ""; 
echo "</textarea>
					</div>
					<div class=\"card mb-4\">
						<div class=\"card-header\">
							SEO AYARLARI
						</div>
						<div class=\"card-body\">
							<div class=\"form-group\">
								<label for=\"maxlength-textarea\">Sayfa Aklama (description)</label>
								<textarea id=\"maxlength-textarea\" name=\"description\"  class=\"form-control\" maxlength=\"260\" rows=\"4\">"; 
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["description"] : ""; 
echo "</textarea>
							</div>
							<div class=\"form-group mb-0\">
								<label for=\"tags\">Sayfa Meta <small>(Kelimenin sonuna virgl koyunuz)</small></label>
								<input name=\"keywords\" id=\"tags\" value=\""; 
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["keywords"] : ""; 
echo "\" />
							</div>							
						</div>
					</div>
					"; 
if (isset($_GET["islem"]) == "duzenle") { 
    echo "					<button type=\"submit\" name=\"birim_guncelle\" class=\"btn btn-success btn-icon-text btn-sm\">
						<i class=\"mdi mdi-reload  btn-icon-prepend\"></i>                                                    
						GNCELLE
					</button>
					"; 
} else { 
    echo "					<button type=\"submit\" name=\"birim_ekle\" class=\"btn btn-primary btn-icon-text btn-sm\">
						<i class=\"mdi mdi-file-check btn-icon-prepend\"></i>
						KAYDET
					</button>
					"; 
} 
echo "				</form>
			</div>
		</div>
	</div>

</div>
"; 
mesaj("birim_ekle", 2, "no", "Hata olutu tekrar deneyiniz.!"); 
mesaj("birim_guncelle", 1, "yes", "Baar ile guncellenmitir."); 
mesaj("birim_guncelle", 2, "no", "Hata olutu tekrar deneyiniz.!"); 
mesaj("birimresimsil", 1, "yes", "Baar ile siinmitir."); 
mesaj("birimresimsil", 2, "no", "Hata olutu tekrar deneyiniz.!"); 
 
 
?>

Did this file decode correctly?

Original Code

<?php


$_SESSION["guvenlik"] = ["birim_ekle" => kod()];
if (isset($_GET["islem"]) == "duzenle") {
    $durum = "duzenle";
    $Sorgu = $db->prepare("SELECT * FROM birimler WHERE id = ?");
    $Sorgu->execute([$_GET["id"]]);
    if ($Sorgu->rowCount()) {
        $Sonuc = $Sorgu->fetch(PDO::FETCH_ASSOC);
        $_SESSION["guvenlik"] = ["birim_guncelle" => kod(), "birimresimsil" => kod()];
    } else {
        header("Location:" . $url . "/404.html");
        unset($_SESSION["guvenlik"]);
        exit;
    }
}
echo "<div class=\"page-header\">\r\n\t<div class=\"page-title mt-0 mb-0\">\r\n\t\t<h3>";
echo $admindil["txt116"];
echo "</h3>\r\n\t\t<div class=\"crumbs\">\r\n\t\t\t<ul id=\"breadcrumbs\" class=\"breadcrumb\">\r\n\t\t\t\t<li><a href=\"index.html\"><i class=\"icon-home menu-icon\"></i></a></li>\r\n\t\t\t\t<li><a href=\"";
echo $sayfalink;
echo "\">";
echo $admindil["txt115"];
echo "</a></li>\r\n\t\t\t\t<li class=\"active\"><a href=\"";
echo $sayfalink;
echo "\">";
echo $admindil["txt116"];
echo "</a></li>\r\n\t\t\t</ul>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n<div class=\"row\">\r\n\t<div class=\"col-12 grid-margin stretch-card\">\r\n\t\t<div class=\"card\">\r\n\t\t\t<div class=\"card-body\">\r\n\t\t\t\t<form class=\"forms-sample\" method=\"post\" action=\"../_class/yonetim_islem.php\" enctype=\"multipart/form-data\">\r\n\t\t\t\t<input id=\"id\" name=\"id\" type=\"hidden\" value=\"";
echo $Sonuc["id"];
echo "\">\r\n\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t<label for=\"adi\">Balk</label>\r\n\t\t\t\t\t\t<input type=\"text\" class=\"form-control form-control-sm\" name=\"adi\" id=\"adi\" value=\"";
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["adi"] : "";
echo "\" />\r\n\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n\t\t\t\t\t";
if (isset($_GET["islem"]) == "duzenle") {
    echo "\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t";
    if ($Sonuc["resim"]) {
        echo "\t\t\t\t\t\t<div class=\"form-group row col-md-2\">\r\n\t\t\t\t\t\t\t<div id=\"lightgallery\" class=\"row lightGallery\">\r\n\t\t\t\t\t\t\t\t<a href=\"../";
        echo tema;
        echo "/uploads/birimler/";
        echo $Sonuc["resim"];
        echo "\"><img src=\"../";
        echo tema;
        echo "/uploads/birimler/";
        echo $Sonuc["resim"];
        echo "\" class=\"img-responsive img-thumbnail\" style=\"margin-bottom:2px;width:100%;\"></a>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<a style=\"width: 100%;\" class=\"btn btn-danger btn-sm popconfirm\" title=\"Resim Sil\" href=\"../_class/yonetim_islem.php?birimresimsil=ok&sid=";
        echo $Sonuc["id"];
        echo "\"><i class=\"fal fa-trash\"></i> Resim Sil</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t";
    }
    echo "\t\t\t\t\t\t\t\r\n\t\t\t\t\t";
}
echo "\t\t\t\t\t<div class=\"form-group row col-md-6\">\r\n\t\t\t\t\t<label>Birim Resmi</label>\r\n\t\t\t\t\t\t<input type=\"file\" name=\"resim\" class=\"file-upload-default\">\r\n\t\t\t\t\t\t<div class=\"input-group col-xs-12\">\r\n\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control file-upload-info form-control-sm\" disabled=\"\" placeholder=\"Resim dosyas seiniz\">\r\n\t\t\t\t\t\t\t<span class=\"input-group-append\">\r\n\t\t\t\t\t\t\t\t<button class=\"file-upload-browse btn btn-primary btn-sm\" type=\"button\"><i class=\"icon-cloud-upload font-12\"></i> Dosya Se</button>\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t<label class=\"d-block\" for=\"durum\">Durum</label>\r\n\t\t\t\t\t\t";
if (isset($_GET["islem"]) == "duzenle") {
    echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" ";
    if ($Sonuc["durum"] == "1") {
        echo " checked ";
    }
    echo ">\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t";
} else {
    echo "\t\t\t\t\t\t<label class=\"switch\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"durum\" id=\"durum\" value=\"1\" checked>\r\n\t\t\t\t\t\t\t<span class=\"slider\"></span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t";
}
echo "\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t</div>\t\t\t\t\t\r\n\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t<label for=\"adi\">erik</label>\r\n\t\t\t\t\t\t<textarea name=\"aciklama\" id=\"myTextarea\">";
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["aciklama"] : "";
echo "</textarea>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"card mb-4\">\r\n\t\t\t\t\t\t<div class=\"card-header\">\r\n\t\t\t\t\t\t\tSEO AYARLARI\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"card-body\">\r\n\t\t\t\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t\t\t\t<label for=\"maxlength-textarea\">Sayfa Aklama (description)</label>\r\n\t\t\t\t\t\t\t\t<textarea id=\"maxlength-textarea\" name=\"description\"  class=\"form-control\" maxlength=\"260\" rows=\"4\">";
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["description"] : "";
echo "</textarea>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"form-group mb-0\">\r\n\t\t\t\t\t\t\t\t<label for=\"tags\">Sayfa Meta <small>(Kelimenin sonuna virgl koyunuz)</small></label>\r\n\t\t\t\t\t\t\t\t<input name=\"keywords\" id=\"tags\" value=\"";
echo isset($_GET["islem"]) == "duzenle" ? $Sonuc["keywords"] : "";
echo "\" />\r\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t";
if (isset($_GET["islem"]) == "duzenle") {
    echo "\t\t\t\t\t<button type=\"submit\" name=\"birim_guncelle\" class=\"btn btn-success btn-icon-text btn-sm\">\r\n\t\t\t\t\t\t<i class=\"mdi mdi-reload  btn-icon-prepend\"></i>                                                    \r\n\t\t\t\t\t\tGNCELLE\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t";
} else {
    echo "\t\t\t\t\t<button type=\"submit\" name=\"birim_ekle\" class=\"btn btn-primary btn-icon-text btn-sm\">\r\n\t\t\t\t\t\t<i class=\"mdi mdi-file-check btn-icon-prepend\"></i>\r\n\t\t\t\t\t\tKAYDET\r\n\t\t\t\t\t</button>\r\n\t\t\t\t\t";
}
echo "\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\r\n</div>\r\n";
mesaj("birim_ekle", 2, "no", "Hata olutu tekrar deneyiniz.!");
mesaj("birim_guncelle", 1, "yes", "Baar ile guncellenmitir.");
mesaj("birim_guncelle", 2, "no", "Hata olutu tekrar deneyiniz.!");
mesaj("birimresimsil", 1, "yes", "Baar ile siinmitir.");
mesaj("birimresimsil", 2, "no", "Hata olutu tekrar deneyiniz.!");


?>

Function Calls

None

Variables

None

Stats

MD5 3f1612296988f85577065641c026d4ef
Eval Count 0
Decode Time 51 ms