class/PublicWallUpdates.php 1 location
|
@@ 27-38 (lines=12) @@
|
| 24 |
|
|
| 25 |
|
class PublicWallUpdates |
| 26 |
|
{ |
| 27 |
|
private function getAdminModerators() |
| 28 |
|
{ |
| 29 |
|
global $xoopsDB, $xoopsUser; |
| 30 |
|
$sql = 'SELECT userid |
| 31 |
|
FROM ' . $xoopsDB->prefix('smallworld_user') . ' su |
| 32 |
|
LEFT JOIN ' . $xoopsDB->prefix('groups_users_link') . ' xu ON su.userid = xu.uid |
| 33 |
|
WHERE xu.uid IN (1)'; |
| 34 |
|
$result = $xoopsDB->queryF($sql); |
| 35 |
|
while (false !== ($row = $xoopsDB->fetchArray($result))) { |
| 36 |
|
$data[] = $row; |
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
/** |
| 41 |
|
* Get arry of users being inspected |
class/User.php 1 location
|
@@ 66-73 (lines=8) @@
|
| 63 |
|
* @param int $userid |
| 64 |
|
* @return void |
| 65 |
|
*/ |
| 66 |
|
public function createUser($userid) |
| 67 |
|
{ |
| 68 |
|
global $xoopsUser, $xoopsDB; |
| 69 |
|
$a = new $xoopsUser($userid); |
| 70 |
|
$b = $a->uname(); |
| 71 |
|
$sql = 'INSERT INTO ' . $xoopsDB->prefix('smallworld_user') . ' (userid) VALUES (' . (int)$userid . ')'; |
| 72 |
|
$result = $xoopsDB->queryF($sql); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
/** |
| 76 |
|
* @Check is user is smallworld user |