Файловый менеджер - Редактировать - /var/www/fetish/thumb.php
Назад
<?php require('core/init.php'); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); header('Content-type:image/png'); use \fetish\db; use \fetish\utils; $data = db::query("SELECT * FROM videos WHERE uri = ?",[ $_GET['uri'] ])->first(); if(!$data){ die('Sorry, there was a problem.'); } //Check how old the last scrape was $source = $data->source_thumb; $ch = curl_init(); $headers = array( 'referer: https://poopeegirls.com/' ); curl_setopt($ch, CURLOPT_URL, $source); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // follow redirects //curl_setopt($ch, CURLOPT_AUTOREFERER, 1); // set referer on redirect // Timeout in seconds curl_setopt($ch, CURLOPT_TIMEOUT, 20); $photo = curl_exec($ch); echo $photo; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка