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_name("setcall-dialer"); session_start(); include "checksec.php"; if ($_S..

Decoded Output download

<?php 
session_name("setcall-dialer"); 
session_start(); 
include "checksec.php"; 
if ($_SESSION["import_records"] == 0) { 
	echo "<script>location.href = 'main.php';</script>"; 
} 
include_once "connectDb.php"; 
$db = new connectDb(); 
$con = $db->connect(); 
$query = "select * from config where id=1"; 
$result = $db->select($con, "select count(*) as tot from ipnet_ivr.call"); 
$row = mysqli_fetch_array($result); 
$totReg = $row["tot"]; 
$db->disconecct($con); 
$lang = $_SESSION["language"]; 
echo "<!DOCTYPE html>
<html lang=\"es\">

<head>

<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\"
	content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
<meta name=\"description\" content=\"\">
<meta name=\"author\" content=\"\">

<title>"; 
echo $lang == "es" ? "Importacin" : "Import"; 
echo "</title>

<!-- Custom fonts for this template-->
<link href=\"vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\"
	type=\"text/css\">
<link
	href=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"
	rel=\"stylesheet\">

<!-- Custom styles for this template-->
<link href=\"css/sb-admin-2.min.css\" rel=\"stylesheet\">

</head>
"; 
include_once "popup_si_no.php"; 
echo "<body id=\"page-top\">

	<!-- Page Wrapper -->
	<div id=\"wrapper\">

		<!-- Sidebar -->
	"; 
include_once "main_menu_slide.php"; 
echo "	<!-- End of Sidebar -->

		<!-- Content Wrapper -->
		<div id=\"content-wrapper\" class=\"d-flex flex-column\">

			<!-- Main Content -->
			<div id=\"content\">

				<!-- Topbar -->
				<!-- End of Topbar -->

				<!-- Begin Page Content -->
				<div class=\"container-fluid\">

					<!-- Page Heading -->
					<!-- <h1 class=\"h3 mb-4 mt-2 text-gray-800\">Configuracin General</h1> -->
		  <div class=\"d-sm-flex bd-highlight mb-4 mt-4\">
			<h1 class=\"flex-grow-1 bd-highlight h3 mb-0 text-gray-800\">"; 
echo $lang == "es" ? "Importacin Registros" : "Import Records"; 
echo "</h1>
			<!--  
			<a href=\"javascript:sendForm()\" class=\"bd-highlight btn btn-sm btn-info shadow-sm mr-2\"><i class=\"fas fa-save fa-sm text-white-50\"></i> Guardar</a>
			<a href=\"javascript:sendForm()\" class=\"bd-highlight btn btn-sm btn-warning shadow-sm\"><i class=\"fas fa-window-close fa-sm text-white-50\"></i> Cancelar</a>
		   -->
		  </div>
					<div class=\"row\">

						<div class=\"col-lg-12\">

							<!-- MANEJO REGISTROS BACKUP Y BORRAR -->

							<div class=\"card shadow mb-4\">
								<div class=\"card-header py-3\">
									<h6 class=\"m-0 font-weight-bold text-primary\">"; 
echo $lang == "es" ? "Archivo Excel a importar" : "File Excel to import"; 
echo "</h6>
								</div>
								<div class=\"card-body\">
									<div class=\"container mt-3\">
									"; 
if ($totReg > 0) { 
	echo "								  <div class=\"alert alert-danger\" role=\"alert\" >"; 
	echo $lang == "es" ? "Actualmente hay" : "Currently there"; 
	echo " "; 
	echo $totReg; 
	echo " "; 
	echo $lang == "es" ? "registros, es recomendable" : "records, it is recommended"; 
	echo " <a href=\"config_gui2.php\" class=\"alert-link\">"; 
	echo $lang == "es" ? "respaldar y luego borrar" : "backup and delete"; 
	echo ".</a></div>
									  "; 
} else { 
	echo "								   <div class=\"alert alert-success\" role=\"alert\" >"; 
	echo $lang == "es" ? "Actualmente no hay registros, en la base de datos." : "There are currently no records in the database."; 
	echo "</div>
									  
									  "; 
} 
echo "										<form method=\"post\" action=\"config_import_select.php?array=\""; 
echo "va"; 
echo " enctype=\"multipart/form-data\">
										<p>Excel file:</p>
										<div class=\"custom-file mb-3\">
										  <input type=\"file\" class=\"custom-file-input\" name=\"excel\" id=\"excel\" required data-toggle=\"tooltip\" data-placement=\"top\" title=\""; 
echo $lang == "es" ? "Seleccione archivo a importar y presione Submit" : "Select file to import and press Submit"; 
echo "\">
										  <label class=\"custom-file-label\" for=\"customFile\">Choose Excel file</label>
										</div>
										<div class=\"mt-3\">
										  <button type=\"submit\" class=\"btn btn-primary\" data-toggle=\"tooltip\" data-placement=\"top\" title=\""; 
echo $lang == "es" ? "Importar archivo seleccionado" : "Import selected file"; 
echo "\">Submit</button>
										</div>
									  </form>
									</div>
								</div>
							</div>

						</div>

						

					</div>

				</div>
				<!-- /.container-fluid -->

			</div>
			<!-- End of Main Content -->

			<!-- Footer -->
			"; 
include_once "main_footer.php"; 
echo "			<!-- End of Footer -->

		</div>
		<!-- End of Content Wrapper -->

	</div>
	<!-- End of Page Wrapper -->

	<!-- Scroll to Top Button-->
	<a class=\"scroll-to-top rounded\" href=\"#page-top\"> <i
		class=\"fas fa-angle-up\"></i>
	</a>

	<!-- Bootstrap core JavaScript-->
	<script src=\"vendor/jquery/jquery.min.js\"></script>
	<script src=\"vendor/bootstrap/js/bootstrap.bundle.min.js\"></script>

	<!-- Core plugin JavaScript-->
	<script src=\"vendor/jquery-easing/jquery.easing.min.js\"></script>

	<!-- Custom scripts for all pages-->
	<script src=\"js/sb-admin-2.min.js\"></script>

<script>
\$(function () {\$('[data-toggle=\"tooltip\"]').tooltip()});
//Add the following code if you want the name of the file appear on select
\$(\".custom-file-input\").on(\"change\", function() {
  var excel = \$(this).val().split(\"\\\").pop();
  \$(this).siblings(\".custom-file-label\").addClass(\"selected\").html(excel);
});

function backup(){
	window.location.href = \"excel_download.php?tipo=backup\";
}

//Comandado por popup_si_no.php
function yes(){
var tipo_sino=document.getElementById(\"tipo_sino\").value;
if(tipo_sino==\"borrar\")accion(tipo_sino);
if(tipo_sino==\"todos_volver\")accion(tipo_sino);
if(tipo_sino==\"nocontesta_volver\")accion(tipo_sino);
}

function accion(tipo){
	var obXHR;
	var obDiv = document.getElementById(tipo);//BORRE SI NO SE NECESITA RESPONDER EN UN TAG
		var obXHR;
		obXHR=nuevoAjax();
		obXHR.open(\"POST\",\"ajax_refresh_datos.php?dato=\"+tipo,true);

		obXHR.onreadystatechange=function()
		{
				if (obXHR.readyState==4)
				{
					// Muestro el array enviado desde la pagina PHP o servidor
					obDiv.innerHTML=obXHR.responseText;
					
				}else{
					//obDiv.innerHTML=\"cargando...\";
				}
		}
		obXHR.send(null);


			
	}


	
function nuevoAjax(){ 
	var xmlhttp=false; 
		try 
		{ 
						xmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP\"); 
		}
		catch(e)
		{ 
			try
			{ 
							xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\"); 
			} 
					catch(E) { xmlhttp=false; }
		}
				if (!xmlhttp && typeof XMLHttpRequest!=\"undefined\") { xmlhttp=new XMLHttpRequest(); } 

				return xmlhttp; 
	}



function sino(tipo){
	document.getElementById(\"versino\").click();
	document.getElementById(\"tipo_sino\").value=tipo;
	if(tipo==\"borrar\"){
	document.getElementById(\"divsino\").innerHTML =\"Desea borrar todos los registros?\";
	document.getElementById(\"myModalLabel\").innerHTML =\"Borrar registros\";
	}else if(tipo==\"todos_volver\"){
		document.getElementById(\"divsino\").innerHTML =\"Desea vover a llamar a todos los registros?\";
		document.getElementById(\"myModalLabel\").innerHTML =\"Volver a llamar\";
		document.getElementById(\"tipo_sino\").value =\"todos_volver\";
	}else if(\"nocontesta_volver\"){
		document.getElementById(\"divsino\").innerHTML =\"Desea vover a llamar a registro No contesta?\";
		document.getElementById(\"myModalLabel\").innerHTML =\"Volver a llamar\";
	}
}	
</script>
</body>

</html>
"; ?>

Did this file decode correctly?

Original Code

<?php
session_name("setcall-dialer");
session_start();
include "checksec.php";
if ($_SESSION["import_records"] == 0) {
	echo "<script>location.href = 'main.php';</script>";
}
include_once "connectDb.php";
$db = new connectDb();
$con = $db->connect();
$query = "select * from config where id=1";
$result = $db->select($con, "select count(*) as tot from ipnet_ivr.call");
$row = mysqli_fetch_array($result);
$totReg = $row["tot"];
$db->disconecct($con);
$lang = $_SESSION["language"];
echo "<!DOCTYPE html>\n<html lang=\"es\">\n\n<head>\n\n<meta charset=\"utf-8\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n<meta name=\"viewport\"\n\tcontent=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n<meta name=\"description\" content=\"\">\n<meta name=\"author\" content=\"\">\n\n<title>";
echo $lang == "es" ? "Importacin" : "Import";
echo "</title>\n\n<!-- Custom fonts for this template-->\n<link href=\"vendor/fontawesome-free/css/all.min.css\" rel=\"stylesheet\"\n\ttype=\"text/css\">\n<link\n\thref=\"https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i\"\n\trel=\"stylesheet\">\n\n<!-- Custom styles for this template-->\n<link href=\"css/sb-admin-2.min.css\" rel=\"stylesheet\">\n\n</head>\n";
include_once "popup_si_no.php";
echo "<body id=\"page-top\">\n\n\t<!-- Page Wrapper -->\n\t<div id=\"wrapper\">\n\n\t\t<!-- Sidebar -->\n	";
include_once "main_menu_slide.php";
echo "	<!-- End of Sidebar -->\n\n\t\t<!-- Content Wrapper -->\n\t\t<div id=\"content-wrapper\" class=\"d-flex flex-column\">\n\n\t\t\t<!-- Main Content -->\n\t\t\t<div id=\"content\">\n\n\t\t\t\t<!-- Topbar -->\n\t\t\t\t<!-- End of Topbar -->\n\n\t\t\t\t<!-- Begin Page Content -->\n\t\t\t\t<div class=\"container-fluid\">\n\n\t\t\t\t\t<!-- Page Heading -->\n\t\t\t\t\t<!-- <h1 class=\"h3 mb-4 mt-2 text-gray-800\">Configuracin General</h1> -->\n		  <div class=\"d-sm-flex bd-highlight mb-4 mt-4\">\n			<h1 class=\"flex-grow-1 bd-highlight h3 mb-0 text-gray-800\">";
echo $lang == "es" ? "Importacin Registros" : "Import Records";
echo "</h1>\n			<!--  \n			<a href=\"javascript:sendForm()\" class=\"bd-highlight btn btn-sm btn-info shadow-sm mr-2\"><i class=\"fas fa-save fa-sm text-white-50\"></i> Guardar</a>\n			<a href=\"javascript:sendForm()\" class=\"bd-highlight btn btn-sm btn-warning shadow-sm\"><i class=\"fas fa-window-close fa-sm text-white-50\"></i> Cancelar</a>\n		   -->\n		  </div>\n\t\t\t\t\t<div class=\"row\">\n\n\t\t\t\t\t\t<div class=\"col-lg-12\">\n\n\t\t\t\t\t\t\t<!-- MANEJO REGISTROS BACKUP Y BORRAR -->\n\n\t\t\t\t\t\t\t<div class=\"card shadow mb-4\">\n\t\t\t\t\t\t\t\t<div class=\"card-header py-3\">\n\t\t\t\t\t\t\t\t\t<h6 class=\"m-0 font-weight-bold text-primary\">";
echo $lang == "es" ? "Archivo Excel a importar" : "File Excel to import";
echo "</h6>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"card-body\">\n\t\t\t\t\t\t\t\t\t<div class=\"container mt-3\">\n\t\t\t\t\t\t\t\t\t";
if ($totReg > 0) {
	echo "								  <div class=\"alert alert-danger\" role=\"alert\" >";
	echo $lang == "es" ? "Actualmente hay" : "Currently there";
	echo " ";
	echo $totReg;
	echo " ";
	echo $lang == "es" ? "registros, es recomendable" : "records, it is recommended";
	echo " <a href=\"config_gui2.php\" class=\"alert-link\">";
	echo $lang == "es" ? "respaldar y luego borrar" : "backup and delete";
	echo ".</a></div>\n									  ";
} else {
	echo "								   <div class=\"alert alert-success\" role=\"alert\" >";
	echo $lang == "es" ? "Actualmente no hay registros, en la base de datos." : "There are currently no records in the database.";
	echo "</div>\n									  \n									  ";
}
echo "										<form method=\"post\" action=\"config_import_select.php?array=\"";
echo "va";
echo " enctype=\"multipart/form-data\">\n										<p>Excel file:</p>\n										<div class=\"custom-file mb-3\">\n										  <input type=\"file\" class=\"custom-file-input\" name=\"excel\" id=\"excel\" required data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
echo $lang == "es" ? "Seleccione archivo a importar y presione Submit" : "Select file to import and press Submit";
echo "\">\n										  <label class=\"custom-file-label\" for=\"customFile\">Choose Excel file</label>\n										</div>\n										<div class=\"mt-3\">\n										  <button type=\"submit\" class=\"btn btn-primary\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
echo $lang == "es" ? "Importar archivo seleccionado" : "Import selected file";
echo "\">Submit</button>\n										</div>\n									  </form>\n									</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\n\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>\n\t\t\t\t<!-- /.container-fluid -->\n\n\t\t\t</div>\n\t\t\t<!-- End of Main Content -->\n\n\t\t\t<!-- Footer -->\n			";
include_once "main_footer.php";
echo "\t\t\t<!-- End of Footer -->\n\n\t\t</div>\n\t\t<!-- End of Content Wrapper -->\n\n\t</div>\n\t<!-- End of Page Wrapper -->\n\n\t<!-- Scroll to Top Button-->\n\t<a class=\"scroll-to-top rounded\" href=\"#page-top\"> <i\n\t\tclass=\"fas fa-angle-up\"></i>\n\t</a>\n\n\t<!-- Bootstrap core JavaScript-->\n\t<script src=\"vendor/jquery/jquery.min.js\"></script>\n\t<script src=\"vendor/bootstrap/js/bootstrap.bundle.min.js\"></script>\n\n\t<!-- Core plugin JavaScript-->\n\t<script src=\"vendor/jquery-easing/jquery.easing.min.js\"></script>\n\n\t<!-- Custom scripts for all pages-->\n\t<script src=\"js/sb-admin-2.min.js\"></script>\n\n<script>\n\$(function () {\$('[data-toggle=\"tooltip\"]').tooltip()});\n//Add the following code if you want the name of the file appear on select\n\$(\".custom-file-input\").on(\"change\", function() {\n  var excel = \$(this).val().split(\"\\\\\").pop();\n  \$(this).siblings(\".custom-file-label\").addClass(\"selected\").html(excel);\n});\n\nfunction backup(){\n\twindow.location.href = \"excel_download.php?tipo=backup\";\n}\n\n//Comandado por popup_si_no.php\nfunction yes(){\nvar tipo_sino=document.getElementById(\"tipo_sino\").value;\nif(tipo_sino==\"borrar\")accion(tipo_sino);\nif(tipo_sino==\"todos_volver\")accion(tipo_sino);\nif(tipo_sino==\"nocontesta_volver\")accion(tipo_sino);\n}\n\nfunction accion(tipo){\n\tvar obXHR;\n\tvar obDiv = document.getElementById(tipo);//BORRE SI NO SE NECESITA RESPONDER EN UN TAG\n\t\tvar obXHR;\n\t\tobXHR=nuevoAjax();\n\t\tobXHR.open(\"POST\",\"ajax_refresh_datos.php?dato=\"+tipo,true);\n\n\t\tobXHR.onreadystatechange=function()\n\t\t{\n\t\t\t\tif (obXHR.readyState==4)\n\t\t\t\t{\n\t\t\t\t\t// Muestro el array enviado desde la pagina PHP o servidor\n\t\t\t\t\tobDiv.innerHTML=obXHR.responseText;\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t//obDiv.innerHTML=\"cargando...\";\n\t\t\t\t}\n\t\t}\n\t\tobXHR.send(null);\n\n\n\t\t\t\n\t}\n\n\n\t\nfunction nuevoAjax(){ \n\tvar xmlhttp=false; \n\t\ttry \n\t\t{ \n\t\t\t\t\t\txmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP\"); \n\t\t}\n\t\tcatch(e)\n\t\t{ \n\t\t\ttry\n\t\t\t{ \n\t\t\t\t\t\t\txmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\"); \n\t\t\t} \n\t\t\t\t\tcatch(E) { xmlhttp=false; }\n\t\t}\n\t\t\t\tif (!xmlhttp && typeof XMLHttpRequest!=\"undefined\") { xmlhttp=new XMLHttpRequest(); } \n\n\t\t\t\treturn xmlhttp; \n\t}\n\n\n\nfunction sino(tipo){\n\tdocument.getElementById(\"versino\").click();\n\tdocument.getElementById(\"tipo_sino\").value=tipo;\n	if(tipo==\"borrar\"){\n\tdocument.getElementById(\"divsino\").innerHTML =\"Desea borrar todos los registros?\";\n\tdocument.getElementById(\"myModalLabel\").innerHTML =\"Borrar registros\";\n	}else if(tipo==\"todos_volver\"){\n	\tdocument.getElementById(\"divsino\").innerHTML =\"Desea vover a llamar a todos los registros?\";\n	\tdocument.getElementById(\"myModalLabel\").innerHTML =\"Volver a llamar\";\n	\tdocument.getElementById(\"tipo_sino\").value =\"todos_volver\";\n	}else if(\"nocontesta_volver\"){\n	\tdocument.getElementById(\"divsino\").innerHTML =\"Desea vover a llamar a registro No contesta?\";\n	\tdocument.getElementById(\"myModalLabel\").innerHTML =\"Volver a llamar\";\n	}\n}\t\n</script>\n</body>\n\n</html>\n";

Function Calls

session_name 1

Variables

None

Stats

MD5 34630aa806f6ac1e36b57e8918032158
Eval Count 0
Decode Time 83 ms