всички сървъри на vb0x7

nSk

Registered
някой ще може ли да ми добави всички сървъри на vb0x7??

Код:
<?PHP 			  include"conf.php";  include"tpl/header.php"; include"tpl/left.php"; ?>

     
          <TD>
            <DIV class=border>
            <DIV class=m_header>Всички клипчета</DIV></DIV>
            <DIV class=box>
           

<center>
<?PHP

if(!session_is_registered("username")){ 
echo"Не си логнат!";
}
else{
?>
<form method="POST"> 
URL на клипа от vbox: <input type="text" name="url" class=input>
    Категория*:
    <select name='kategoriq'> 
<?
$query = @mysql_query("SELECT * FROM  cats ORDER BY id ASC") or die(mysql_error()); 
while($row = @mysql_fetch_array($query)) 
{ 
echo "<option value='$row[id]'>$row[kategoriq]"; 
} 
?>
</select> 
<br> <input name="clips" type="submit" value="Добави!" class=button> 
</form> 
<?php 
if(eregi('vbox7.com',$_POST['url'])){
$kategoriq="$_POST[kategoriq]";
$fail = explode(':',$_POST['url']); 
$dir = substr($fail[2],0,2);
$source = file_get_contents($_POST['url']);
$title = explode("<title>", $source); 
$title = explode("</title>", $title[1]);
$title=str_replace("s2","",$title[0]);
$title=iconv('utf-8','windows-1251',urldecode($title));
$clip="http://media.vbox7.com/s/$dir/$fail[2].flv";
$pic="http://i47.vbox7.com/p/$fail[2]3.jpg";

$number = explode(":", $_POST['url']); 
$i = substr($number[2],0 ,2); 
$link1 = "http://media.vbox7.com/s/$i/$number[2].flv"; 
if(@fopen($link1, "r")) 
{ 
$link="$link1";
} 
else{
for($x = 2; $x<=5; $x++)
{ 
$link = "http://media$x.vbox7.com/s/$i/$number[2].flv"; 
}
} 
if($number[2]==NULL){echo"Грешен линк!";}else{
$img="http://i47.vbox7.com/p/$fail[2]4.jpg";

$checkurl = mysql_query("SELECT url FROM clips WHERE url='$link'"); 
$checkurl= mysql_num_rows($checkurl); 
if ($checkurl>0) { 
echo "Този клип вече е бил добавян"; 
}else{  
$data = date("m.d.y");
$query = mysql_query("INSERT INTO `clips` (ime, url, pic,dobawil, data, kategoriq, id) VALUES('$title','$link','$img','$_SESSION[username]','$data','$kategoriq','NULL')") or die(mysql_error());  
echo "Успешно добави клип!<br><img src=\"$img\"><br>$title<br><a href=\"index.php\">Върни се в началната страница</a>";  
} 
} 
}
if(eregi('youtube',$_POST['url'])){
$video="$_POST[url]";
$video2="$_POST[url]";
$kategoriq="$_POST[kategoriq]";
$video=str_replace("http://youtube.com/watch?v=", "http://cache.googlevideo.com/get_video?video_id=", $video);
$video=str_replace("http://www.youtube.com/watch?v=","http://cache.googlevideo.com/get_video?video_id=", $video);
$video=str_replace("&mode=related&search=", "", $video);
 $source = file_get_contents($_POST['url']);
$title = explode("<title>", $source); 
$title = explode("</title>", $title[1]); 
$title=str_replace("YouTube - ","",$title[0]);
$title=iconv('utf-8','windows-1251',urldecode($title));
$pic=str_replace(".flc", "" , $video);
$pic=str_replace("http://cache.googlevideo.com/get_video?video_id=", "", $pic);
$pic="http://img.youtube.com/vi/$pic/default.jpg";
if($pic == "http://img.youtube.com/vi/$video/default.jpg"){echo"Грешен линк";}
else{
$checkurl = mysql_query("SELECT url FROM clips WHERE url='$video'"); 
$checkurl= mysql_num_rows($checkurl); 
if ($checkurl>0) { 
echo "Този клип вече е бил добавян"; 
}else{  
$data = date("m.d.y");
$query = mysql_query("INSERT INTO `clips` (ime, url, pic,dobawil, data, kategoriq, id) VALUES('$title','$video','$pic','$_SESSION[username]','$data','$kategoriq','NULL')") or die(mysql_error());
echo "Успешно добави клип!<br><img src=\"$pic\"><br>$title<br><a href=\"index.php\">Върни се в началната страница</a>";    
}}}
}
?>
</TABLE></DIV>
<?PHP 	include"tpl/footer.php"; ?>
 

Back
Горе