 |
Rapidshare.de
Megaupload.com
MyTempDir.com
Getfile.biz
Webfile.ru |
|
switchCell(3);" : "
"; ?>
$record)
{
foreach(unserialize($record) as $field => $value)
{
$listReformat[$key][$field] = $value;
if($field == "date")
{
$date = $value;
}
}
$list[$date] = $listReformat[$key];
unset($list[$key], $listReformat[$key]);
}
}
switch($_GET["act"])
{
case "delete":
if(count($_GET["files"]) < 1)
{
echo "Select Atleast One File
";
}
else
{
?>
".$file["name"]." is removed.
";
unset($list[$_GET["files"][$i]]);
}
else
{
echo "Unable to Remove File!!!!! ".$file["name"]."!
";
}
}
else
{
echo "File ".$file["name"]." is not Found!
";
}
}
if(!updateListInFile($list))
{
echo "Unable to renew the list!
";
}
}
else
{
?>
";
}
else
{
?>
";
}
else
{
?>
mail('File ".basename($file["name"])." File is sent for the address ".$_GET["email"]."!', '".basename($file["name"])."');\r\n
";
}
else
{
echo "Error with the sending of file!
";
}
}
else
{
echo "File ".$file["name"]." it is not found!
";
}
}
}
break;
case "split":
if(count($_GET["files"]) < 1)
{
echo "Select one file at least.
";
}
else
{
?>
".basename($file["name"])." Of Parts ".bytesToKbOrMb($partSize).", Method - Total Commander...
";
$totalParts = ceil($fileSize / $partSize);
echo "Total Parts parts: ".$totalParts."
"; $fileTmp = $fileNamePerman = basename($file["name"]);
while(strpos($fileTmp, ".")) { $fileName .= substr($fileTmp, 0,
strpos($fileTmp, ".") + 1); $fileTmp = substr($fileTmp,
strpos($fileTmp, ".") + 1); } $fileName = substr($fileName, 0, -1);
$path = stripslashes($saveTo.(strstr(realpath("./"), ":") ? "\\\\" :
"/")); for($j = 0; $j < $totalParts; $j++) { if($j == 0) {
$fileChunk = substr($fileContents, 0, $partSize);
if(!@write_file($path.$fileName.".crc",
"filename=".basename($file["name"])."\r\n"."size=".$fileSize."\r\n"."crc32=".$crc."\r\n"))
{ echo "Unable to Save into File".$fileName.".crc"." !
"; } else { $time = explode(" ", microtime()); $time =
str_replace("0.", $time[1], $time[0]); $list[$time] = array("name"
=> $path.$fileName.".crc", "size" =>
bytesToKbOrMb(strlen(read_file($path.$fileName.".crc"))), "date" =>
$time, "comment" => "Title part of the file ".$fileNamePerman); }
if(!@write_file($path.$fileName.".001", $fileChunk)) { echo "Unable to
Save into File ".$fileName.".001"." !
"; } else { $time = explode(" ", microtime()); $time =
str_replace("0.", $time[1], $time[0]); $list[$time] = array("name"
=> $path.$fileName.".001", "size" =>
bytesToKbOrMb(strlen($fileChunk)), "date" => $time, "comment" =>
($j + 1)." th part (from ".$totalParts.") parts of the file
".$fileNamePerman); } } elseif($j == $totalParts - 1) { $fileChunk =
substr($fileContents, $j * $partSize); $num = strlen($j + 1) == 2 ?
"0".($j + 1) : (strlen($j + 1) == 1 ? "00".($j + 1) : ($j + 1));
if(!@write_file($path.$fileName.".".$num, $fileChunk)) { echo "Unable
to Save into File ".$fileName.".".$num." !
"; } else { $time = explode(" ", microtime()); $time =
str_replace("0.", $time[1], $time[0]); $list[$time] = array("name"
=> $path.$fileName.".".$num, "size" =>
bytesToKbOrMb(strlen($fileChunk)), "date" => $time, "comment" =>
($j + 1)."th part (from ".$totalParts.") parts of the file
".$fileNamePerman); } } else { $fileChunk = substr($fileContents, $j *
$partSize, $partSize); $num = strlen($j + 1) == 2 ? "0".($j + 1) :
(strlen($j + 1) == 1 ? "00".($j + 1) : ($j + 1));
if(!@write_file($path.$fileName.".".$num, $fileChunk)) { echo "Unable
to Save into File ".$fileName.".".$num." !
"; } else { $time = explode(" ", microtime()); $time =
str_replace("0.", $time[1], $time[0]); $list[$time] = array("name"
=> $path.$fileName.".".$num, "size" =>
bytesToKbOrMb(strlen($fileChunk)), "date" => $time, "comment" =>
($j + 1)."th part (from ".$totalParts.") parts of the file
".$fileNamePerman); } } } unset($fileName);
if(!updateListInFile($list)) { echo "Unbale to Update List!
";
}
} //if(file_exists($file["name"]))
}
break;
case "rename":
if(count($_GET["files"]) < 1)
{
echo "Select one file at least.
";
}
else
{
?>
".$file["name"]." is Renamed to".basename($newName)."
";
$list[$_GET["files"][$i]]["name"] = $newName;
}
else
{
echo "Unable to Rename File.".$file["name"]."!
";
}
}
else
{
echo "File ".$file["name"]." Not Found!
";
}
}
if($smthExists)
{
if(!updateListInFile($list))
{
echo "Unable to Update List!
";
}
}
break;
}
if($list)
{
?>
|
|
|