Upgraded System (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Upgraded System
|
mdub (User)
Junior Boarder
Posts: 26
|
|
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?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
dan (Admin)
Admin
Posts: 179
|
|
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,
|
|
|
|
|
|
|
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.
|
mdub (User)
Junior Boarder
Posts: 26
|
|
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.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
matt (User)
Fresh Boarder
Posts: 12
|
|
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.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
mdub (User)
Junior Boarder
Posts: 26
|
|
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
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
mdub (User)
Junior Boarder
Posts: 26
|
|
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)
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|
|
Who's Online |
|
We have 2 guests online |
|