Programming Help, OS System Help, Articles, Videos, Books-Web Dot Dev
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: Upgraded System
#202
mdub (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Upgraded System 1 Year, 10 Months ago Karma: 5  
Help!

OK, my system crashed hard so I had to rebuild.
Since rebuilding was necessary, I went up to Fedora 6 (from 5x) to which also put me up to MySql 5.0.27 and PHP 5.1.6. I forget what versions of PHP and MySql I had prior, I do know they were 5x flavors though.

All of my php files show up just fine; however, it seems that now some (well I can only tell right now that it is only one) of my scripts doesn't work. Prior to the new build I could have users log in to a cms type of system just fine, now every user ID\PW I've tested will not log in.

SQL File Sections, I think are pertinent)
Code:

CREATE table users ( username varchar(16) PRIMARY KEY, password char(40) NOT NULL, fullname text, company varchar(16) NOT NULL, # FOREIGN KEY clients.code phone varchar(20) NOT NULL, email varchar(50) ); insert into users(username, password, fullname, company, email, phone) values ('kerickson', SHA1('password'), 'Kris Erickson', 'EMT', ' This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ', '555.324.1234');
The PHP Script that seems to be giving me issues
Code:

<?php // Set up error reporting display ini_set('display_errors', 1); error_reporting(E_ALL); include_once('cafs_fns.php'); if ( (!isset($_REQUEST['username'])) || (!isset($_REQUEST['password'])) ) { echo 'You must enter your username and password to proceed'; exit; } $username = $_REQUEST['username']; $password = $_REQUEST['password']; if (login($username, $password)) { $_SESSION['auth_user'] = $username; header('Location: '.$_SERVER['HTTP_REFERER']); } else { echo '<br>'; echo 'The credentials you have entered are incorrect<br>'; echo 'You must enter in a valid Username & Password to continue'; exit; } ?>
Every time I test any user ID I've put in the dbase, I get that "The credentials you have entered bla bla woof woof..." message. Any ideas on what's up?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#205
dan (Admin)
Admin
Posts: 179
graph
User Offline Click here to see the profile of this user
Re:Upgraded System 1 Year, 10 Months ago Karma: 5  
Well I as I was reading your post seems to be that you get these errors from the following examples.

Check out if the your NetID and Password are correct,
See if your cookies are malformed
If the cookies are not malformed maybe is because could not decrypt cookies.
and also try to see if current IP address match with IP address in the cookies.

Well check out what I was tell you above and if you still have these problems let me know.

Best Regards Dan,
 
Report to moderator   Logged Logged  
 
I wouldn't recommend sex- drinks- or Mac for everyone but they work for me.

Programming Help, OS System Help, Articles, Videos, Tutorials, Books-Web Dot Dev http://www.webdotdev.com
  The administrator has disabled public write access.
#207
mdub (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Upgraded System 1 Year, 10 Months ago Karma: 5  
I don't think it's the cookies, as it happens on any machine I go to.

I checked the *.sql file again and verified that the IDs I'm using and passwords I've set in the file are what I'm typing in. I'm a unique password, everyone else is just 'password' for my testing phase (not on the outside world here so...).

Anyhow, the cookie it seems to send out shows (in FireFox)

    Name: PHPSESSID
    Content: 44qdvlefhbpb624jvt0um90k74 (whatever)
    Host: internals.emt.local
    Path: /
    Send For: Any type of connection
    Expires: At end of session



All of my files are the same files that I used prior to the crash.
Simply setup a new build (Fedora 6, Apache 2.2.3, MySql 5.027, PHP 5.1.6) after getting a new hard drive installed.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#208
matt (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Upgraded System 1 Year, 10 Months ago Karma: 5  
Hello,

Just to clarify, the files are all the same, it's just the MySQL and PHP versions that have changed?

Rgds,
Matt.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#213
mdub (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Upgraded System 1 Year, 10 Months ago Karma: 5  
YUP - Your statement there is 100% correct.

Now what's irkin' me even more is the fact that I just uploaded it all up to MY domain that is being hosted elsewhere and are using even different versions, after weeding out all of the PHP 5x code (they're on 4x there), I'm finding the same errors.

I've even tried different collations and pword encryptions (md5). Just not havin' any luck at all<br><br>Post edited by: mdub, at: 2007/01/15 15:26
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#214
mdub (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Upgraded System 1 Year, 10 Months ago Karma: 5  
Attached is a copy of my auth file, saved in *.htm format if it helps anyone to help me (or something like that).

Mike (the other one lol)
File Attachment:
File Name: auth_fns.htm
File Size: 2178
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop