Last active
May 1, 2020 18:42
-
-
Save sinaparse40/5ebcdf185184b56a583c75e06f3bb95b to your computer and use it in GitHub Desktop.
دانلود زیرنویس فارسی همانند سابسین
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule .* /index.php [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'config/main.php'; | |
$site_url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
$base = 'https://subscene.com/'; | |
$cookiedomain = str_replace("http://www.","",$base); | |
$cookiedomain = str_replace("https://www.","",$cookiedomain); | |
$cookiedomain = str_replace("www.","",$cookiedomain); | |
$url = $base . $_SERVER['REQUEST_URI']; | |
if($_SERVER['HTTPS'] == 'on'){ | |
$mydomain = 'https://'.$_SERVER['HTTP_HOST']; | |
} else { | |
$mydomain = 'http://'.$_SERVER['HTTP_HOST']; | |
} | |
$curlSession = curl_init(); | |
curl_setopt ($curlSession, CURLOPT_URL, $url); | |
curl_setopt ($curlSession, CURLOPT_HEADER, 1); | |
if($_SERVER['REQUEST_METHOD'] == 'POST'){ | |
curl_setopt ($curlSession, CURLOPT_POST, 1); | |
curl_setopt ($curlSession, CURLOPT_POSTFIELDS, $_POST); | |
} | |
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER,1); | |
curl_setopt($curlSession, CURLOPT_TIMEOUT,30); | |
curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 0); | |
curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, 0); | |
foreach($_COOKIE as $k=>$v){ | |
if(is_array($v)){ | |
$v = serialize($v); | |
} | |
curl_setopt($curlSession,CURLOPT_COOKIE,"$k=$v; domain=.$cookiedomain ; path=/"); | |
} | |
$response = curl_exec ($curlSession); | |
if (curl_error($curlSession)){ | |
print curl_error($curlSession); | |
} else { | |
$response = str_replace("HTTP/1.1 100 Continue\r\n\r\n","",$response); | |
$ar = explode("\r\n\r\n", $response, 2); | |
$header = $ar[0]; | |
$body = $ar[1]; | |
$header_ar = split(chr(10),$header); | |
foreach($header_ar as $k=>$v){ | |
if(!preg_match("/^Transfer-Encoding/",$v)){ | |
$v = str_replace($base,$mydomain,$v); //header rewrite if needed | |
header(trim($v)); | |
} | |
} | |
$body = str_replace($base,$mydomain,$body); | |
include 'custom_header.php'; | |
include 'config/language.php'; | |
include 'include/misc.php'; | |
$body = str_replace('<div class="recent-posts">','<div class="rightad" style="margin-top: -28px;">'. $r_adv ,$body); | |
$body = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $body); | |
print $body; | |
} | |
curl_close ($curlSession); | |
?> |
فقط کافیست به جهت راه اندازی وبسایت، فایل index.php
را در وبسایت خود آپلود کرده و نسخه php خود را روی 5.6 قرار دهید
سپس به راحتی وبسایت شما آماده و قابل استفاده میباشد
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
وبسایت دانلود زیرنویس ساب سین یکی از وبسایت هایی معتبر به جهت دانلود زیرنویس از وبسایت معتبر subscene میباشد
وبسایتی که امروز به شما معرفی میکنیم،وبسایت دانلود زیرنویس subf2m میباشد که در زمینه انتشار زیرنویس فارسی فیلم و سریال فعالیت دارد
کدی را که شما مشاهده میکنید کدی متصل به وبسایت ساب سین میباشد که به راحتی میتوانید وبسایتی مشابه را راه اندازی کنید
نمونه زیرنویسی که توسط این کد منتشر شده است(ربات)
https://subf2m.ir/subtitles/زیرنویس-فارسی-bad-boys-for-life