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/dirsignage_old/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/dirsignage_old/html/rolling_text2.php
<?php
	include_once ("webadmin/configure.php");

	if(!isset($_GET["langcode"])){
		$langcode = "tc";
		$_SESSION["langcode"] = "tc";
	}else{
		$langcode = $_GET["langcode"];

		$_SESSION["langcode"] = $langcode;
	}

	$sql = "select * from rolling_text where status = ? and deleted = ? order by sort ASC";
	$parameters = array("1", "0");
	if (!($sth = $dbh->prepare($sql))) {
		throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
	}

	if (!$sth->execute($parameters)) {
		throw new Exception('[' . $sth->errorCode() . ']: ' . print_r($sth->errorInfo()));
	}

	$all_rolling_text_info = $sth->fetchAll();

	$lastupdate_string = "";
	foreach($all_rolling_text_info as $rolling_text_info){
		$lastupdate_string .= $rolling_text_info{"lastupdate"}." ";
	}
?>

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
	<title>Dirsignage</title>

	<!-- Basic Page Needs
	================================================== -->
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

	<!-- Favicons
	================================================== -->
	<link rel="shortcut icon" href="../html/images/favicon.ico">

	<!-- Mobile Specific Metas
	================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />


	<!-- CSS
	================================================== -->
	<link href="../html/css/style.css" rel="stylesheet" type="text/css" media="screen">
	<!-- use font awesome -->
	<link href="../html/css/font-awesome.min.css" rel="stylesheet" type="text/css" media="screen">
	<!-- styles needed by jScrollPane -->
	<link type="text/css" href="../html/css/jquery.mCustomScrollbar.css" rel="stylesheet" media="all" />

	<!-- Use jQuery
	================================================== -->
	<script src="../html/js/jquery-1.11.1.min.js"></script>

	<!-- the mousewheel plugin - optional to provide mousewheel support -->
	<script type="text/javascript" src="../html/js/jquery.mousewheel.js"></script>

	<!-- the jScrollPane script -->
	<script type="text/javascript" src="../html/js/jquery.mCustomScrollbar.js"></script>

	<!-- General Script -->
	<script src="../html/js/general.js"></script>

	<!-- IE Support
	================================================== -->
	<!--[if lt IE 9]>
	<!--<link href="../html/css/ie.css" rel="stylesheet" type="text/css" media="screen">-->
	<script src="../html/js/html5shiv.js"></script>
	<script src="../html/js/selectivizr-and-extra-selectors.min.js"></script>
	<![endif]-->



	<!-- jScrollPane -->
	<script>
		(function($){
			$(window).load(function(){

				$("#search_result").mCustomScrollbar({
					scrollButtons:{enable:true},
					theme:"light-thick",
					scrollbarPosition:"outside"
				});

			});
		})(jQuery);
	</script>


	<!-- Jquery Marquee -->
	<script defer src="../html/js/jquery.marquee.js"></script>
	<script type="text/javascript">

		$(function () {
			$('.marquee').marquee('pointer').mouseover(function () {
				$(this).trigger('stop');
			}).mouseout(function () {
					$(this).trigger('start');
				}).mousemove(function (event) {
					if ($(this).data('drag') == true) {
						this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
					}
				}).mousedown(function (event) {
					$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
				}).mouseup(function () {
					$(this).data('drag', false);
				});
		});
	</script>


	<script type="text/javascript">
		$(function(){
			$("body").attr("oncontextmenu", "return false;");
		});

	</script>

	<script type="text/javascript">
		var lastupdate_string = '<?=$lastupdate_string; ?>';

		function check_rolling_text(lastupdate_string){


			$.ajax({url: 'ajax_rolling_text.php',

				type: 'GET',

				data:{lastupdate_string:lastupdate_string},

				dataType: 'html',

				timeout: 2000,

				error: function(){
					//alert('Error loading PHP document');
					check_rolling_text();
				},

				success: function(result){

					if(result != "2"){
						$(".marquee_list").empty();
						$(".marquee_list").html(result);
					}
				}



			});
		}

		setInterval(function () {
			check_rolling_text(lastupdate_string);
		}, 10000);
	</script>

</head>

<body class="bg-6" style="overflow-x: hidden;overflow-y: hidden;">

<div id="marquee_container">
	<div id="marquee_container_bg">
		<div id="marquee_wrapper" >

			<marquee behavior="scroll"
			         direction="left"
			         height="90"
			         width="950"
			         scrollamount="1"
			         scrolldelay="10"
			         truespeed onmouseover="this.stop()" onmouseout="this.start()">
				<ul class="marquee_list">
					<?php
						foreach($all_rolling_text_info as $rolling_text_info){
							echo '<li>'.$rolling_text_info{"content_en"}.'</li>';
						}
					?>
				</ul>
			</marquee>

		</div><!-- /// #marquee_wrapper ends /// -->
	</div>


</div>

<div class="clearfix"></div>


</body>
</html>


Youez - 2016 - github.com/yon3zu
LinuXploit