The Admin cass provides basic functions to configure almost everything of the phpmap.
Use addUser() to add a new user, delUser() or even deletePlayers() to remove one or several users, retrieve a list of users including their rights with getUsers() and get all available groups with getGroups(). Remove towns with deleteTowns().
Check tracked actions with getLogList() and delete them with deleteLogs().
Additionally, get unused/unlinked SQL data with getDeadList(), and use optimizeDb() to execute a SQL optimize command.
Robert Vock <smir@andaloria.de>
Definition at line 35 of file lib/admin.php.
Public Member Functions | |
| Admin (&$oDB, &$oLog) | |
| constructor. | |
| addUser ($strName, $strPass, $intHomeX, $intHomeY, $intGroup) | |
| add a new user for phpmap | |
| editUser ($intUser, $strPlayer, $intHomeX, $intHomeY, $intGroup) | |
| edit a user of phpmap | |
| getUser ($intUser) | |
| get a user | |
| delUser ($intUser) | |
| delete a user of phpmap | |
| getUsers ($strOrder) | |
| get a list of users and their rights | |
| getGroups ($strOrder=name') | |
| gets a list of groups of phpmap | |
| getLogStat ($strOrder, $intStart=0, $intEnd=50) | |
| get user statistics out of log | |
| getLogList ($strOrder, $intStart=0, $intEnd=50) | |
| get action loglist | |
| deleteLogs ($aLogIds, $intTime=0) | |
| delete log entries | |
| getDeadList () | |
| get a list of unused/unlinked sql data (towns, players and empty guilds) | |
| deletePlayers ($aPlayers) | |
| delete players | |
| optimizeDb () | |
| optimize all sql tables to increase query speed | |
| countMapMerge () | |
| counts records im MapData to be merge | |
| mergeMap () | |
| merges duplicate records in MapData | |
Public Attributes | |
| $oDB | |
| DB object. | |
| $oLog | |
| Log object. | |
|
||||||||||||
|
constructor. set the objects
Definition at line 46 of file lib/admin.php. |
|
||||||||||||||||||||||||
|
add a new user for phpmap
Definition at line 62 of file lib/admin.php. References $aRow. |
|
|
counts records im MapData to be merge
Definition at line 314 of file lib/admin.php. |
|
||||||||||||
|
delete log entries
Definition at line 239 of file lib/admin.php. |
|
|
delete players
Definition at line 282 of file lib/admin.php. |
|
|
delete a user of phpmap
Definition at line 128 of file lib/admin.php. |
|
||||||||||||||||||||||||
|
edit a user of phpmap
Definition at line 86 of file lib/admin.php. |
|
|
get a list of unused/unlinked sql data (towns, players and empty guilds)
Definition at line 255 of file lib/admin.php. References $aRow. |
|
|
gets a list of groups of phpmap
Definition at line 161 of file lib/admin.php. References $aRow, $sqlResult, and $strOrder. |
|
||||||||||||||||
|
get action loglist
Definition at line 217 of file lib/admin.php. References $aRow. |
|
||||||||||||||||
|
get user statistics out of log
Definition at line 186 of file lib/admin.php. References $aRow. |
|
|
get a user
Definition at line 108 of file lib/admin.php. References $sqlResult. |
|
|
get a list of users and their rights
Definition at line 144 of file lib/admin.php. References $aRow, and $sqlResult. |
|
|
merges duplicate records in MapData
Definition at line 325 of file lib/admin.php. |
|
|
optimize all sql tables to increase query speed
Definition at line 299 of file lib/admin.php. References $aRow. |
|
|
DB object.
Definition at line 37 of file lib/admin.php. Referenced by Admin(). |
|
|
Log object.
Definition at line 38 of file lib/admin.php. Referenced by Admin(). |
1.4.2