View Single Post
Old 02-27-2009, 09:08 AM   #1
redLine
Member
|Forum Newbie|
 
Join Date: Aug 2007
Posts: 11
redLine is on a distinguished road
Default Clipshare Randon Video On External Site

/*
Kullanım : Siteurl karsisina sitenin video cekeceginiz clipshare url'sini yazın / ile bitirmeyin
Sitede kac video oldugunu yazın .
-----
Usage : Please enter siteurl enter Line 12 Not Ending slash
and how many videos of site example : 1500 change value....
*/


PHP Code:
<?

@error_reporting(E_ALL & ~E_NOTICE);
@
ini_set('error_reporting'E_ALL & ~E_NOTICE);

header("Content-type:text/html; charset=UTF-8");

$siteurl "http://example.com/folder";  
$kacvideovar "1500";

$rastgele rand(1,$kacvideovar);
Function 
titleclear($title){
    
$title str_replace("<title>","",$title);  
    
$title str_replace("</title>","",$title); 
    return 
$title;
 }
    
$data file("$siteurl/video/$rastgele");
    
$videoadi =  titleclear($data[4]);
        if (
strstr($videoadi,'<meta')){
        echo 
"<img src=\"videonotavailable.jpg\">";
        exit;
        }
        echo 
"<b>".$videoadi."</b><br>";    
echo 
"<embed src=\"http://example.com/folder/player.swf\" width=\"360\" height=\"270\" allowscriptaccess=\"always\" allowfullscreen=\"true\" flashvars=\"width=360&height=270&file=http://example.com/folder/flvideo/$rastgele.flv&http://example.com/folder/thumb/1_$rastgele.jpg&displayheight=270&link=http://example.com/folder/video/$rastgele&searchbar=false&linkfromdisplay=true&recommendations=http://example.com/folder/feed_embed.php?v=f3dc4f3cf45f02c61c0c\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" />";
and upload image : http://www.pisigns.com/images/videonotavailable.jpg
script folder .
Thnx
redLine is offline   Reply With Quote