Robert Vock <smir@andaloria.de>
Definition at line 22 of file user.php.
Public Member Functions | |
| User (&$oDB, &$oLog, &$aAdmin, $aAdminArrays, $strCookie) | |
| constructor. | |
| checklogin () | |
| check for correct login | |
| login ($strLoginName, $strPass) | |
| try to login with user values | |
| logout () | |
| logout user | |
| isAdmin ($strRight) | |
| determines if user has admin rights | |
| check ($x, $y) | |
| check if the user has access to the field | |
| giveRight ($strRight) | |
| gives the user a right | |
| _clearUser () | |
| set default values | |
| _setUser ($aRow) | |
| set users values out of DB-Line (except username and password) | |
Public Attributes | |
| $oDB | |
| DB object. | |
| $oLog | |
| Log object. | |
| $aAdmin | |
| array with | |
| $aAdminArrays | |
| array with names of sql right fields | |
| $aRights | |
| integer array with userrights | |
| $intUserID | |
| $strUser | |
| username | |
| $strPasswd | |
| password | |
| $booLoggedIn | |
| Login-Status. | |
| $cookie_name | |
| Cookie-Name. | |
| $intHomeX | |
| $intHomeY | |
| $intLastX | |
| $intLastY | |
| $intZoom | |
| $intSizeX | |
| $intSizeY | |
| $intFog | |
| 1 = show fog of war | |
| $intDruidFill | |
| 1 = fill druidhort view | |
| $intDruidBorder | |
| 1 = draw border for druidhort view | |
| $intUnit | |
| $intPlayer | |
| player id of this user | |
| $aTowns | |
| $intLimitView | |
|
||||||||||||||||||||||||
|
constructor. set the objects
Definition at line 58 of file user.php. References $aAdmin, $aAdminArrays, $oDB, $oLog, and _clearUser(). |
|
|
set default values
Definition at line 260 of file user.php. References intHomeX, intHomeY, intLastX, intLastY, and intZoom. Referenced by User(). |
|
|
set users values out of DB-Line (except username and password)
Definition at line 286 of file user.php. References $aRow, $sqlResult, intHomeX, intHomeY, intLastX, intLastY, and intZoom. Referenced by checklogin(). |
|
||||||||||||
|
check if the user has access to the field
|
|
|
check for correct login
Definition at line 73 of file user.php. References $_COOKIE, $aRow, _setUser(), login(), and logout(). |
|
|
gives the user a right
|
|
|
determines if user has admin rights
|
|
||||||||||||
|
try to login with user values
Definition at line 145 of file user.php. References $aRow. Referenced by checklogin(). |
|
|
logout user
Definition at line 179 of file user.php. Referenced by checklogin(). |
|
|
array with
Definition at line 26 of file user.php. Referenced by User(). |
|
|
array with names of sql right fields
Definition at line 27 of file user.php. Referenced by User(). |
|
|
integer array with userrights
|
|
|
|
|
|
Login-Status.
|
|
|
Cookie-Name.
|
|
|
1 = draw border for druidhort view
|
|
|
1 = fill druidhort view
|
|
|
1 = show fog of war
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
player id of this user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB object.
Definition at line 24 of file user.php. Referenced by User(). |
|
|
Log object.
Definition at line 25 of file user.php. Referenced by User(). |
|
|
password
|
|
|
username
|
1.4.2