|
@@ 655-659 (lines=5) @@
|
| 652 |
|
$prefix = $this->getPrefix($keyword); |
| 653 |
|
if ($prefix) { |
| 654 |
|
if ($prefix['defined']) { |
| 655 |
|
if (is_array($groups)) { |
| 656 |
|
$groupwhere = ' IN (' . implode(', ', $groups) . ') '; |
| 657 |
|
} else { |
| 658 |
|
$groupwhere = " = '" . $groups . "'"; |
| 659 |
|
} |
| 660 |
|
$sql = 'SELECT group_prefix_id FROM ' . $xoopsDB->prefix('gwiki_group_prefix') . ' WHERE prefix_id = \'' . $prefix['prefix_id'] . '\' AND group_id ' . $groupwhere; |
| 661 |
|
$result = $xoopsDB->query($sql); |
| 662 |
|
$rows = $xoopsDB->getRowsNum($result); |
|
@@ 747-751 (lines=5) @@
|
| 744 |
|
$create_any = $gpermHandler->checkRight('wiki_authority', _MD_GWIKI_PAGE_PERM_CREATE_ANY_NUM, $groups, $module_id); |
| 745 |
|
$create_pfx = $gpermHandler->checkRight('wiki_authority', _MD_GWIKI_PAGE_PERM_CREATE_PFX_NUM, $groups, $module_id); |
| 746 |
|
|
| 747 |
|
if (is_array($groups)) { |
| 748 |
|
$groupwhere = ' IN (' . implode(', ', $groups) . ') '; |
| 749 |
|
} else { |
| 750 |
|
$groupwhere = " = '" . $groups . "'"; |
| 751 |
|
} |
| 752 |
|
|
| 753 |
|
$sql = 'SELECT distinct p.prefix_id, prefix FROM '; |
| 754 |
|
$sql .= $xoopsDB->prefix('gwiki_prefix') . ' p, '; |