• 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 2 of 6 • 1, 2, 3, 4, 5, 6

Postby radionow » Thu Apr 21, 2011 12:52 am

littleantz wrote:
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 :)

its in development by utan (restars), he'll release it I can't wait ;)
My Site: http://chickentalk.org/
radionow
Member
 
Posts: 57
Joined: Sun Jan 10, 2010 6:26 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jul 08, 2011 8:41 pm

Updated,

cleaner and more security implemented..

regards.
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 abdullah1234 » Fri Jul 15, 2011 7:57 pm

Fatal error: Call to undefined function stipslashes() in /home/abudhab2/public_html/chat/login/functions.php on line 283

when i tried to register ...
abdullah1234
New member
 
Posts: 2
Joined: Wed Jun 29, 2011 8:08 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jul 15, 2011 9:28 pm

Hi,

What php version do you have?

One way to fix it is disabling get_magic_quotes_gpc() function in your php.ini

Please provide your PHP version..

regards.
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 budman » Sun Jul 31, 2011 10:22 am

Hi,
I was trying to implement your addition and ran into a problem.
First off its a shared DB, however I don't think any of the other tables will be interfering.
The install.php created a table with the same name as the database, however it seems to be empty.
When I try register.php I get
Code: Select all
Notice: Undefined index: username in .../jag/login/register.php on line 28
Notice: Undefined index: password in .../jag/login/register.php on line 29
Notice: Undefined index: repassword in .../jag/login/register.php on line 30
Notice: Undefined index: email in .../jag/login/register.php on line 31
Notice: Undefined index: submitted in .../jag/login/register.php on line 32

The details I enter don't seem to go into the DB and on the login screen I get a similar error with login.php in place of register.php.

Any assistance would be very much appreciated.
budman
New member
 
Posts: 5
Joined: Sun Jul 31, 2011 10:10 am
Top

Postby re*s.t.a.r.s.*2 » Sun Jul 31, 2011 5:44 pm

Hi,

Thats php notice about undefined vars, have looked at your database does the script created the database info?

edit your php ini error reporting or place this code at the top of you register.php:
after the php starting tag.
error_reporting(E_ALL ^ E_NOTICE);

try putting it in a different one itself alone..

then just run the install script again
see if that fixed your issue

regards.
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 Jul 31, 2011 6:06 pm

Hi,

Fixed all undefined vars in the code

Get the new code instead or just copy paste into login.php and register.php the new code above...
regards.
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 budman » Mon Aug 01, 2011 1:18 am

Thanks for the quick reply, That certainly fixed the problem with register.php
however, when having entered the details and clicking submit I get
Fatal error: Call to undefined function stipslashes() in .../login/functions.php on line 283
I am looking at the db and the install script did create username/hashed name etc.
also on login.php I get
Notice: Undefined index: remember in .../login/login.php on line 30
Fatal error: Call to undefined function stipslashes() in .../login/functions.php on line 283
I feel like I have done something different to everyone else, but I followed the instructions.
budman
New member
 
Posts: 5
Joined: Sun Jul 31, 2011 10:10 am
Top

Postby re*s.t.a.r.s.*2 » Mon Aug 01, 2011 2:34 am

budman wrote:I feel like I have done something different to everyone else, but I followed the instructions.

Please dont feel so, is so all my fault, I updated the script and missed some typos I have done in the code..

Please redownload the script, i have fixed those errors and should work fine now..
http://radioscatrachas.info/login.rar

When re uploading the script just dont upload the new settings.php so the old one that was setup already will have your settings already used...

thanks and I am sorry for all the hassle regards.
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 budman » Mon Aug 01, 2011 2:46 am

Fantastic, Thanks for your help and a great contribution.
All seems to be working well now.

oops, spoke too soon, sorry.
Notice: Undefined index: REMOTE_HOST in .../login/functions.php on line 19
Notice: Undefined index: remember in .../login/login.php on line 30
Notice: Undefined index: REMOTE_HOST in .../login/functions.php on line 89

I really don't mind, its fun to debug, better when someone else fixes the bugs :)

Once its done I will help with any translation issues I find and send you a copy if you like.

Can I make a suggestion?
How about making another field in settings.php to choose a table name instead of reusing the db name?
Just for people like me with shared db's and like to keep them tidy.
Last edited by budman on Mon Aug 01, 2011 3:09 am, edited 1 time in total.
budman
New member
 
Posts: 5
Joined: Sun Jul 31, 2011 10:10 am
Top

Postby re*s.t.a.r.s.*2 » Mon Aug 01, 2011 3:36 am

Ok thanks

Your PHP error settings are very restrictive...

but thanks this help me a lot since I don't have this reports log in my PHP Version 5.3.3

I will update the code...

regards
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 » Mon Aug 01, 2011 4:04 am

Hi,

here is the download link again http://radioscatrachas.info/login.rar
Hopelessly this time is all fixed, can you tell me your php version?, I think you have the version that was set very restrictive and PHP had to change in the newer versions...

about the your suggestion, its really good but that means the people that had the old version wont be able to use the new updates because that little change in the database..

but the changes are easy to implement

open settings.php and add

Code: Select all
$tableName= "myphplogin"; // change table name here

then open install.php and copy paste the following code.

Code: Select all
$sqlTable = "CREATE TABLE ".$tableName." (
`ID` int(11) NOT NULL AUTO_INCREMENT,
username varchar(256) NOT NULL default '',
hashedname varchar(256) NOT NULL default '',
password varchar(256) NOT NULL default '',
salted varchar(10) NOT NULL default '',
email varchar(50) NOT NULL default '',
PRIMARY KEY (`ID`)

);";

and that's it, run the install again..


Regards..
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 budman » Mon Aug 01, 2011 9:48 am

Apache
PHP Version: 5.2.17
MySQL Version: 5.1.56

Your such a great help, sorry for the trouble.
I am getting no more error messages, however the /index.php always loads /login/login.php
A correct login on /login/login.php lands back on /login/login.php
I guess its not passing on the $phpfreechatnick=IsAuthorized
I have started a fresh db each time, also deleted any cookies.

Thank you again for helping me.
budman
New member
 
Posts: 5
Joined: Sun Jul 31, 2011 10:10 am
Top

Postby re*s.t.a.r.s.*2 » Mon Aug 01, 2011 5:18 pm

Hi,

Thanks again for precious help, I checked and fixed the problem, it seems to be working put a test bed and made sure my php ini error where very restrictive and all passed.. now you only need to drop in the functions.php and test..

It will work, I will be a the test site so we can talk , please leave message if everything is good..

thanks and kind regards for you..
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 budman » Mon Aug 01, 2011 6:02 pm

The problems are all fixed, Thank you very much.
I am sure others will find this as useful as I do.

Great work!
budman
New member
 
Posts: 5
Joined: Sun Jul 31, 2011 10:10 am
Top

PreviousNext

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

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 9 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