Parašė Fr3eDoM· 2009 Spa. 8 22:10:33
#1
Sveiki,
Gal kas žino, kaip padaryti kad tik įėjus į mano puslapi rodytu kad reikia prisijungti, kitaip nieko negali daryti?
Pąviždžiui :
- LinkoManija.net
- Torrent.lt
- Seed.lt
Tiėsiog kad prašytu prisijungti, ir ten pora užrašų butu, t.y. webo pavadinimas.
P.S. Neklauskite apie ką puslapis, nes tikrai nesakysiu.
P.S.S. Puslapyje tikrai nebus jokių nelegaliu dalykų.
Gal kaipnors išeina padaryti, kad jei neprisijungęs, tada numeta į login.php ir niekur kitur neleidžia kol neprisijungi?
Redagavo Fr3eDoM· 2009 Spa. 8 22:10:55
Parašė Mandello· 2009 Spa. 8 22:10:00
#2
Tai tu isidek modifikacija kad registracija tik su pakvietimu arba puslapistik registruotiems nariams :)
Parašė sniuff· 2009 Spa. 8 22:10:05
#3
if(FUSION_SELF != "login.php" && iGUEST) redirect(BASEDIR."login.php");
Patalpink į
maincore.php prieš
?>
Parašė Fr3eDoM· 2009 Spa. 8 22:10:25
#4
dėkui sniuff, veikia ;)
o kaip ištrinti iš login.php :
Dar ne narys?
Registruotis.
Pamiršai Slaptažodį?
Prašyk Naujo!.
Kad tiesiog būtų nickas, passwordas, prisiminti, ir prisijungimo mygtukas.
Stai mano login.php :
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: login.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";
require_once THEMES."templates/header.php";
add_to_title($locale['global_200'].$locale['global_100']);
if (iMEMBER) {
opentable($userdata['user_name']);
echo "<div style='text-align:center'><br />\n";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'>".$locale['global_121']."</a><br />\n";
echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'>".$locale['global_122']."</a><br />\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['global_123']."</a><br />\n";
}
echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['global_124']."</a>\n";
if ($msg_count) { echo "<br /><br /><strong><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['global_125'], $msg_count).($msg_count == 1 ? $locale['global_126'] : $locale['global_127'])."</a></strong>\n"; }
echo "<br /><br /></div>\n";
} else {
opentable($locale['global_100']);
echo "<div style='text-align:center'><br />\n";
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
echo $locale['global_101']."<br />\n<input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
echo $locale['global_102']."<br />\n<input type='password' name='user_pass' class='textbox' style='width:100px' /><br />\n";
echo "<label><input type='checkbox' name='remember_me' value='y' />".$locale['global_103']."</label><br /><br />\n";
echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
echo "<br /></form>\n";
if ($settings['enable_registration']) {
echo "".$locale['global_105']."<br /><br />\n";
}
echo $locale['global_106'];
echo "<br /><br /></div>\n";
}
closetable();
require_once THEMES."templates/footer.php";
?>
Redagavo Fr3eDoM· 2009 Spa. 8 23:10:19