try{ parent.getTopToolbarObj().resizeYoutubeWindow(); }catch(e){} "); wrt($html); } wrt(""); exit(0); //---------------------------------- srchBox() ------------------------------------ function srchBox($q,$category,$allbtndisplay){ global $roundedcorners,$bgcolor,$dir,$dirlink,$gLoggedIn,$shownewvid,$movers; ?>

       /
         

 
".$v.""); } //------------ get youtube vids --------------- function getYouTubeVids($find){ $txt=";;"; if(!$find)return $txt; $DEVELOPER_KEY = 'AIzaSyDDb6Gebr9KOsRn1ZYuUfq5cFTiLf5tiVo'; $client = new Google_Client(); $client->setDeveloperKey($DEVELOPER_KEY); $youtube = new Google_Service_YouTube($client); try { $searchResponse = $youtube->search->listSearch('id,snippet', array( 'q' => $find, 'maxResults' => 30, 'type' => 'video', 'safeSearch' => 'none', )); $videos = ''; foreach ($searchResponse['items'] as $searchResult) { switch ($searchResult['id']['kind']) { case 'youtube#video': $tit=$searchResult['snippet']['title']; $tit=_rep($tit,"'",""); $tit=_rep($tit,";",":"); $vid=$searchResult['id']['videoId']; $txt.="".$vid.";".$tit.";;"; break; } } }catch (Google_Service_Exception $e) { exit('

A service error occurred: %s

'.htmlspecialchars($e->getMessage())); }catch (Google_Exception $e) { exit('

An client error occurred: %s

'.htmlspecialchars($e->getMessage())); } return $txt; } //---------------------------------- format() ------------------------------------ /* function format($txt){ global $cnt,$hicolor,$fgcolor,$gLoggedIn,$shownewvid; $rawtxt=","; $v=""; $a=_split($txt,";;"); for($i=1;$i". "". "". "". "". "". "
".$tit. "
". "
". ""; if($shownewvid){ $txt=$txt." "; } $txt=$txt."  ". "
". ""; $v=$v.$txt; //$rawtxt.="@vid@".$tid.";".$tit.","; $rawtxt.="@vid@".$tid.";,"; } } $_SESSION["lastyoutubelist"]=$rawtxt; $cnt=$i; return $v; } */ function format($txt){ global $cnt,$hicolor,$fgcolor,$gLoggedIn,$shownewvid; $rawtxt=","; $v=""; $a=_split($txt,";;"); for($i=1;$i"); //foreach (preg_split('//u', $tit, null, PREG_SPLIT_NO_EMPTY) as $char) { // echo $char . " - " . bin2hex($char) . "
"; //} $tit = str_replace(['"', '"', '“', '”', '„', '‟'], '', $tit); $tit = str_replace([''', '"', '“', '”', '„', '‟'], '', $tit); //echo("new=".$tit."
"); $txt="". ""; $v=$v.$txt; $rawtxt.="@vid@".$tid.";".$tit.","; } } $_SESSION["lastyoutubelist"]=$rawtxt; $cnt=$i; return $v; } //-------------------------------- decode() ---------------------------------- function decode($x){ $tmp=replace($x,"<","
<"); //tmp=replace(tmp,"
</","</") return $tmp; } ?>
". "". "". "". "". "
".$tit. "
". "
". ""; if($shownewvid){ $txt=$txt." "; } $txt=$txt."  ". "
". "