Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | Modai, įskiepiai, panelės (PHP-FUSION) | Mods, Panels & Infusions |
Autorius: aidasr7 | Peržiūrų: 3937 ![]() |
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
Sveiki , taigi reikia man kad pateikus siuntinį ir tarkim yra siuntinys ir rodytų kas jį įkėlė. Būčiau labai dėkingas eigu padėtumėte. Išgaunu profilio linką bet vardo ne. Tikiuosi padėsite ![]() Šitaip išgaunu nuoroda į nario profilį :
Štai downloads.php : <?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright (C) 2002 - 2008 Nick Jones | http://www.php-fu... +--------------------------------------------------------+ | Filename: downloads.php | Author: Nick Jones (Digitanium) +--------------------------------------------------------+ | This program is released as free software under the | Affero GPL license. You can redistribute it and/or | modify it under the terms of this license which you | can read by viewing the included agpl.txt or online | at www.gnu.org/licen... Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "maincore.php"; require_once THEMES."templates/header.php"; include LOCALE.LOCALESET."downloads.php"; add_to_title($locale['global_200'].$locale['400']); if (isset($_GET['download_id']) && isnum($_GET['download_id'])) { $res = 0; if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$_GET['download_id']."'"))) { $cdata = dbarray(dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE download_cat_id='".$data['download_cat']."'")); if (checkgroup($cdata['download_cat_access'])) { $res = 1; $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1, download_count_s=download_count_s+1, download_count_m=download_count_m+1 WHERE download_id='".$_GET['download_id']."'"); redirect($data['download_url']); } } if ($res == 0) { redirect("downloads.php"); } } if (isset($_GET['cat_id']) && ctype_digit($_GET['cat_id']) && isset($_GET['did']) && ctype_digit($_GET['did'])) { $result = dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." dc LEFT JOIN ".DB_DOWNLOADS." db ON dc.download_cat_id=db.download_cat WHERE download_cat_id='".$_GET['cat_id']."' AND download_id='".$_GET['did']."'"); if (dbrows($result)) { $data = dbarray($result); add_to_title($locale['global_201'].$data['download_cat_name']." - ".$data['download_title']); if (checkgroup($data['download_cat_access'])) { opentable($data['download_cat_name']); echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n"; echo "<tr>\n<td colspan='3' class='forum-caption'><strong>".$data['download_title']."
echo "<tr><td colspan='3' class='tbl1'> "; if(preg_match('/zippyshare/i' , $data['download_url'])){ echo zip($data['download_url']); } else { echo "Nera perklausos"; echo" </td>\n</tr>\n"; } echo "<tr>\n <td align='center' class='tbl1'><strong>".$locale['400']." : <a href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']."</a></strong></td> <td align='center' class='tbl2' width='33%'><b>".$locale['414']."</b> ".showdate("%d.%m.%y", $data['download_datestamp'])."</td> <td align='center' width='33%' class='tbl1'><strong>".$locale['415']."</strong> ".$data['download_count']."</td>"; echo "</table>\n"; echo "<div class='siustis'><a href='".BASEDIR."failas,".$data['download_id']."-".seoname($data['download_title'])."'><button type='button'>".$locale['416']."</button></a></div>"; closetable(); } else { opentable($locale['431']); echo $locale['431']."\n"; closetable(); } } else { redirect(FUSION_SELF); } } else if (!isset($_GET['cat_id']) || !isnum($_GET['cat_id'])) { opentable($locale['400']); $result = dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE ".groupaccess('download_cat_access')." ORDER BY download_cat_name"); $rows = dbrows($result); $i = 1; if ($rows) { while ($data = dbarray($result)) { echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n"; $num = dbcount("(download_cat)", DB_DOWNLOADS, "download_cat='".$data['download_cat_id']."'"); echo "<tr>\n"; echo "<td valign='top' width='100%' class='tbl2'>» <a href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."'><strong>".$data['download_cat_name']."</strong></a> <span class='small2'>($num)</span>"; if ($data['download_cat_description'] != "") { echo "<br />\n<span class='small'>".$data['download_cat_description']."</span>"; } echo "</td>\n"; echo "</tr>"; echo "</table>"; if ($i != $rows) { echo "<div style='height:5px;'></div>\n"; $i++; } } } else { echo "<div style='text-align:center'><br />\n".$locale['430']."<br /><br />\n</div>\n"; } closetable(); } else { $res = 0; $result = dbquery("SELECT * FROM ".DB_DOWNLOAD_CATS." WHERE download_cat_id='".$_GET['cat_id']."'"); if (dbrows($result) != 0) { $cdata = dbarray($result); if (checkgroup($cdata['download_cat_access'])) { $res = 1; add_to_title($locale['global_201'].$cdata['download_cat_name']); opentable($locale['400'].": ".$cdata['download_cat_name']); $rows = dbcount("(*)", DB_DOWNLOADS, "download_cat='".$_GET['cat_id']."'"); if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; } if ($rows != 0) { $result = dbquery("SELECT * FROM ".DB_DOWNLOADS." WHERE download_cat='".$_GET['cat_id']."' ORDER BY ".$cdata['download_cat_sorting']." LIMIT ".$_GET['rowstart'].",15"); $numrows = dbrows($result); $i = 1; while ($data = dbarray($result)) { if ($data['download_datestamp'] + 604800 > time() + ($settings['timeoffset'] * 3600)) { $new = " <span class='small'><img src='/images/new.gif'></span>"; } else { $new = ""; } $kategorija = "<a href='".FUSION_SELF."?cat_id=".$data['download_cat_id']."'>".$data['download_cat_name']."</a>"; echo "<table width='100%' cellpadding='0' cellspacing='1' class='tbl-border'>\n"; echo "<tr>\n<td colspan='3' class='forum-caption'> <div style='float:right;'>".$locale['414']." ".showdate("%d.%m.%y", $data['download_datestamp'])."</div> <a href='downloads.php?cat_id=".$_GET['cat_id']."&did=".$data['download_id']."'><strong>".$data['download_title']."</strong></a> $new</td>\n</tr>\n"; echo "\n<tr>\n<td width='100%' class='tbl1'> "; if(preg_match('/zippyshare/i' , $data['download_url'])){ echo zip($data['download_url']); } else { echo "<center><font color='red'>Nėra perklausos! <a href='/index.php'>Pranešti</a> administracijai!</font></center>"; } echo "<tr><td class='tbl1'><center> <a href='".BASEDIR."failas,".$data['download_id']."-".seoname($data['download_title'])."'>".$locale['416']."</a> </center></td> </tr>"; echo" </tr>\n"; echo "</table>\n"; if ($i != $numrows) { echo "<div style='height:5px;'></div>\n"; $i++; } } closetable(); if ($rows > 15) { echo "<div align='center' style=';margin-top:5px;'>\n".makepagenav($_GET['rowstart'], 15, $rows, 3, FUSION_SELF."?cat_id=".$_GET['cat_id']."&")."\n</div>\n"; } } else { echo $locale['431']."\n"; closetable(); } } } if ($res == 0) { redirect(FUSION_SELF); } } require_once THEMES."templates/footer.php"; ?> Redagavo aidasr7 2014 Gru. 14 17:12:28 |
|
Pakartoti slaptažodį Moderatorius Viršesnis už Dievą ![]() Pranešimai: 5188 Įstojęs: 2008 Rugp. 6 22:08:39 | |
dėl visų šitų username, users ir userid nesu tikras, fusioną pamiršau visiškai, tau geriau žinot Redagavo Pakartoti slaptažodį 2014 Gru. 14 17:12:59 |
|
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
šitaip naudoju : echo "Vartotojo vardas: ".$q[0].""; kitaip klaida meta. Parse error: syntax error, unexpected 'echo' (T_ECHO) in /......../downloads.php on line 64 bet vartotojo vardo nerodo. štai lentelės : Redagavo aidasr7 2014 Gru. 14 17:12:04 |
|
Pakartoti slaptažodį Moderatorius Viršesnis už Dievą ![]() Pranešimai: 5188 Įstojęs: 2008 Rugp. 6 22:08:39 | |
prefixo nepamirškim! |
|
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
neveikia , prefixa viska gerai suvedziau. Pakartoti slaptažodį parašė:
prefixo nepamirškim! bandyk man visa downloads.php faila numest , gal ka netaip darau. Redagavo aidasr7 2014 Gru. 14 17:12:27 |
|
Pakartoti slaptažodį Moderatorius Viršesnis už Dievą ![]() Pranešimai: 5188 Įstojęs: 2008 Rugp. 6 22:08:39 | |
rimtai nežinau kas gali būti negerai ![]() ir hey, jokių konsultacijų per skaipus/až, neturiu tam laiko. aiškinamės forume ![]() |
|
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
Kaip supratau pagalbos nesulauksiu ;( |
|
Pakartoti slaptažodį Moderatorius Viršesnis už Dievą ![]() Pranešimai: 5188 Įstojęs: 2008 Rugp. 6 22:08:39 | |
pasibandyk mano kodą pridėtiniuose puslapiuose, vietoj user id įvesk savo ID, patikrink ar išveda vardą. |
|
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
Neveikė tavo kodas tai pats bšk nagus prikišau ir išėjo. Eigu įdomu tai va kodas : $download_user = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$data['download_user']."'")); ".profile_link($download_user['user_id'], $download_user['user_name'], $download_user['user_status'])." |
|
Pakartoti slaptažodį Moderatorius Viršesnis už Dievą ![]() Pranešimai: 5188 Įstojęs: 2008 Rugp. 6 22:08:39 | |
na va, puiku, viskas su fusiono įrankiais įmanoma padaryt. aš darau bendrai PHP + SQL.. jei nori paspartinti užklausą, vietoj žvaigždutės * rašyk tik imamus laukelius, juk visų tau nereikia..
Redagavo Pakartoti slaptažodį 2014 Gru. 14 20:12:49 |
|
MantasV Narys Buldozeris ![]() Pranešimai: 232 Įstojęs: 2010 Gru. 16 20:12:39 | |
aidasr7 parašė: Neveikė tavo kodas tai pats bšk nagus prikišau ir išėjo. Eigu įdomu tai va kodas : $download_user = dbarray(dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id='".$data['download_user']."'")); ".profile_link($download_user['user_id'], $download_user['user_name'], $download_user['user_status'])." Tiesiog tingėjai paieškoti ir paimti iš kitur kodą. ![]() |
|
aidasr7 Narys Fruktas Pranešimai: 31 Įstojęs: 2011 Rugp. 25 12:08:55 | |
ieškojau internete bet neradau ![]() |
Peršokti į forumą: |