| @@ 43-48 (lines=6) @@ | ||
| 40 | //$check = new Smallworld\User(); |
|
| 41 | //$pub = smallworld_checkUserPubPostPerm(); |
|
| 42 | ||
| 43 | if (Request::hasVar('updid', 'GET') && Request::hasVar('ownerid', 'GET')) { |
|
| 44 | $updID = Request::getInt('updid', 0, 'GET'); |
|
| 45 | $ownerID = Request::getInt('ownerid', 0, 'GET'); |
|
| 46 | } else { |
|
| 47 | $helper->redirect('index.php', Constants::REDIRECT_DELAY_MEDIUM, _SMALLWORLD_UPDATEID_NOT_EXIST); |
|
| 48 | } |
|
| 49 | ||
| 50 | $id = 0; |
|
| 51 | $is_admin = $helper->isUserAdmin() ? 'YES' : 'NO'; |
|
| @@ 39-45 (lines=7) @@ | ||
| 36 | $GLOBALS['xoopsLogger']->activated = false; |
|
| 37 | /*error_reporting(E_ALL);*/ |
|
| 38 | ||
| 39 | if (Request::hasVar('updid', 'GET') && Request::hasVar('ownerid', 'GET')) { |
|
| 40 | $updID = Request::getInt('updid', 0, 'GET'); |
|
| 41 | $ownerID = Request::getInt('ownerid', 0, 'GET'); |
|
| 42 | $wm = []; |
|
| 43 | } else { |
|
| 44 | $helper->redirect('index.php', Constants::REDIRECT_DELAY_MEDIUM, _SMALLWORLD_UPDATEID_NOT_EXIST); |
|
| 45 | } |
|
| 46 | ||
| 47 | $perm = smallworldCheckPriv($updID); |
|
| 48 | $GLOBALS['xoopsTpl']->caching = 0; |
|