Размер файла: 866B
<?php
set_time_limit(0);
if(@empty($_GET['id'])){
header('Location: index.php');exit;} else {$id = abs(intval($_GET['id']));}
if(isset($_GET['jad'])){
header('Location: http://owaps.com/jad.php?id='.$id);
} else
{
$get = get_headers('http://owaps.com/load.php?id='.$id,1);
if(empty($get['Location'])){header('Location: index.php');exit;}
if(!is_dir('files/'.basename(dirname($get['Location']))))
{
mkdir('files/'.basename(dirname($get['Location'])));
chmod('files/'.basename(dirname($get['Location'])),0777);
}
$na = explode('/',$get['Location']);
if(!is_file('files/'.basename(dirname($get['Location'])).'/'.$na[(sizeof($na)-1)]))
{
copy($get['Location'],'files/'.basename(dirname($get['Location'])).'/'.$na[(sizeof($na)-1)]);
}
header('Location: files/'.basename(dirname($get['Location'])).'/'.$na[(sizeof($na)-1)]);
}
?>