Файловый менеджер - Редактировать - /var/www/fetish/core/src/scrape.php
Назад
<?php namespace fetish; use \fetish\db; class scrape { public $source, $url, $video; public function fetchVideo() { if($this->source == 'xpee'){ return $this->xpee(); } if($this->source == 'poopeegirls'){ return $this->poopeegirls(); } return $this->video; } private function xpee() { $html = file_get_contents($this->url); preg_match_all("/http:\/\/www.xpee.com\/application\/\/assets\/videos\/(.*?)\/video.mp4/s",$html,$matches); return 'https://www.xpee.com/application//assets/videos/'.$matches[1][0].'/video.mp4'; return $this->video; } private function poopeegirls() { $html = file_get_contents($this->url); preg_match_all("/<video id='video' src='(.*?)' poster='(.*?)' preload='metadata' loop controls><\/video>/s",$html,$matches); return $matches[1][0]; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка