@@ 53-57 (lines=5) @@ | ||
50 | } |
|
51 | ||
52 | // Check if user has adminrights or not; |
|
53 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
54 | $isadmin = true; |
|
55 | } else { |
|
56 | $isadmin = false; |
|
57 | } |
|
58 | ||
59 | // Get the user ID; |
|
60 | $userid = $xoopsUser->getVar('uid'); |
@@ 289-293 (lines=5) @@ | ||
286 | function getCategoriesPaths($get_itemid) |
|
287 | { |
|
288 | global $efqtree, $xoopsDB, $get_itemid, $get_dirid, $xoopsUser, $xoopsModule; |
|
289 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
290 | $isadmin = true; |
|
291 | } else { |
|
292 | $isadmin = false; |
|
293 | } |
|
294 | $result = $xoopsDB->query('SELECT xid, cid, itemid FROM ' . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_item_x_cat') . ' WHERE itemid = ' . $get_itemid . " AND active='1'"); |
|
295 | $num_results = $GLOBALS['xoopsDB']->getRowsNum($result); |
|
296 | if (!$result) { |
|
@@ 693-697 (lines=5) @@ | ||
690 | function getCatSelectArea2() |
|
691 | { |
|
692 | global $xoopsDB, $myts, $eh, $mytree, $get_dirid, $moddir, $xoopsUser, $xoopsModule; |
|
693 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
694 | $isadmin = true; |
|
695 | } else { |
|
696 | $isadmin = false; |
|
697 | } |
|
698 | $sql = 'SELECT cid, title, pid, allowlist FROM ' . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_cat') . " WHERE dirid='" . $get_dirid . '\' AND pid=\'0\' AND active=\'1\''; |
|
699 | $mainresult = $xoopsDB->query($sql); |
|
700 | $numrows = $xoopsDB->getRowsNum($mainresult); |
@@ 169-173 (lines=5) @@ | ||
166 | ++$count; |
|
167 | } |
|
168 | ||
169 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
170 | $isadmin = true; |
|
171 | } else { |
|
172 | $isadmin = false; |
|
173 | } |
|
174 | /*if ($xoopsModuleConfig['allowcomments'] == 1) { |
|
175 | $xoopsTpl->assign('allowcomments', true); |
|
176 | $xoopsTpl->assign('lang_comments' , _COMMENTS); |
@@ 38-42 (lines=5) @@ | ||
35 | $GLOBALS['xoopsOption']['template_main'] = 'efqdiralpha1_listing.tpl'; |
|
36 | include XOOPS_ROOT_PATH . '/header.php'; |
|
37 | ||
38 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
39 | $isadmin = true; |
|
40 | } else { |
|
41 | $isadmin = false; |
|
42 | } |
|
43 | ||
44 | if (isset($_GET['catid'])) { |
|
45 | $get_catid = (int)$_GET['catid']; |
@@ 43-47 (lines=5) @@ | ||
40 | ||
41 | $moddir = $xoopsModule->getVar('dirname'); |
|
42 | ||
43 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
44 | $isadmin = true; |
|
45 | } else { |
|
46 | $isadmin = false; |
|
47 | } |
|
48 | ||
49 | if (!empty($_GET['item'])) { |
|
50 | $get_itemid = (int)$_GET['item']; |