Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: pagalba su atsisiuntimu modifikacija

Parašė grusius amg· 2014 Sau. 11 14:01:46
#1

sveiki
reikia pagalbos susitvarkyti.
naudoju moda Download System mSF For PHP-Fusion 7.xx v.4.9
viskas veikia gerai bet ijungus laiko rezima sveciams atsisiusti faila
prie einancio laiko atsiranda galimybe
Jeigu siuntimasis neprasidės po xx sekundžių, spauskite čia.
paspaudus ta nuoroda ismeta faila atsisiuntimui nors laiko intervalas dar neprabego.
reiktu padaryt kad leistu siustis tik pasibaigus laikui arba pasalint
Jeigu siuntimasis neprasidės po xx sekundžių, spauskite čia.

codas:

<?php
/*-------------------------------------------------------+
| Download System mSF For <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 7.xx v.4.8
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: <a href='http://x-iweb.ru/' target='_blank'><span style='color:005C5B'>http://x-iweb.ru/</span></a>
+--------------------------------------------------------*/
require_once "maincore.php";
include LOCALE.LOCALESET."download.php";
require_once INCLUDES."download_system/function.php";
 
    echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
    echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
    echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
    echo "<meta name='description' content='".$settings['description']."' />\n";
    echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
 
    echo "<style type=\"text/css\">
    body {
        color: black;
        background: white;
        text-align: center;
    }
 
    span.counter {
        color: red;
        cursor: default;
        font-size: larger;
    }
 
    span.proga {
        color: darkblue;
    }
 
    div.info {
        margin: 0 auto;
        text-align: center;
        font: 12pt Verdana, Arial, Helvetica, sans-serif;
        margin-top: 1em;
    }
 
    div.web {
        margin-top: 3em;
        text-align: center;
        font: 10pt Verdana, Arial, Helvetica, sans-serif;
    }
    </style>";
 
        if (file_exists(INCLUDES."download_system/jscripts/redirect/".$settings['locale'].".js")) {
	echo "<script src=\"includes/download_system/jscripts/redirect/".$settings['locale'].".js\" type=\"text/javascript\"></script>";
        } else {
	echo "<script src=\"includes/download_system/jscripts/redirect/English.js\" type=\"text/javascript\"></script>";
        }
 
    echo "</head>";
    echo "<body>";
 
        global $coundown;
        $ds = dbarray(dbquery("SELECT (coundown) FROM ".DB_PREFIX."download_settings"));
        $coundown = "".$ds['coundown']."";
 
    if (isset($_GET['get_id'])) {
 
        $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['get_id']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		$proga = "".$data['download_title']."";
	echo "<title>".htmlspecialchars($settings['sitename'])." > ".$locale['DSR001']." > ".$proga."</title>";
        $url = "".FUSION_SELF."?wait&amp;link=".$data['download_id']."";
    echo "<body onload='Redirect(\"$url\")'>";
    echo "<div class='web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>"; 
    echo "<div class='info'>".$locale['DSR005']." <span class='proga'>$proga</span> ".$locale['DSR008']."<br>";
    echo "".$locale['DSR010']." <span class='counter' id=\"REDIRECT\">$coundown</span> ".$locale['DSR011']." <noindex><a rel='nofollow' href='".FUSION_SELF."?wait&amp;link=".$data['download_id']."'>".$locale['DSR012']."</a></noindex> ".$locale['DSR013']."</div>";
            }
 
    } elseif (isset($_GET['link'])) {
 
		$result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['link']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		down($data['download_url']);
		    }
 
    } elseif (isset($_GET['mirror_id'])) {
 
        $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['mirror_id']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		$proga = "".$data['download_title']."";
	echo "<title>".htmlspecialchars($settings['sitename'])." > ".$locale['DSR002']." > ".$proga."</title>";
        $mirror = "".FUSION_SELF."?wait&amp;mirror_link=".$data['download_id']."";
    echo "<body onload='Redirect(\"$mirror\")'>";
    echo "<div class='web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>"; 
    echo "<div class='info'>".$locale['DSR005']." <span class='proga'>$proga</span> ".$locale['DSR009']."<br>";
    echo "".$locale['DSR010']." <span class='counter' id=\"REDIRECT\">$coundown</span> ".$locale['DSR011']." <noindex><a rel='nofollow' href='".FUSION_SELF."?wait&amp;mirror_link=".$data['download_id']."'>".$locale['DSR012']."</a></noindex> ".$locale['DSR013']."</div>";
            }
 
    } elseif (isset($_GET['mirror_link'])) {
 
		$result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['mirror_link']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		down($data['mirror_url']);
		    }
 
    } elseif (isset($_GET['rus_id'])) {
 
        $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['rus_id']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		$proga = "".$data['download_title']."";
	echo "<title>".htmlspecialchars($settings['sitename'])." > ".$locale['DSR003']." > ".$proga."</title>";
        $rus = "".FUSION_SELF."?wait&amp;rus_link=".$data['download_id']."";
    echo "<body onload='Redirect(\"$rus\")'>";
    echo "<div class='web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>"; 
    echo "<div class='info'>".$locale['DSR006']." <span class='proga'>$proga</span> ".$locale['DSR008']."<br>";
    echo "".$locale['DSR010']." <span class='counter' id=\"REDIRECT\">$coundown</span> ".$locale['DSR011']." <noindex><a rel='nofollow' href='".FUSION_SELF."?wait&amp;rus_link=".$data['download_id']."'>".$locale['DSR012']."</a></noindex> ".$locale['DSR013']."</div>";
            }
 
    } elseif (isset($_GET['rus_link'])) {
 
		$result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['rus_link']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
	    down($data['download_rus']);
		    }
 
   } elseif (isset($_GET['file_id'])) {
 
        $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['file_id']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		$proga = "".$data['download_title']."";
        $button = "".$data['download_button']."";
	echo "<title>".htmlspecialchars($settings['sitename'])." > ".$locale['DSR004']." > ".$proga." [".$button."]</title>";
        $file = "".FUSION_SELF."?wait&amp;file_link=".$data['download_id']."";
    echo "<body onload='Redirect(\"$file\")'>";
    echo "<div class='web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>"; 
    echo "<div class='info'>".$locale['DSR007']." <span class='proga'>$proga [$button]</span> ".$locale['DSR008']."<br>";
    echo "".$locale['DSR010']." <span class='counter' id=\"REDIRECT\">$coundown</span> ".$locale['DSR011']." <noindex><a rel='nofollow' href='".FUSION_SELF."?wait&amp;file_link=".$data['download_id']."'>".$locale['DSR012']."</a></noindex> ".$locale['DSR013']."</div>";
             }
 
    } elseif (isset($_GET['file_link'])) {
 
		$result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['file_link']."'");
            if (dbrows($result) != 0) {
        $data = dbarray($result);
		down($data['download_burl']);
		    }
    }
 
    echo "</body>";
    echo "</html>";
 
?>
 


localas:
<?php
/*--------------------------------------------------------+
| Download System mSF For PHP-Fusion 7.xx v.4.5
| Copyright © 2008-2009 Powered by .:MeF:.
| URL: http://x-iweb.ru/
| Vertimas: rinas, rinas.xz.lt
+--------------------------------------------------------*/
$locale['DSR001'] = "Failo siuntimasis";
$locale['DSR002'] = "Failo siuntimasis";
$locale['DSR003'] = "Vertimo siuntimasis";
$locale['DSR004'] = "Failo siuntimasis";

$locale['DSR005'] = "Prašome truputi palaukti - failo";
$locale['DSR006'] = "Prašome truputi palaukti - vertimo";
$locale['DSR007'] = "Prašome truputi palaukti - failo";

$locale['DSR008'] = "siuntimasis prasidės automatiškai.";
$locale['DSR009'] = "siuntimasis prasidės automatiškai.";

$locale['DSR010'] = "Jeigu siuntimasis neprasidės po";
$locale['DSR011'] = "sekundžių, spauskite";
$locale['DSR012'] = "čia.";
$locale['DSR013'] = "";
?>