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 include("labdd.php");session_start();date_default_timezone_set("Asia/Dhaka");if(isse..

Decoded Output download

<?php include("labdd.php");session_start();date_default_timezone_set("Asia/Dhaka");if(isset($_GET["p"])&&$_GET["p"]!=""){$pagename=$_GET["p"];}else{$pagename="homepage";}$title=str_replace("-"," ",$pagename);$title=str_replace("_"," ",$title);if($title=="homepage"){$title="Beta Hospital Management System";}$pagename=$pagename.".php";echo "<!doctype html>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
<title>";echo$title;echo "</title>
<link rel=\"stylesheet\" href=\"style.css\" content=\"width-device-width initial scal=1.0\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"css/autosuggest.css\" />
<link rel=\"icon\" href=\"images/ico.png\">
<script type=\"text/javascript\" src=\"js/jquery.min.js\"></script>
<script src=\"js/datetimepicker_css.js\"></script>
<script type=\"text/javascript\" src=\"js/js.js\"></script>
<!--<script type=\"text/javascript\" src=\"js/autocomplete_customer1.js\"></script>
-->
<script type=\"text/javascript\" src=\"js/autosuggest3.js\"></script>

<script type=\"text/javascript\" language=\"javascript\">
	function removetablerow(table_name, idvalue, return_page){
		var conf = confirm(\"Do you sure want to delete this ID=\"+idvalue+\" from this Table=\"+table_name);
		if(conf)
		window.location='delete_table_row.php?table_name=\'+table_name+\'&idvalue='+idvalue+'&return_page=\'+return_page;
	}
	
	function printBarcode(barCode, company_name, product_name, pricestr){
			var URL = \'barcodePrint.php?barCode=\'+barCode+'&company_name=\'+company_name+'&product_name='+product_name+\'&pricestr='+pricestr;
			var day = new Date();
			var id = day.getTime();
			var w = 500;
			var h = 400;
			var scrl = 1;
			var winl = (screen.width - w) / 2;
			var wint = (screen.height - h) / 2;
			winprops = 'height='+h+\',width='+w+',top='+wint+',left='+winl+\',scrollbars='+scrl+',toolbar=0,location=0,statusbar=0,menubar=0,resizable=0\';
			eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', winprops);\");
		}
</script>
<!--clock script-->
<script type=\"text/javascript\"><!-- start
// created: 2000-2004 ricocheting.com
// http://www.ricocheting.com/js/

dg0 = new Image();dg0.src = \"clock/dg0.gif\";
dg1 = new Image();dg1.src = \"clock/dg1.gif\";
dg2 = new Image();dg2.src = \"clock/dg2.gif\";
dg3 = new Image();dg3.src = \"clock/dg3.gif\";
dg4 = new Image();dg4.src = \"clock/dg4.gif\";
dg5 = new Image();dg5.src = \"clock/dg5.gif\";
dg6 = new Image();dg6.src = \"clock/dg6.gif\";
dg7 = new Image();dg7.src = \"clock/dg7.gif\";
dg8 = new Image();dg8.src = \"clock/dg8.gif\";
dg9 = new Image();dg9.src = \"clock/dg9.gif\";
dgam= new Image();dgam.src= \"clock/dgam.gif\";
dgpm= new Image();dgpm.src= \"clock/dgpm.gif\";
dgc = new Image();dgc.src = \"clock/dgc.gif\";

function dotime(){ 
theTime=setTimeout('dotime()\',1000);
d = new Date();
hr= d.getHours()+100;
mn= d.getMinutes()+100;
se= d.getSeconds()+100;
if(hr==100){hr=112;am_pm=\'am\';}
else if(hr<112){am_pm='am';}
else if(hr==112){am_pm=\'pm\';}
else if(hr>112){am_pm='pm';hr=(hr-12);}
tot='\'+hr+mn+se;
document.hr1.src = \'clock/dg\'+tot.substring(1,2)+'.gif\';
document.hr2.src = 'clock/dg'+tot.substring(2,3)+'.gif\';
document.mn1.src = \'clock/dg'+tot.substring(4,5)+'.gif\';
document.mn2.src = \'clock/dg'+tot.substring(5,6)+'.gif\';
document.se1.src = 'clock/dg\'+tot.substring(7,8)+'.gif\';
document.se2.src = 'clock/dg'+tot.substring(8,9)+\'.gif';
document.ampm.src= \'clock/dg\'+am_pm+'.gif\';}
dotime();
//end -->
</script>
</head>
<body>

";if(isset($_SESSION["auto_number"])){if($_SESSION["company"]=="hospital"){include("hospitaldataquary.php");include("labroomdata.php");include("printdataquery.php");include("doctorquery.php");include("Plabdataquery.php");include("pagequery.php");echo " 	<header class=\"mainheader\">
		<logo><strong>Beta Hospital Management ERP Solutions (Version: Beta23.6ip):: Helpline: 01757 827474, 01795 909185. Operate By</strong> :: ";echo$_SESSION["fullname"];echo "        <img src=\"clock/dg8.gif\" name=\"hr1\"><img 
        src=\"clock/dg8.gif\" name=\"hr2\"><img 
        src=\"clock/dgc.gif\" name=\"c\"><img 
        src=\"clock/dg8.gif\" name=\"mn1\"><img 
        src=\"clock/dg8.gif\" name=\"mn2\"><img 
        src=\"clock/dgc.gif\" name=\"c\"><img 
        src=\"clock/dg8.gif\" name=\"se1\"><img 
        src=\"clock/dg8.gif\" name=\"se2\"><img 
        src=\"clock/dgpm.gif\" name=\"ampm\">
		<a style=\"color:#F3ECBA;float:right; margin-right:20px;\" href=\"logout.php\">Logout</a>
       </logo><br>
       </header>
   
        <header class=\"mainheader2\">
         	";include("menu1.php");echo "        </header>
    
        <div class=\"maincontent\">
            ";include($pagename);echo "        </div>	
     
        <footer class=\"mainfooter\">
            <p>Copyright &copy; Betasofts.com [01757 82 74 74 :: 01795 90 91 85]</p>
        </footer>
    	";}echo "	";}else{include("login_form.php");}echo "<script type=\"text/javascript\">     
    function PrintDiv() {    
       var divToPrint = document.getElementById(\'divToPrint\');
       var popupWin = window.open('', '_blank', \'width=300,height=300\');
       popupWin.document.open();
       popupWin.document.write(\'<html><body onload=\"window.print()\">' + divToPrint.innerHTML + \'</html>\');
       popupWin.document.close();
	   
      //new added for close after print
	    popupWin.focus(); // necessary for IE >= 10
		popupWin.print();
	   // popupWin.close();
	  
	  }
 </script>

</body>
</html>
"; 
?>

Did this file decode correctly?

Original Code

<?php include("labdd.php");session_start();date_default_timezone_set("Asia/Dhaka");if(isset($_GET["p"])&&$_GET["p"]!=""){$pagename=$_GET["p"];}else{$pagename="homepage";}$title=str_replace("-"," ",$pagename);$title=str_replace("_"," ",$title);if($title=="homepage"){$title="Beta Hospital Management System";}$pagename=$pagename.".php";echo "<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>";echo$title;echo "</title>\n<link rel=\"stylesheet\" href=\"style.css\" content=\"width-device-width initial scal=1.0\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/autosuggest.css\" />\n<link rel=\"icon\" href=\"images/ico.png\">\n<script type=\"text/javascript\" src=\"js/jquery.min.js\"></script>\n<script src=\"js/datetimepicker_css.js\"></script>\n<script type=\"text/javascript\" src=\"js/js.js\"></script>\n<!--<script type=\"text/javascript\" src=\"js/autocomplete_customer1.js\"></script>\n-->\n<script type=\"text/javascript\" src=\"js/autosuggest3.js\"></script>\n\n<script type=\"text/javascript\" language=\"javascript\">\n\tfunction removetablerow(table_name, idvalue, return_page){\n\t\tvar conf = confirm(\"Do you sure want to delete this ID=\"+idvalue+\" from this Table=\"+table_name);\n\t\tif(conf)\n\t\twindow.location='delete_table_row.php?table_name=\'+table_name+\'&idvalue='+idvalue+'&return_page=\'+return_page;\n\t}\n\t\n\tfunction printBarcode(barCode, company_name, product_name, pricestr){\n\t\t\tvar URL = \'barcodePrint.php?barCode=\'+barCode+'&company_name=\'+company_name+'&product_name='+product_name+\'&pricestr='+pricestr;\n\t\t\tvar day = new Date();\n\t\t\tvar id = day.getTime();\n\t\t\tvar w = 500;\n\t\t\tvar h = 400;\n\t\t\tvar scrl = 1;\n\t\t\tvar winl = (screen.width - w) / 2;\n\t\t\tvar wint = (screen.height - h) / 2;\n\t\t\twinprops = 'height='+h+\',width='+w+',top='+wint+',left='+winl+\',scrollbars='+scrl+',toolbar=0,location=0,statusbar=0,menubar=0,resizable=0\';\n\t\t\teval(\"page\" + id + \" = window.open(URL, '\" + id + \"', winprops);\");\n\t\t}\n</script>\n<!--clock script-->\n<script type=\"text/javascript\"><!-- start\n// created: 2000-2004 ricocheting.com\n// http://www.ricocheting.com/js/\n\ndg0 = new Image();dg0.src = \"clock/dg0.gif\";\ndg1 = new Image();dg1.src = \"clock/dg1.gif\";\ndg2 = new Image();dg2.src = \"clock/dg2.gif\";\ndg3 = new Image();dg3.src = \"clock/dg3.gif\";\ndg4 = new Image();dg4.src = \"clock/dg4.gif\";\ndg5 = new Image();dg5.src = \"clock/dg5.gif\";\ndg6 = new Image();dg6.src = \"clock/dg6.gif\";\ndg7 = new Image();dg7.src = \"clock/dg7.gif\";\ndg8 = new Image();dg8.src = \"clock/dg8.gif\";\ndg9 = new Image();dg9.src = \"clock/dg9.gif\";\ndgam= new Image();dgam.src= \"clock/dgam.gif\";\ndgpm= new Image();dgpm.src= \"clock/dgpm.gif\";\ndgc = new Image();dgc.src = \"clock/dgc.gif\";\n\nfunction dotime(){ \ntheTime=setTimeout('dotime()\',1000);\nd = new Date();\nhr= d.getHours()+100;\nmn= d.getMinutes()+100;\nse= d.getSeconds()+100;\nif(hr==100){hr=112;am_pm=\'am\';}\nelse if(hr<112){am_pm='am';}\nelse if(hr==112){am_pm=\'pm\';}\nelse if(hr>112){am_pm='pm';hr=(hr-12);}\ntot='\'+hr+mn+se;\ndocument.hr1.src = \'clock/dg\'+tot.substring(1,2)+'.gif\';\ndocument.hr2.src = 'clock/dg'+tot.substring(2,3)+'.gif\';\ndocument.mn1.src = \'clock/dg'+tot.substring(4,5)+'.gif\';\ndocument.mn2.src = \'clock/dg'+tot.substring(5,6)+'.gif\';\ndocument.se1.src = 'clock/dg\'+tot.substring(7,8)+'.gif\';\ndocument.se2.src = 'clock/dg'+tot.substring(8,9)+\'.gif';\ndocument.ampm.src= \'clock/dg\'+am_pm+'.gif\';}\ndotime();\n//end -->\n</script>\n</head>\n<body>\n\n";if(isset($_SESSION["auto_number"])){if($_SESSION["company"]=="hospital"){include("hospitaldataquary.php");include("labroomdata.php");include("printdataquery.php");include("doctorquery.php");include("Plabdataquery.php");include("pagequery.php");echo " \t<header class=\"mainheader\">\n\t\t<logo><strong>Beta Hospital Management ERP Solutions (Version: Beta23.6ip):: Helpline: 01757 827474, 01795 909185. Operate By</strong> :: ";echo$_SESSION["fullname"];echo "        <img src=\"clock/dg8.gif\" name=\"hr1\"><img \n        src=\"clock/dg8.gif\" name=\"hr2\"><img \n        src=\"clock/dgc.gif\" name=\"c\"><img \n        src=\"clock/dg8.gif\" name=\"mn1\"><img \n        src=\"clock/dg8.gif\" name=\"mn2\"><img \n        src=\"clock/dgc.gif\" name=\"c\"><img \n        src=\"clock/dg8.gif\" name=\"se1\"><img \n        src=\"clock/dg8.gif\" name=\"se2\"><img \n        src=\"clock/dgpm.gif\" name=\"ampm\">\n\t\t<a style=\"color:#F3ECBA;float:right; margin-right:20px;\" href=\"logout.php\">Logout</a>\n       </logo><br>\n       </header>\n   \n        <header class=\"mainheader2\">\n         \t";include("menu1.php");echo "        </header>\n    \n        <div class=\"maincontent\">\n            ";include($pagename);echo "        </div>\t\n     \n        <footer class=\"mainfooter\">\n            <p>Copyright &copy; Betasofts.com [01757 82 74 74 :: 01795 90 91 85]</p>\n        </footer>\n    \t";}echo "\t";}else{include("login_form.php");}echo "<script type=\"text/javascript\">     \n    function PrintDiv() {    \n       var divToPrint = document.getElementById(\'divToPrint\');\n       var popupWin = window.open('', '_blank', \'width=300,height=300\');\n       popupWin.document.open();\n       popupWin.document.write(\'<html><body onload=\"window.print()\">' + divToPrint.innerHTML + \'</html>\');\n       popupWin.document.close();\n\t   \n      //new added for close after print\n\t    popupWin.focus(); // necessary for IE >= 10\n\t\tpopupWin.print();\n\t   // popupWin.close();\n\t  \n\t  }\n </script>\n\n</body>\n</html>\n";
?>

Function Calls

None

Variables

None

Stats

MD5 d7ce58dab62863b35eb4244524953d5f
Eval Count 0
Decode Time 51 ms