Pradinis
Pagalba
Užsisakyk!
- Reklamą
- Hostingą
- El. pašto dėžutę
Užsisakyk!
Įrankiai
Pasidalink
- Visos temos
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai |
Autorius: timas126 | Peržiūrų: 996 |
timas126 Narys Margas Pranešimai: 96 Įstojęs: 2010 Gru. 6 22:12:58 | |
sveiki, gal kas moketu sumazini pakvietimu nuoroda, turiu visus reikemus kodus. rekia kad iterptimete si koda: <small> <h1> if(iMEMBER) { openside("Pakviesk draugà, per savo nuorodà"); echo "Tavo nuoroda: http://www.TAVO_SAITAS.LT/invite....$userdata['user_id']; closeside(); } #1 if(iMEMBER) {
openside("Pakviesk draugà, per savo nuorodà");
echo "Tavo nuoroda: <small> <h1>http://www.tavo_saitas.lt/invite.php?invite=".$userdata['user_id']."</small> </h1>";
closeside();
} — avice, 2011 Rugs. 3 14:09:48 |
timas126 Narys Margas Pranešimai: 96 Įstojęs: 2010 Gru. 6 22:12:58 | |
gal dar zinote kaip butu galima padaryti, kad kai zmogus paspadzia ant nuorodos imestu iskarto i pagrindini puslapi? stai invite <?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright (C) 2002 - 2008 Nick Jones | http://www.php-fusion.co.uk/ +--------------------------------------------------------+ | 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/licenses/agpl.html. Removal of this | copyright header is strictly prohibited without | written permission from the original author(s). +--------------------------------------------------------*/ require_once "maincore.php"; $vers = explode(".",$settings['version']); if($vers['0'] == 7) { require_once THEMES."templates/header.php"; } else { require_once "subheader.php"; require_once "side_left.php"; define("DB_USERS", DB_PREFIX."users"); } define("DB_INVITES", DB_PREFIX."invites"); $invite = @$_GET['invite']; $result = dbquery("SELECT * FROM ".DB_USERS." WHERE `user_id`='$invite'"); $narys = dbarray(dbquery("SELECT * FROM ".DB_USERS." WHERE `user_id`='$invite'")); if(!isset($invite) || !isNum($invite) || !dbrows($result)) redirect(BASEDIR."./"); if($vers['0'] == 7) { add_to_title(" - Tave pakvietë ".$narys['user_name']); } $data = dbarray(dbquery("SELECT * FROM `".DB_INVITES."` WHERE `invite_user_id`='$invite' AND `invite_guest_ip`='".USER_IP."' ORDER by invite_time DESC LIMIT 1")); if($data['invite_time'] + 60 * 60 * 24 > time()) { opentable("Jus i si puslapi pakviete ".$narys['user_name']); echo "Taèiau, jo pakvietimas jam nedavë taðkø, kuriuos galëtø iðleisti mûsø puslapá, nes jûs jau apsilankët per ðio nario nuorodà ankðèiau, nei per 24h."; closetable(); } elseif($data['invite_time'] + 60 * 60 * 24 < time()) { $result = dbquery("INSERT INTO `".DB_INVITES."` (invite_time, invite_user_id, invite_guest_ip) VALUES ('".time()."', '$invite', '".USER_IP."')"); opentable("Jus á ðá puslapá pakvietë ".$narys['user_name']); echo "Aèiû, kad uþsukote á mûsø puslapá.<br>Tikimës, kad jûs lankysitës daþniau ðiame puslapá.<br><br>Admintracijos INFO."; closetable(); } if($vers['0'] == 7) { require_once THEMES."templates/footer.php"; } else { require_once "side_right.php"; require_once "footer.php"; } ?> 0 |
|
Nuoski3310 Narys Margas Pranešimai: 75 Įstojęs: 2011 Rugs. 3 13:09:26 | |
redirect(BASEDIR."./"); Čia bandyk 0 |
Peršokti į forumą: |