• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

user registration?

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
4 posts • Page 1 of 1

Postby pedrotuga » Thu Jul 13, 2006 5:57 am

this should have been talked before... but i can find anything related..

does phpfreechat suports this feature?

I am using phorum and i think i would like to allow the users use the same password... i dont hink i want any cookie integration... using the same user/pass is enough for me.

I havent look at phpfreechat code, but can you tell me briefly in three lines which what i need to do to code a usardatabase autentication?

Basicaly i should create a form and check the if the user/pass match the database ones and then asign it to some variable... will it be that easy or is there anything i should be aware of that i am missing?

thx, great software.
pedrotuga
New member
 
Posts: 1
Joined: Thu Jul 13, 2006 5:35 am
Top

Postby dieq41 » Tue Jul 01, 2008 3:01 am

you can use your form login first at index..
index in phpfreechat can be rename as chat.php
after succes login, it can redirect to chat.php.

in chat.php, you can add this code..
$bdd_nickname = $_SESSION['user'];
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $bdd_nickname);

in file phpfreechat.class.php, you can add this code..
<?
session_start();
//periksa apakah user telah login atau memiliki session->cek login..
if(!isset($_SESSION['user'])||!isset($_SESSION['passwd'])){
?><script language='javascript'>alert('Anda belum login.. Silahkan login dulu->Plz login first');
document.location='index.php'</script><?
}else{
?>

thx.
./ dieq41
./ dieq41
newbie php
dieq41
New member
 
Posts: 9
Joined: Sat Mar 15, 2008 10:50 am
Location: Jakarta, Indonesia
  • Website
  • YIM
Top

Postby OldWolf » Tue Jul 01, 2008 6:31 am

Er, this request is about two years old. :P
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby dieq41 » Wed Oct 29, 2008 7:01 am

Sorry OldWolf, I not see the posting date... :D:D
Last edited by dieq41 on Sat Feb 28, 2009 8:25 pm, edited 1 time in total.
./ dieq41
newbie php
dieq41
New member
 
Posts: 9
Joined: Sat Mar 15, 2008 10:50 am
Location: Jakarta, Indonesia
  • Website
  • YIM
Top


Topic locked
4 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub