Just to miss Jobs.
PHP Code
"/\s*\{youku\s*id_ (. *)}\s*/i", "callback" = "compile"); foreach ($cfgYouku as $val) {if (Isset ($val ["callback"])) {$template = Preg_replace_callbac K ($val ["Rege"], $val ["Callback"], $template); }}/** * * forjobs * @param unknown_type $matched */function Compile ($matched) {$url = $matched [0]; Preg_match ("/id\_ (\w+)/", $url, $matches); if (empty ($matches)) {Preg_match ("#v_playlist \/#", $url, $mat); if (! $mat) return false; $html = Self::_fget ($url); Preg_match ("#videoId2 \s*=\s*\ ' (\w+) \ ' #", $html, $matches); if (! $matches) return false; } $link = "http://v.youku.com/player/getplaylist/videoids/{$matches [1]}/timezone/+08/version/5/source/out? Password=&ran=2513&n=3 "; $retval = Filegetcontent ($link); if ($retval) {$json = Json_decode ($retval, true); $data [' img '] = $json [' Data '][0][' logo ']; $data [' title '] = $json [' Data '][0][' title ']; $data [' url '] = $url; $data [' swf '] = "http://player.youku.com/player.php/sid/{$matches [1]}/v.swf"; if ($data) $data [' object '] = "". $data [' title ']."
".""; return $data [' object ']; } else {return false; }}/** * * @author murain * @param String $url */function filegetcontent ($url) {$ch = Curl_init (); $timeout = 10; curl_setopt ($ch, Curlopt_url, $url); curl_setopt ($ch, Curlopt_returntransfer, 1); curl_setopt ($ch, Curlopt_connecttimeout, $timeout); curl_setopt ($ch, curlopt_followlocation, 1); $contents = Trim (curl_exec ($ch)); Curl_close ($ch); return $contents;}
------Solution--------------------
------Solution--------------------
Amid the Lord to walk well.
------Solution--------------------
I can't read it.
------Solution--------------------
The great man of technology. Worship
------Solution--------------------
Pursuit of the details of the pursuit of perfection!
------Solution--------------------
Jobs is important.
------Solution--------------------
nice!
The most amid to commemorate the Lord of the Wall Street is the Americans, they all raise the slogan: "We need jobs!"
------Solution--------------------
.. Can not understand AH ~
The perfect combination of technology and art ~ ~ ~
------Solution--------------------
Php
------Solution--------------------