config.php kodu
[/php]
index.php kodu
nereye eklemem lazım yardımcı olursanız minetar kalırım teşekürler
Kod:
<?php
// ___ ____ _ ______ _ _ _ _ _
// | \/ (_) (_) | ___(_) | | | | | | |
// | . . |_ _ __ _ | |_ _| | ___ | |_| | ___ ___| |_
// | |\/| | | '_ \| | | _| | | |/ _ \ | _ |/ _ \/ __| __|
// | | | | | | | | | | | | | | __/ | | | | (_) \__ \ |_
// \_| |_/_|_| |_|_| \_| |_|_|\___| \_| |_/\___/|___/\__|
//
// by GalaxyScripts.com version 1.5
// original source code by Jim (j-fx.ws)
////////////////////////////////////////////////////////
$fop = fopen('secure/settings.mfh', 'r');
$content = fread($fop, '999');
fclose($fop);
$content = explode("|", $content);
$compname = "$content[0]";
////Your Company Name
$slogan = "$content[1]";
//// Your Company Slogan
$scripturl = "$content[2]";
//// the URL to this script with a trailing slash
$adminpass = $content[16];
//// set this password to something other than default
//// it will be used to access the admin panel
$email = $content[17];
//// your eMail-Adress for abuse/support and user registration page
$maxfilesize = $content[3];
//// the maximum file size allowed to be uploaded (in megabytes)
$downloadtimelimit = $content[4];
//// time users must wait before downloading another file (in minutes)
$uploadtimelimit = $content[5];
//// time users must wait before uploading another file (in minutes)
$nolimitsize = $content[6];
//// if a file is under this many megabytes, there is no time limit
$deleteafter = $content[7];
//// delete files if not downloaded after this many days
$downloadtimer = $content[8];
//// length of the timer on the download page (in seconds)
$LANGUAGE_LIST = Array(
"english",
"german",
"italian"
);
//// list of accectable languages
$language = $content[15];
if ($content[9]=="false")
$result9 = false;
else
$result9 = true;
$enable_filelist = $result9;
//// allows users to see a list of uploaded files. set to false to disable
if ($content[10]=="false")
$result10 = false;
else
$result10 = true;
$shourturl = $result10;
//// Short url Eg yourdomain.com/13232 needs mod_rewrite enabled. For More Info See Our Froum
if ($content[11]=="false")
$result11 = false;
else
$result11 = true;
$emailoption = $result11;
//// set this to true to allow users to email themselves the download links
if ($content[12]=="false")
$result12 = false;
else
$result12 = true;
$passwordoption = $result12;
//// set this to true to allow users to password protect their uploads
if ($content[13]=="false")
$result13 = false;
else
$result13 = true;
$descriptionoption = $result13;
//// set this to true to disable the description field
if ($content[14]=="false")
$result14 = false;
else
$result14 = true;
$topten = $result14;
//// Make It true if you want to enable Top ten files
$perpage = 15;
//// if $enable_filelist is true (above), how many files to display per page (recommended default is 50);
//$categories = array("Documents","Applications","Audio","Misc");
//// remove the //'s from the above line to enable categories
//// Users will be able to choose from this list of categories
//$allowedtypes = array("txt","gif","jpg","jpeg");
//// remove the //'s from the above line to enable file extention blocking
//// only file extentions that are noted in the above array will be allowed
$pps1 = $content[18];
//// the hits shows on admin's filelist
$pps2 = $content[19];
//// the hits shows on filelist
$pps3 = $content[20];
//// the hits shows on admin's filelist
$style = $content[21];
//// The Style of your MiniFileHost
$your_name = $content[26];
//// Your Name
$your_street = $content[22];
//// Your Street
$your_city = $content[23];
//// Your Name
$your_url = $content[24];
//// Your Internet
$your_phone = $content[25];
//// Your Phone-Number
$your_aemail = $content[27];
//// Your Abuse-EMail
?>
index.php kodu
Kod:
<?php
// ___ ____ _ ______ _ _ _ _ _
// | \/ (_) (_) | ___(_) | | | | | | |
// | . . |_ _ __ _ | |_ _| | ___ | |_| | ___ ___| |_
// | |\/| | | '_ \| | | _| | | |/ _ \ | _ |/ _ \/ __| __|
// | | | | | | | | | | | | | | __/ | | | | (_) \__ \ |_
// \_| |_/_|_| |_|_| \_| |_|_|\___| \_| |_/\___/|___/\__|
//
// by GalaxyScripts.com version 1.5
// original source code by Jim (j-fx.ws)
////////////////////////////////////////////////////////
include("./config.php");
include("./header.php");
$userip=$_SERVER['REMOTE_ADDR'];
$time=time();
///////////////////////////////////////////TIMER////////////////////////////////////
if(file_exists("./uploader/".$userip.".mfh"))
{
$downloaders = fopen("./uploader/".$userip.".mfh","r+");
flock($downloaders,2);
while (!feof($downloaders)) {
$user[] = chop(fgets($downloaders,65536));
}
fseek($downloaders,0,SEEK_SET);
ftruncate($downloaders,0);
$youcantdownload = 0;
foreach ($user as $line) {
list($savedip,$savedtime) = explode('|',$line);
if ($savedip == $userip) {
if ($time < $savedtime + ($uploadtimelimit*60)) {
$youcantdownload = 1;
$downtimer = $time - $savedtime ;
$counter = $uploadtimelimit*60 - $downtimer;
}
}
if ($time < $savedtime + ($uploadtimelimit*60)) {
fputs($downloaders,"$savedip|$savedtime\n");
}
}
if($youcantdownload==1) {
?><center><table style="margin-top:0px;width:790px;height:400px;"><tr><td style="border:1px #AAAAAA solid;height:100%;background-color:#FFFFFF;padding:20px;text-align:left;" valign=top><?
echo "<h1><center>Upload Time Limit</center></h1>";
?><script type="text/javascript">
var running = false
var endTime = null
var timerID = null
var totalMinutes = <?php echo $counter;?>;
function startTimer() {
running = true
now = new Date()
now = now.getTime()
endTime = now + (1000 * totalMinutes);
showCountDown()
}
function showCountDown() {
var now = new Date()
now = now.getTime()
if (endTime - now <= 0) {
clearTimeout(timerID)
window.location.reload()
} else {
var delta = new Date(endTime - now)
var theMin = delta.getMinutes()
var theSec = delta.getSeconds()
var theTime = theMin
theTime += ((theSec < 10) ? ":0" : ":") + theSec
document.getElementById('SessionTimeCount').innerHTML = 'Please wait ( <font color="#FF0000">' + theTime + '</font> ) Minutes for Upload'
if (running) {
timerID = setTimeout("showCountDown()",1000)
}
}
}
window.onload=startTimer
</script>
<center><span id="SessionTimeCount"></span></center><br /><br /><br /><br />
<?
include("./bottomads.php");
?><td><tr><table><?
include("./footer.php");
die();
}
}
///////////////////////////////////////////TIMER///////////////////////
$sizehosted = 0; //get the storage size hosted
$handle = opendir("./storage/");
while($file = readdir($handle)) {
$sizehosted = $sizehosted + filesize ("./storage/".$file);
if((is_dir("./storage/".$file.'/')) && ($file != '..')&&($file != '.'))
{
$sizehosted = $sizehosted + total_size("./storage/".$file.'/');
}
}
$sizehosted = round($sizehosted/1024/1024,2);
if(isset($allowedtypes)){ //get allowed filetypes.
$types = implode(", ", $allowedtypes);
$filetypes = "<b>$lang[allfile]</b> ".$types."<br /><br />";
} else { $filetypes = ""; }
if(isset($categories)){ //get categories
$categorylist = "$lang[cat2]: <select name=\"category\">";
foreach($categories as $category){
$categorylist .= "<option value=\"".$category."\">".$category."</option>";
}
$categorylist .= "</select><br />";
} else { $filetypes = ""; }
if(isset($_GET['page']))
$p = $_GET['page'];
else
$p = "0";
include 'total.php';
switch($p) {
case "tos": include("./pages/tos.php"); break;
case "faq": include("./pages/faq.php"); break;
case "img": include("./pages/image.php"); break;
default: include("./pages/upload.php"); break;
}
include("./footer.php");
?>
nereye eklemem lazım yardımcı olursanız minetar kalırım teşekürler