Hi, Khách!
![]() | ![]() ![]() ![]() ![]() |
Bạn mở file /incfiles/class/bbcode.php ra, thêm vào sau
class bbcode extends core
{
code này
public static function get ($url)
{
$header[ = "Accept-Language: en-us,en;q=0.5";
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_ENCODING, "");
$data= curl_exec ($curl);
curl_close ($curl);
return $data ;
}
public static function xvd ($in)
{
preg_match ('#\[vd\(http://www.xvideos.com/|http://xvideos.com/|www.xvideos.com/)(. )\[/vd#is',$in,$u);
$htm = self::get ($u[1.$u[2);
preg_match ('#<div id="player" style="font-size:18px; color:black; font-weight: bold;background-color: \#000000;">(.+?)flashvars="(.+?)"(.+?)</div>#s',$htm,$out);
$a = '<embed type="application/x-shockwave-flash" src="http://static.xvideos.com/swf/xv-player.swf" id="flash-player-embed" wmode="transparent" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="';
$c = '" width="600" height="500" />';
$b = $out[2;
return preg_replace ('#\[vd\(http://www.xvideos.com/|http://xvideos.com/|www.xvideos.com/)(. )\[/vd\#is',$a.$b.$c,$in);
}
Copy code
{
$header[ = "Accept-Language: en-us,en;q=0.5";
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_ENCODING, "");
$data= curl_exec ($curl);
curl_close ($curl);
return $data ;
}
public static function xvd ($in)
{
preg_match ('#\[vd\(http://www.xvideos.com/|http://xvideos.com/|www.xvideos.com/)(. )\[/vd#is',$in,$u);
$htm = self::get ($u[1.$u[2);
preg_match ('#<div id="player" style="font-size:18px; color:black; font-weight: bold;background-color: \#000000;">(.+?)flashvars="(.+?)"(.+?)</div>#s',$htm,$out);
$a = '<embed type="application/x-shockwave-flash" src="http://static.xvideos.com/swf/xv-player.swf" id="flash-player-embed" wmode="transparent" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="';
$c = '" width="600" height="500" />';
$b = $out[2;
return preg_replace ('#\[vd\(http://www.xvideos.com/|http://xvideos.com/|www.xvideos.com/)(. )\[/vd\#is',$a.$b.$c,$in);
}
Copy code
rồi thêm vào sau
public static function tags($var)
{
code này
rồi thêm vào trước
<a href="javascript:tag(\'\', \'\')">
code này
rồi save lại test coi.
Nguồn: Teenclub.info

Trực Tuyến:
Khách: 1