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

Pfc-Chat Login System v1.2 (06/10/2012)

Post a bug fix, a new feature, a theme ...

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

Post a reply
83 posts • Page 1 of 6 • 1, 2, 3, 4, 5, 6

Postby re*s.t.a.r.s.*2 » Thu Nov 25, 2010 7:58 pm

Hi there all,

Welcome to Pfc-Chat Login System version 1.2

disclaimer:
This script is as is, without warranty of any kind, nor PHPFREECHAT or me are liable for anything.
This is given free to use with PHPFREECHAT only..

This is script its made for phpfreechat and can only be used with it,
With this login script you will have a full lock down on who enters the
chat and to protect admins and users names and to allow or disallow guest
users, it use Mysql database to record usernames, passwords and email.

Some of the features are:

1.- Registration of username and disallow any guest to use that registered username.

2.- Administration page.

3.- Minimum password length.

4.- Minimum username characters length.

5.- Restrict the use of the same email that was used to register.

6.- Setup of some of the most important phpfreechat Parameters in ./login/settings.php.

7.- Automated Installation of mysql database, just need to create a DATABASE and run the ./login /install.php..

8.- Guest login to the chat.

9.- Disable Guest login.

10.-Encrypt user password with sha1 hash, used salt to protect against rainbow tables.

11.-In the administration page you have the ability to make users admin, moderator
delete the user, change the nickname, change the email.

12.-Recovery page, where your users can request a temporal password and change the password they have forgotten.

13.-Allow to use same email multiple times, this behavior is disable by default , you can turn it on in settings.php

14.- Multilingual enabled, with two languages created, you will find it inside the folder "/login/language" use English to translate,
language can be changed in settings.php , change from en_US to es_ES and so forth.

15.- Proxy detector, it could give you false positive but its worth a try, is disabled by default you can turn it on on "/settings.php"



Requirements:
1.- A webserver, PHP , Mysql, and a mail server installed.

2.- Minimun mysql user privileges are: SELECT, CREATE, INSERT, UPDATE, DELETE, FILE.

3.- The PHP version tested with is PHP 5.3.1 but possible could work PHP > 4.3.0.

4.- Register globals must be off, or functions.php will be disabled..

5.- Very important rehash the chat as admin, the command is "/rehash", without it
some new settings will not take effect..


Installation:

1.- Download the PfcChatLoginSystemv1.2.rar.

2.- Unrar it and then upload "login" folder to your chat root folder.

3.- Create a database, example : phpfreechat_login then open up with your text editor of choice ./login/settings.php (notepad++ is recommended) and edit $DataBaseName with the name of the database you created like so $DataBaseName="phpfreechat_login";.
4.- Change the others mysql setting for use of the login script.

5.- When you done editing settings.php, upload it back to the server then run http://yoursite.com/chat/login/install.php.

6.- If everything went good and you get something, like now you can register! then just do that, if not check to make sure the username of the mysql account has enough right, or check the name of the database name..

7 .-After the database is installed, a link will be given to you that will get you to registration page.
please register for the first time, (important) the first user registering will be given the admin account so make sure after you run the installation to click on the link and register the nick you want to use.

8 .-Rename index.phpfreechat to index.php and overwrite the default index.php of phpfreechat in /chat folder.
very important for security reasons, there are some test for the chat to works as intended with the script.

9 .-If login info its correct you will be sent to the chat room, and will give you the admin flag.

10.-When in the chat, as admin to access the admin page you need to click your nick and a link to the admin page will be shown, click the link and will take you to the admin page..

11.-By default only the admin of the chat has access to the admin page, moderators aren't able to enter this admin page, but because phpfreechat has no moderation level there is not way to distinguish between moderator and admin, the link to the admin page will be shown in the nicklist.. but moderator is not able to access even if the link is shown for them, the moderator level in the script is given so you can make a moderator to moderate the chat only.

12.-The recovery page is where your users will use to recover their lost password, it is needed to have a mail server of some sort, the script uses php, mail() function to send email to the users.

13.-All the login system text and settings are located in settings.php, please check that page and change anything you would like to be different in the whole script..


The installation is completed..
Thank you for using this script, as humble request is to have a backlink to my website http://vcomputadoras.com

Neumann Valle , AKA UTAN, re*s.t.a.r.s.*2

Thanks to Oldwolf for your help at the forum and Kerphy for creating this great chat script.

Download Pfc-Chat Login System v1.2
hash of file = 921cd5fe95cdc5b4752884630b113538

So here are some pics for you to see:

Login Page
Image

Registration Page
Image

Recovery password page
Image

Admin Page
Image

Image


working demo : http://ceibitalabella.net/pfc-login

best Wishes to all
Last edited by re*s.t.a.r.s.*2 on Sun Jun 10, 2012 9:37 pm, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Zippo » Fri Nov 26, 2010 6:09 pm

Thank you for your reply in my otjher thread.

You login works great..... except one important thing for me.

Only members of my gameclan should be able to enter the chat.
How do I do that?

I know I can disable guests.
But how do I keep strangers out?

Grtz.
Peter
Zippo
New member
 
Posts: 6
Joined: Sat Nov 06, 2010 7:13 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Nov 26, 2010 6:50 pm

One way to do that is putting another text field in the registration form and, create a phrase that only you and clan members would know, if the answer is correct then proceed with the registrations..
got to the demo chat and we can talk about that..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby bhootnath » Fri Nov 26, 2010 7:38 pm

or you can just remove the registration link on the login page .. change the name of the registration page and do it manually for all your members.. i know it is lot of work initially but may be clan leaders can divide the load...
bhootnath
Member
 
Posts: 13
Joined: Fri Nov 19, 2010 10:12 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Nov 26, 2010 7:53 pm

bhootnath wrote:or you can just remove the registration link on the login page .. change the name of the registration page and do it manually for all your members.. i know it is lot of work initially but may be clan leaders can divide the load...

Thanks that would really work, but I have something in mind that would work the best.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby re*s.t.a.r.s.*2 » Fri Nov 26, 2010 9:03 pm

Zippo wrote:Thank you for your reply in my otjher thread.

You login works great..... except one important thing for me.

Only members of my gameclan should be able to enter the chat.
How do I do that?

I know I can disable guests.
But how do I keep strangers out?

Grtz.
Peter

Ok here goes not tested ok..
this goes en settings.php after the green text

Code: Select all
$question=TRUE; // TO show the for html , true or false
          $clanText="Enter the clan secrect question!";// to tell them to answer
          $clanAnwser="unreal tournament 2004";// here the secret question..

then erase everything in register.php , just leave it blank, then copy paste this

Code: Select all
<?php
require_once('functions.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $rftitle; ?></title>
<link rel="stylesheet" href="login.css" type="text/css" />
</head>
<body>
<div id="register_form">
<form class="register_form" action="register.php" method="post">
<h5 class="welcome"><?php echo $rfH5title; ?></h5>
  <span class="rform"><?php echo $rfnick; ?></span> <input type="text" name="username" />
  <br />
  <span class="rform"><?php echo $rfpass; ?><span> <input type="password"  name="password" />
  <br />
  <span class="rform"><?php echo $rfrpass; ?><span> <input type="password" name="repassword" />
  <br />
  <span class="rform"><?php echo $rfmail; ?></span> <input type="text" name="email" />
  <br />
  <?php if($question){
  echo "<span class='rform'>$clanText<span> <input type='text' name='clanpass' />";
  echo "<br />";
  }
  ?>
  <?php echo $rfrfield; ?>
  <input type="submit" value="Submit" />
  <input type="hidden" name="submitted" value="true" />
  <?php echo $rfp; ?>
 <?php
 // N_V- lets put all Post array in variables for easy understanding
 $username=trim($_POST['username']);
 $password=trim($_POST['password']);
 $repassword=trim($_POST['repassword']);
 $email=trim($_POST['email']);
 $clanpass=trim($_POST['clanpass']);
 
 if($_POST['submitted'] == "true")
 {
  if(empty($username))
  {
  echo '<p id="error">Please fill up the username field.</p>';
  }elseif(empty($password)){
  echo'<p id="error">Please fill up the password field.</p>';
  }elseif(empty($repassword)){
  echo'<p id="error">Please fill up the re/type field.</p>';
  }elseif(!filter_var($email, FILTER_VALIDATE_EMAIL)){
  echo '<p id="error">The email is not valid.</p>';
  }
  // N_V- check if password match, could also been done in the RegisterUser function
  elseif($password != $repassword){
  echo '<p id="error">The password doesnt match, retype it!</p>';
  }elseif($clanpass != $clanAnwser){
  echo '<p id="error">Wrong clan answer, sorry cant register..!</p>';
  }else{
   RegisterUser($username, $password, $email);
  }
 }
 ?>
 <?php echo $phpfreechatlogo; ?>
 </form>
</div>
</body>
</html>

again not tested let me know if worked.. ok its tested worked fine.
Last edited by re*s.t.a.r.s.*2 on Fri Nov 26, 2010 10:03 pm, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby re*s.t.a.r.s.*2 » Sun Nov 28, 2010 6:22 am

bumping, anyone else likes it? :)
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby bhootnath » Sun Nov 28, 2010 8:25 pm

i do :) .. it is simple.. easy to implement and does the job real nice.. good work.. Image
bhootnath
Member
 
Posts: 13
Joined: Fri Nov 19, 2010 10:12 pm
Top

Postby re*s.t.a.r.s.*2 » Wed Dec 01, 2010 11:49 pm

Oldwolf can you give your point of view please.. I am open to any critic.. thanks
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby OldWolf » Thu Dec 02, 2010 7:43 am

I unfortunately don't have time to go through the code right now, or install a test. But I did try the demo site and everything seems to work, nice job. :)
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 re*s.t.a.r.s.*2 » Thu Dec 02, 2010 2:57 pm

OldWolf wrote:I unfortunately don't have time to go through the code right now, or install a test. But I did try the demo site and everything seems to work, nice job. :)

Thank you Oldwolf that encourage me to continuing learning..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby cheese » Thu Mar 24, 2011 5:31 am

Hi, I hope it's OK to bump this...

I installed this and got "Something went Wrong, make sure the USER of the Mysql database has "SELECT", "INSERT", "CREATE", "UPDATE", "DELETE", "FILE" privilages." But they do...?

Edit: I figured it out...apparently if you run it twice it gives you this error. I went to the registration page manually and it worked. Thanks for this script!
Last edited by cheese on Thu Mar 24, 2011 6:54 am, edited 1 time in total.
cheese
New member
 
Posts: 4
Joined: Thu Mar 24, 2011 5:28 am
Top

Postby pearlcabrezos » Sun Apr 03, 2011 3:39 pm

yes! its easy to implement and does the job real nice.
pearlcabrezos
New member
 
Posts: 3
Joined: Sun Apr 03, 2011 3:28 pm
Location: USA
Top

Postby littleantz » Tue Apr 19, 2011 7:19 pm

Demo available to test http://radioscatrachas.info/chat/phpfreechat/

I don't see any registration link at the demo page. Something I miss about this registration?

Thanks

PS:
I like the pull down menu to set status. Care to share that piece of code :)
littleantz
Member
 
Posts: 14
Joined: Tue Apr 19, 2011 11:36 am
Top

Postby re*s.t.a.r.s.*2 » Tue Apr 19, 2011 9:11 pm

That its in developing....
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Next

Post a reply
83 posts • Page 1 of 6 • 1, 2, 3, 4, 5, 6

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 14 guests

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