Reklama 400x60
Download System mSF problema
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems
Jurgiskrumas
Narys
Patrankų mėsa
Pranešimai: 1
Įstojęs: 2018 Kov. 28 00:03:01
Sveiki,
naudoju modą "Download System mSF For PHP -Fusion 7.xx v.4.9". Viskas veikia, bet įjungus laiko režimą failui atsisiųsti svečiams, prie einančio laiko atsiranda galimybė:
Jeigu siuntimasis neprasidės po xx sekundžių, spauskite čia.
Paspaudus ant šios nuorodos, atidaro siuntinio failą, nors laiko intervalas dar nepraėjo. Kaip padaryti, kad leistų siųstis tik pasibaigus laikui?
Kodas:
& lt; ?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 & quot; maincore. php& quot;;
include LOCALE. LOCALESET.& quot; download. php& quot;;
require_once INCLUDES.& quot; download_system/ function . php& quot;;
echo & quot;& lt;! DOCTYPE & lt; span style=& quot; border- bottom: 1px dotted black;& quot;& gt; html& lt;/ span& gt; PUBLIC & #39;-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo & quot;& lt; html xmlns=& #39;http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo & quot;& lt; meta http- equiv=& #39;Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo & quot;& lt; meta name=& #39;description' content='".$settings['description']."' />\n";
echo & quot;& lt; meta name=& #39;keywords' content='".$settings['keywords']."' />\n";
echo & quot;& lt; style type=& #92;"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;
}
& lt;/ style& gt;& quot;;
if ( file_exists ( INCLUDES.& quot; download_system/ jscripts/ redirect/& quot;. $settings [ & #39;locale'].".js")) {
echo & quot;& lt; script src=& #92;"includes/download_system/jscripts/redirect/".$settings['locale'].".js\" type=\"text/javascript\"></script>";
} else {
echo & quot;& lt; script src=& #92;"includes/download_system/jscripts/redirect/English.js\" type=\"text/javascript\"></script>";
}
echo & quot;& lt;/ head& gt;& quot;;
echo & quot;& lt; body& gt;& quot;;
global $coundown ;
$ds = dbarray( dbquery( & quot; SELECT ( coundown) FROM & quot;. DB_PREFIX.& quot; download_settings& quot; ) ) ;
$coundown = & quot;& quot;. $ds [ & #39;coundown']."";
if ( isset ( $_GET [ & #39;get_id'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['get_id']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
$proga = & quot;& quot;. $data [ & #39;download_title']."";
echo & quot;& lt; title& gt;& quot;. htmlspecialchars ( $settings [ & #39;sitename'])." > ".$locale['DSR001']." > ".$proga."</title>";
$url = & quot;& quot;. FUSION_SELF.& quot; ?wait& amp; amp; link=& quot;. $data [ & #39;download_id']."";
echo & quot;& lt; body onload=& #39;Redirect(\"$url\")'>";
echo & quot;& lt; div class =& #39;web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>";
echo & quot;& lt; div class =& #39;info'>".$locale['DSR005']." <span class='proga'>$proga</span> ".$locale['DSR008']."<br>";
echo & quot;& quot;. $locale [ & #39;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 [ & #39;link'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['link']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
down( $data [ & #39;download_url']);
}
} elseif ( isset ( $_GET [ & #39;mirror_id'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['mirror_id']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
$proga = & quot;& quot;. $data [ & #39;download_title']."";
echo & quot;& lt; title& gt;& quot;. htmlspecialchars ( $settings [ & #39;sitename'])." > ".$locale['DSR002']." > ".$proga."</title>";
$mirror = & quot;& quot;. FUSION_SELF.& quot; ?wait& amp; amp; mirror_link=& quot;. $data [ & #39;download_id']."";
echo & quot;& lt; body onload=& #39;Redirect(\"$mirror\")'>";
echo & quot;& lt; div class =& #39;web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>";
echo & quot;& lt; div class =& #39;info'>".$locale['DSR005']." <span class='proga'>$proga</span> ".$locale['DSR009']."<br>";
echo & quot;& quot;. $locale [ & #39;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 [ & #39;mirror_link'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['mirror_link']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
down( $data [ & #39;mirror_url']);
}
} elseif ( isset ( $_GET [ & #39;rus_id'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['rus_id']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
$proga = & quot;& quot;. $data [ & #39;download_title']."";
echo & quot;& lt; title& gt;& quot;. htmlspecialchars ( $settings [ & #39;sitename'])." > ".$locale['DSR003']." > ".$proga."</title>";
$rus = & quot;& quot;. FUSION_SELF.& quot; ?wait& amp; amp; rus_link=& quot;. $data [ & #39;download_id']."";
echo & quot;& lt; body onload=& #39;Redirect(\"$rus\")'>";
echo & quot;& lt; div class =& #39;web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>";
echo & quot;& lt; div class =& #39;info'>".$locale['DSR006']." <span class='proga'>$proga</span> ".$locale['DSR008']."<br>";
echo & quot;& quot;. $locale [ & #39;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 [ & #39;rus_link'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['rus_link']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
down( $data [ & #39;download_rus']);
}
} elseif ( isset ( $_GET [ & #39;file_id'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['file_id']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
$proga = & quot;& quot;. $data [ & #39;download_title']."";
$button = & quot;& quot;. $data [ & #39;download_button']."";
echo & quot;& lt; title& gt;& quot;. htmlspecialchars ( $settings [ & #39;sitename'])." > ".$locale['DSR004']." > ".$proga." [".$button."]</title>";
$file = & quot;& quot;. FUSION_SELF.& quot; ?wait& amp; amp; file_link=& quot;. $data [ & #39;download_id']."";
echo & quot;& lt; body onload=& #39;Redirect(\"$file\")'>";
echo & quot;& lt; div class =& #39;web'><a href='".$settings['siteurl']."'>".$settings['sitename']."</a></div>";
echo & quot;& lt; div class =& #39;info'>".$locale['DSR007']." <span class='proga'>$proga [$button]</span> ".$locale['DSR008']."<br>";
echo & quot;& quot;. $locale [ & #39;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 [ & #39;file_link'])) {
$result = dbquery( & quot; SELECT * FROM & quot;. DB_DOWNLOADS.& quot; WHERE download_id=& #39;".$_GET['file_link']."'");
if ( dbrows( $result ) != 0 ) {
$data = dbarray( $result ) ;
down( $data [ & #39;download_burl']);
}
}
echo & quot;& lt;/ body& gt;& quot;;
echo & quot;& lt;/ html& gt;& quot;;
?& gt;
Local:
& lt; ?php
/*--------------------------------------------------------+
| Download System mSF For <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 7.xx v.4.5
| 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>
| Vertimas: rinas, rinas.xz.lt
+--------------------------------------------------------*/
$locale [ & #39;DSR001'] = "Failo siuntimasis";
$locale [ & #39;DSR002'] = "Failo siuntimasis";
$locale [ & #39;DSR003'] = "Vertimo siuntimasis";
$locale [ & #39;DSR004'] = "Failo siuntimasis";
$locale [ & #39;DSR005'] = "Prašome truputi palaukti - failo";
$locale [ & #39;DSR006'] = "Prašome truputi palaukti - vertimo";
$locale [ & #39;DSR007'] = "Prašome truputi palaukti - failo";
$locale [ & #39;DSR008'] = "siuntimasis prasidės automatiškai.";
$locale [ & #39;DSR009'] = "siuntimasis prasidės automatiškai.";
$locale [ & #39;DSR010'] = "Jeigu siuntimasis neprasidės po";
$locale [ & #39;DSR011'] = "sekundžių, spauskite";
$locale [ & #39;DSR012'] = "čia.";
$locale [ & #39;DSR013'] = "";
?& gt;
<3 Redagavo
Jurgiskrumas 2022 Spa. 12 11:10:36
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!