Beispiel #1
0
            if (@file_exists(CLASS_DIR . "sinfo.php")) {
                require_once CLASS_DIR . "sinfo.php";
                echo "<div style='padding-left:5px;text-align:center;width:auto;margin-top:-5px;'><small>{$server['property']}" . $L->sprintf($L->say["page_load"], $maintimer->stop()) . "</small></div>";
            }
        } else {
            echo "<hr />";
        }
        echo "</center></body></html>";
        exit;
    }
}
if ($options['auto_del_time'] > 0) {
    list($ddelay, $autodel_unit_time) = autodel_formatted($options['auto_del_time']);
    echo "<span class=\"c\">" . $L->say['_autodel'] . ":&nbsp;<b class=\"g\">" . $ddelay . "</b>&nbsp;" . $autodel_unit_time . "</span>";
    //auto_del($options['auto_del_time']);
    purge_files($options['auto_del_time']);
}
if ($options['auul'] > 0) {
    echo "&nbsp;||&nbsp;<span class=\"c\">File Allow:&nbsp;<b class=\"g\">" . $options['auul'] . "</b>&nbsp;file" . ($options['auul'] > 1 ? "s" : "") . "</span>";
}
if ($options['limit_timework']) {
    echo "<br /><span class=\"c\">" . $L->say['_timework'] . ":&nbsp;</span><b class=\"s\">" . $options['workstart'] . "</b>&nbsp;" . $L->say['_upto'] . "&nbsp;<b class=\"s\">" . $options['workend'] . "</b>";
}
// If the user submit to upload, go into upload page
if (isset($_GET['action']) && $_GET['action'] == 'upload') {
    // Initialize some variables here
    $uploads = array();
    $total = 0;
    $hostss = array();
    // Sort the upload hosts and files
    foreach ($_POST['files'] as $file) {
Beispiel #2
0
        break;
    case 'auul.php':
    case 'upload.php':
        if (!defined('UPLOAD_DIR')) {
            define('UPLOAD_DIR', HOST_DIR . 'upload/');
        }
        if (!defined('CRLF')) {
            define('CRLF', "\r\n");
        }
        require_once CLASS_DIR . "http.php";
        require_once HOST_DIR . "download/hosts.php";
        break;
    case "lynx.php":
        $server = getServerPlatf(1);
        break;
}
// end switch
if (THIS_SCRIPT == $options['index_file'] || THIS_SCRIPT == "audl.php") {
    require_once CONFIG_DIR . "limitation.php";
}
//Cek ip yg banned || is it listed as authorized ip || check country limit
if ($options["limited_edition"] || $options["limited_area"]) {
    $dlimitation = array($options["limited_edition"], $options["limited_area"]);
    require_once CLASS_DIR . "limit_district.php";
}
login_check();
$deleted = $options['auto_del_time'] > 0 ? purge_files($options['auto_del_time']) : 0;
$options['downloadLimitbyIP'] ? $visitors->purge_files_IP($options['downloadDelayPerIP']) : '';
($options['OnlineVisitor'] || $options['logact']) && $visitors->is_error != 0 ? html_error($visitors->ret_msg, 0) : '';
$options['OnlineVisitor'] ? $visitors->updOnlineUser() : '';
$options['logact'] && !$visitors->is_latestVisitor() ? $visitors->updLogVisitor('IN') : '';
Beispiel #3
0
<?php

require_once 'rl_init.php';
ignore_user_abort(true);
login_check();
// If configs/files.lst is not writable, give a warning
if (!is__writable(CONFIG_DIR . 'files.lst')) {
    html_error(lang(304));
}
// If the download path is not writable, show error
if (!is__writable(DOWNLOAD_DIR)) {
    html_error(DOWNLOAD_DIR . lang(305));
}
purge_files($options['delete_delay']);
register_shutdown_function('pause_download');
$_REQUEST = $_GET = array_merge($_GET, $_POST);
$_REQUEST['premium_acc'] = $_POST['premium_acc'] = $_GET['premium_acc'] = isset($_REQUEST['premium_acc']) && $_REQUEST['premium_acc'] == 'on' ? 'on' : false;
$_REQUEST['cookieuse'] = $_POST['cookieuse'] = $_GET['cookieuse'] = isset($_REQUEST['cookieuse']) && $_REQUEST['cookieuse'] == 'on' ? 'on' : false;
require_once CLASS_DIR . 'cookie.php';
if (!@file_exists(HOST_DIR . 'download/hosts.php')) {
    html_error(lang(127));
}
// require "hosts.php";
require_once HOST_DIR . 'download/hosts.php';
if (!empty($_GET['image'])) {
    require_once CLASS_DIR . 'http.php';
    require_once CLASS_DIR . 'image.php';
    exit;
}
if (isset($_GET['useproxy']) && (empty($_GET['proxy']) || strpos($_GET['proxy'], ':') === false)) {
    html_error(lang(324));
Beispiel #4
0
<?php 
}
?>
<label><input type="checkbox" name="add_comment" id="add_comment" onclick="javascript:GenTag();" />&nbsp;<a onclick="javascript:var diq=d.getElementById('add_comment');if(!diq.checked){diq.checked=true;}GenTag();"><u><?php 
echo $L->say['_genlink'];
?>
</u></a></label>
</td></tr>
<tr id="comment" style="display: none;"><td align="center"><textarea id="cmtarea" name="comment" rows="5" style="color:#666; width:90%; font-family:verdana,lucida,arial; font-size: 7pt;" readonly="yes" onfocus='highlight(this);'></textarea><br /></td></tr>
</tbody>
<tr align="center"><td id="usage"><br />
<?php 
if ($options["auto_del_time"] > 0) {
    list($ddelay, $autodel_unit_time) = autodel_formatted($options['auto_del_time']);
    echo "<span class=\"c\">" . $L->say['_autodel'] . ":&nbsp;<b class=\"g\">" . $ddelay . "</b>&nbsp;" . $autodel_unit_time . "</span>";
    purge_files($options["auto_del_time"]);
}
if ($options["minlimitsize"] > 0) {
    echo "&nbsp;||&nbsp;<span class=\"c\">" . $L->say['_minfilesize'] . ":&nbsp;<b class=\"s\">" . $options["minlimitsize"] . "</b>&nbsp;MB</span>";
}
if ($options["maxlimitsize"] > 0) {
    echo "&nbsp;||&nbsp;<span class=\"c\">" . $L->say['_maxfilesize'] . ":&nbsp;<b class=\"s\">" . $options["maxlimitsize"] . "</b>&nbsp;MB</span>";
}
if (!empty($options["add_ext_5city"])) {
    echo "&nbsp;||&nbsp;<span class=\"c\">" . $L->say['_fakeext'] . ":&nbsp;<b><a style=\"color:red;\" href=\"javascript:;\" title=\"{$L->say['_fakeext_desc']}\">.{$options["add_ext_5city"]}</a></b></span>";
}
if ($options["limit_timework"]) {
    echo "<br /><span class=\"c\">" . $L->say['_timework'] . ":&nbsp;</span><b class=\"s\">{$options["workstart"]}</b>&nbsp;upto&nbsp;<b class=\"s\">{$options["workend"]}</b>";
}
?>
<br />