Reklama 400x60
pagalba su atsisiuntimu modifikacija
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems
grusius amg
Narys
Spalvotas
Pranešimai: 62
Įstojęs: 2011 Kov. 28 19:03:17
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&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&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&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&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&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&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&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&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'] = "";
?>
IT pslaugos
www.itechas.lt
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!