Changeset 499 for trunk/includes
- Timestamp:
- Jan 30, 2013, 10:34:18 PM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r486 r499 255 255 else $IP = addslashes($_SERVER['REMOTE_ADDR']); 256 256 257 if( isset($User->Id)) $UserId = $User->Id;258 else $UserId = 0;257 if(!is_null($User->Id)) $UserId = $User->Id; 258 else $UserId = 'NULL'; 259 259 $Query = 'INSERT INTO `Log` ( `User` , `Type` , `Text` , `Date` , `IP` ) 260 260 VALUES ('.$UserId.', '.$Type.', "'.addslashes($Text).'", NOW(), "'.$IP.'")'; -
trunk/includes/user.php
r495 r499 84 84 function SetAnonymous() 85 85 { 86 $this->Id = 0;86 $this->Id = NULL; 87 87 $this->Name = 'anonymous'; 88 88 $this->Role = LICENCE_ANONYMOUS; 89 $this->Language = 1;89 $this->Language = NULL; 90 90 $this->Redirecting = 1; 91 $this->Team = 0;91 $this->Team = ''; 92 92 $this->Email = ''; 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.