|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-12 01:49 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
/* class.user.php included from required file classes.php */ // class definition is as follows: class User { var $username; var $userid; var $email; var $logged_in; var $on_from; var $goto; var $time_on; var $msglock; function set_email($s) { $this->email = $s; } function get_email() { return $this->email; } function set_username($s) { $this-> username = $s; } function log_in($id,$u, $mip, $timeclock, $pri=1) { $this-> on_from = $mip; $this-> time_on = $timeclock; $this-> username = $u; $this-> guildid = $pri; $this-> userid = $id; $this-> logged_in = true; } } class Site {}; $SITE = new Site; $SITE-> wwwroot = "www.gamebaz.com"; $SITE-> droot = "D:/gamebaz/gm/"; $SITE-> libdir = $SITE-> droot . "lib"; require("$SITE->libdir/stdlib.php"); require("$SITE->libdir/dblib.php"); require("$SITE->libdir/classes.php"); require("$SITE->libdir/main_logic.php"); require("$SITE->libdir/form_validation.php"); require("$SITE->libdir/error.php"); if(!isset($this_user)) /* This code runs half the time, and the other times it doesn't I haven't been able to narrow it down I changed nothing in the include files, just all the sudden it thinks that $this_user is never registered again. */ { @session_start(); global $this_user; $this_user = new User("","","","","","","",""); @session_register("this_user"); printf("Starting new user<br>"); }