Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Login

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
Hrvoje



Joined: 04 Sep 2004
Posts: 132
Location: My office

PostPosted: 12.09.2006 14:44    Post subject: Login Add user to your forum ignore list Reply with quote

Trebam malu pomoc.
U ovom kodu:
<input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"test",text1.value,"test") >
imam definirano korisničko ime i zaporku, ali problem je u tome što neznam kako npr. staviti više korisnika?


Cijela skripta:
Quote:

<div align="center">
<form>
<p>Korisničko ime:
<input type="text" name="text2" size="20">

</p>
<p>Zaporka:
<input type="password" name="text1" size="20">
<input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"alles",text1.value,"alles") >
</p>

</form>
<script language = "javascript">


function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('success.htm');
else
{
load('failure.htm');
}
}
function load(url)
{
location.href=url;
}
</script>
</div>
Back to top
View user's profile Send private message
Hrvoje



Joined: 04 Sep 2004
Posts: 132
Location: My office

PostPosted: 13.09.2006 13:07    Post subject: Add user to your forum ignore list Reply with quote

Dali ima netko nešto slicno?
Back to top
View user's profile Send private message
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 13.09.2006 15:42    Post subject: Add user to your forum ignore list Reply with quote

ok, koristis javascript za provjeru unosa, ali ne mozes tako rijesiti login, jer svako malo inteligentniji pogleda source. to rijesiti programski i provjeru i login, kasnije na onaj succes dokuemnt stavis restricted prikaz.

objasni sto zelis
c
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
Hrvoje



Joined: 04 Sep 2004
Posts: 132
Location: My office

PostPosted: 13.09.2006 15:56    Post subject: Add user to your forum ignore list Reply with quote

Sto se tice sigurnosti imam rješenje za to...

Ali problem je u tome što gore u skripti imam samo jednog definiranog korisnika, a meni treba minimalno pet.

Kako da ih dodam još u ovu skriptu?
Back to top
View user's profile Send private message
:cosmos:



Joined: 12 Sep 2003
Posts: 2098
Location: México

PostPosted: 14.09.2006 20:09    Post subject: Add user to your forum ignore list Reply with quote

pa ako imas definiranu listu korisnika sa pravima u bazi, sa loginom mu samo posaljes upit nakon kojeg on sprema prava u session ili nesto i otvara stranicu ako ne vraca na pocetnu sa nekim responderom

c
Back to top
View user's profile Send private message Send e-mail Visit poster's website Twitter profile
Hrvoje



Joined: 04 Sep 2004
Posts: 132
Location: My office

PostPosted: 15.09.2006 08:41    Post subject: Add user to your forum ignore list Reply with quote

Da napravio sam tako nešto slicno...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group