Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
if($_POST['submit'] and strlen($_POST['url'])>0){
$file = $_POST['url'];
$number = explode(":", $file);
$i = substr($number[2],0 ,2);
if(fopen("http://media.vbox7.com/s/$i/$number[2].flv","r"))
{
$url = "http://media.vbox7.com/s/$i/$number[2].flv";
} else {
for($ii = 2; $ii <= 15; $ii++)
{
if($ii < 10)
{
if(fopen("http://media0$ii.vbox7.com/s/$i/$number[2].flv", "r"))
{
$url = "http://media0$ii.vbox7.com/s/$i/$number[2].flv";
}
} else {
if(fopen("http://media$ii.vbox7.com/s/$i/$number[2].flv", "r"))
{
$url = "http://media$ii.vbox7.com/s/$i/$number[2].flv";
}
}
}
}
list($width, $height, $type, $attr) = getimagesize("http://i47.vbox7.com/p/$number[2]3.jpg");
$string = file_get_contents($file);
$pet=explode('<title>',$string);
$edno=explode('</title>',$pet[1]);
echo "Title : " .$edno[0] . "<br />"; // name
echo "<br />"; //information
echo "<a href='".$url."'><img src='http://i47.vbox7.com/p/$number[2]3.jpg'"; // image
echo "<br />Download Video !";
?>
<script type="text/javascript">
var fo = new SWFObject("http://i47.vbox7.com/player/ext.swf?vid=<?= $url ?>", "v-mania", "512", "439", "9", "#f3f3f3", true);
fo.addParam("AllowScriptAccess", "never");
fo.addParam("allowFullScreen", "true");
fo.addVariable("config", "{ showPlayListButtons: true, playList: [ { url: '<? echo "http://i47.vbox7.com/p/$number[2]3.jpg" ?>', overlayId: 'play' }, { url: '<?= $url ?>' }, { overlayId: 'play' } ], loop: true, initialScale: 'orig', autoBuffering: true, useNativeFullScreen: true }");
fo.write("fp1");
</script>
<?
} else {
echo '<form method="post" action="">
Post link like this: <b>http://vbox7.com/play:ef113908</b><br>
<input type="text" name="url" size="35" value="'.$_POST['url'].'"><br>
<input type="submit" name="submit" style="font-style: bold;" value="Download">
</form><br />';
}
?>
<?
if(eregi('vbox7.com',$_POST['video']) && isset($_POST['submit'])){
$fail = explode(':',$_POST['video']);
$dir = substr($fail[2],0,2);
$link1 = "http://media.vbox7.com/s/$dir/$fail[2].flv";
if(@fopen($link1, "r"))
{
$link="$link1";
}
else{
for($x = 2; $x<=5; $x++)
{
$link1 = "http://media0$x.vbox7.com/s/$dir/$fail[2].flv";
}
if(@fopen($link1, "r"))
{
$link="$link1";
}
else{
for($x = 2; $x<=4; $x++)
{
$link1 = "http://media0$x.vbox7.com/s/$dir/$fail[2].flv";
}
}
if(@fopen($link1, "r"))
{
$link="$link1";
}
else{
for($x = 2; $x<=3; $x++)
{
$link1 = "http://media0$x.vbox7.com/s/$dir/$fail[2].flv";
}
}
if(@fopen($link1, "r"))
{
$link="$link1";
}
else{
for($x = 2; $x<=2; $x++)
{
$link1 = "http://media0$x.vbox7.com/s/$dir/$fail[2].flv";
}
}
if(@fopen($link1, "r"))
{
$link="$link1";
}
else{
for($x = 2; $x<=1; $x++)
{
$link1 = "http://media0$x.vbox7.com/s/$dir/$fail[2].flv";
}
}
}
echo'<img src="http://i47.vbox7.com/p/'.$fail[2].'3.jpg" width="120" height="90" border="0" alt=""><br><br>';
echo "<a href='".$link."'>Свали</a> ";
}
?>
<br />
If you are using XAMPP (http://www.apachefriends.org/en/index.html) all you have to do is uncomment this line (line 582):
extension=php_curl.dll
in the xampp\apache\bin\php.ini file.