Find:
Replace with:
The constructor didn't get renamed when I renamed the class. I can't wait until Threads stops supporting PHP 4.X
Done but still not working. ??
Snip it from the includes file.
class user_auth {
var $fields;
var $is_logged_in;
var $permissions;
var $is_banned;
var $groups;
function user_auth() {
global $config, $dbh;
My page is test.php
<?php
include ('/home/xxxxx/domains/xxxxxxxxx/public_html/forums/includes/user_auth.inc.php');
if( $userob->is_logged_in ) { if( $userob->is_banned ) { echo "Go away, " . $userob->fields['USER_DISPLAY_NAME']; } else { echo "Welcome, " . $userob->fields['USER_DISPLAY_NAME']; } } else { echo "Please register<br />"; }
echo "Script has ran. <br />";
?>
1. I am logged into my forums
2. Output = "Please register"
3. No errors out put ??
I cant understand what's wrong?
Its there a die script i can do for the sql?
To see where its failing??
Thanks for the help and assistance as always.
