"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/admin/module/user_groups.php" between
wacko.6.1.18.zip and wacko.6.1.19.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

user_groups.php  (wacko.6.1.18):user_groups.php  (wacko.6.1.19)
skipping to change at line 28 skipping to change at line 28
########################################################## ##########################################################
function admin_user_groups($engine, $module) function admin_user_groups($engine, $module)
{ {
$where = ''; $where = '';
$order = ''; $order = '';
$usergroup = []; $usergroup = [];
$orderuser = ''; $orderuser = '';
$prefix = $engine->prefix; $prefix = $engine->prefix;
/* TODO: /*
* Pre-defined groups * Pre-defined groups
* Pre-defined groups are special groups, they cannot be deleted or directly mod ified. However you can still add users and alter basic settings. * Pre-defined groups are special groups, they cannot be deleted or directly mod ified. However you can still add users and alter basic settings.
* *
* User defined groups * User defined groups
* These are groups created by you or another admin on this board. You can manag e memberships as well as edit group properties or even delete the group. * These are groups created by you or another admin on this wiki. You can manage memberships as well as edit group properties or even delete the group.
*/ */
?> ?>
<h1><?php echo $engine->_t($module)['title']; ?></h1> <h1><?php echo $engine->_t($module)['title']; ?></h1>
<br> <br>
<p> <p>
<?php echo $engine->_t('GroupsInfo');?> <?php echo $engine->_t('GroupsInfo');?>
</p> </p>
<br> <br>
<?php <?php
///////////////////////////////////////////// /////////////////////////////////////////////
// list change/update // list change/update
///////////////////////////////////////////// /////////////////////////////////////////////
$_order = $_GET['order'] ?? ''; $_order = $_GET['order'] ?? '';
$action = $_POST['_action'] ?? null; $action = $_POST['_action'] ?? null;
$group_id = (int) ($_GET['group_id'] ?? $_POST['group_id'] ?? null)
;
$change_id = (int) ($_POST['group_id'] ?? null);
$open = (int) ($_POST['open'] ?? 0);
$active = (int) ($_POST['active'] ?? 0);
// update groups list // update groups list
if (isset($_POST['save'])) if (isset($_POST['save']))
{ {
$engine->log(4, $engine->_t('LogMembersUpdated', SYSTEM_LANG)); $engine->log(4, $engine->_t('LogMembersUpdated', SYSTEM_LANG));
$engine->set_message($engine->_t('GroupsUpdated')); $engine->set_message($engine->_t('GroupsUpdated'));
} }
else else
{ {
$group_id = (int) ($_GET['group_id'] ?? $_POST['group_id'] ?? null);
$p_group_id = (int) ($_POST['group_id'] ?? null); $p_group_id = (int) ($_POST['group_id'] ?? null);
$usergroup = $engine->db->load_single( $usergroup = $engine->db->load_single(
"SELECT group_name " . "SELECT group_name " .
"FROM " . $prefix . "usergroup " . "FROM " . $prefix . "usergroup " .
"WHERE group_id = " . (int) $group_id . " " . "WHERE group_id = " . (int) $group_id . " " .
"LIMIT 1"); "LIMIT 1");
///////////////////////////////////////////// /////////////////////////////////////////////
// MEMBERS // MEMBERS
skipping to change at line 169 skipping to change at line 173
<a href="' . $engine->hre f() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine-> _t('CancelButton') . '</button></a> <a href="' . $engine->hre f() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine-> _t('CancelButton') . '</button></a>
</td> </td>
</tr> </tr>
</table> </table>
<br>'; <br>';
echo $engine->form_close(); echo $engine->form_close();
} }
// remove member from group // remove member from group
if (isset($_POST['remove_member']) && isset($_POST['chang e_member'])) if (isset($_POST['remove_member']) && isset($_POST['chang e_member_id']))
{ {
if ($member = $engine->db->load_single( if ($member = $engine->db->load_single(
"SELECT user_id, user_name " . "SELECT user_id, user_name " .
"FROM " . $prefix . "user " . "FROM " . $prefix . "user " .
"WHERE user_id = " . (int) $_POST['change _member'] . " " . "WHERE user_id = " . (int) $_POST['change _member_id'] . " " .
"LIMIT 1")) "LIMIT 1"))
{ {
echo '<h2>' . $engine->_t('GroupRemoveMem ber') . '</h2>'; echo '<h2>' . $engine->_t('GroupRemoveMem ber') . '</h2>';
echo $engine->form_open('remove_group_mem ber'); echo $engine->form_open('remove_group_mem ber');
echo echo
'<input type="hidden" name="group _id" value="' . (int) $group_id . '">' . '<input type="hidden" name="group _id" value="' . (int) $group_id . '">' .
'<input type="hidden" name="membe r_id" value="' . (int) $member['user_id'] . '">' . "\n" . '<input type="hidden" name="membe r_id" value="' . (int) $member['user_id'] . '">' . "\n" .
'<table class="formation">' . '<table class="formation">' .
'<tr> '<tr>
skipping to change at line 228 skipping to change at line 232
$_POST['create'] = 1; $_POST['create'] = 1;
} }
else else
{ {
$engine->db->sql_query( $engine->db->sql_query(
"INSERT INTO " . $prefix . "usergroup SET " . "INSERT INTO " . $prefix . "usergroup SET " .
"group_name = " . $en gine->db->q($group_name) . ", " . "group_name = " . $en gine->db->q($group_name) . ", " .
"description = " . $engine->db ->q($description) . ", " . "description = " . $engine->db ->q($description) . ", " .
"moderator_id = " . (int) $_POS T['moderator_id'] . ", " . "moderator_id = " . (int) $_POS T['moderator_id'] . ", " .
"created = UTC_TIM ESTAMP(), " . "created = UTC_TIM ESTAMP(), " .
"open = " . (in "open = " . (in
t) ($_POST['open'] ?? 0) . ", " . t) $open . ", " .
"active = " . (in "active = " . (in
t) ($_POST['active'] ?? 0)); t) $active);
$engine->config->invalidate_config_cache(); $engine->config->invalidate_config_cache();
$engine->show_message($engine->_t('GroupsAdded'), 'success'); $engine->show_message($engine->_t('GroupsAdded'), 'success');
$engine->log(4, Ut::perc_replace($engine->_t('Log GroupCreated', SYSTEM_LANG), $_POST['new_group_name'])); $engine->log(4, Ut::perc_replace($engine->_t('Log GroupCreated', SYSTEM_LANG), $_POST['new_group_name']));
unset($_POST['create']); unset($_POST['create']);
} }
} }
// edit group // edit group
else if ($action == 'edit_group' else if ($action == 'edit_group'
&& $p_group_id && $p_group_id
skipping to change at line 253 skipping to change at line 257
$description = $engine->sanitize_text_field(($_POST['d escription'] ?? '')); $description = $engine->sanitize_text_field(($_POST['d escription'] ?? ''));
// do we have identical names? // do we have identical names?
if ($engine->db->load_single( if ($engine->db->load_single(
"SELECT group_id FROM " . $prefix . "usergroup " . "SELECT group_id FROM " . $prefix . "usergroup " .
"WHERE group_name = " . $engine->db->q($group_nam e) . " " . "WHERE group_name = " . $engine->db->q($group_nam e) . " " .
"AND group_id <> " . (int) $p_group_id . " " . "AND group_id <> " . (int) $p_group_id . " " .
"LIMIT 1")) "LIMIT 1"))
{ {
$engine->set_message($engine->_t('GroupsAlreadyEx ists')); $engine->set_message($engine->_t('GroupsAlreadyEx ists'));
$_POST['change'] = $p_group_id; $_POST['change_id'] = $p_group_id;
$_POST['edit'] = 1; $_POST['edit'] = 1;
} }
else else
{ {
$engine->db->sql_query( $engine->db->sql_query(
"UPDATE " . $prefix . "usergroup SET " . "UPDATE " . $prefix . "usergroup SET " .
"group_name = " . $en gine->db->q($group_name) . ", " . "group_name = " . $en gine->db->q($group_name) . ", " .
"description = " . $engine->db ->q($description) . ", " . "description = " . $engine->db ->q($description) . ", " .
"moderator_id = " . (int) $_POS T['moderator_id'] . ", " . "moderator_id = " . (int) $_POS T['moderator_id'] . ", " .
"open = " . (in "open = " . (in
t) ($_POST['open'] ?? 0) . ", " . t) $open . ", " .
"active = " . (in "active = " . (in
t) ($_POST['active'] ?? 0) . " " . t) $active . " " .
"WHERE group_id = " . (int) $p_group_id . " " . "WHERE group_id = " . (int) $p_group_id . " " .
"LIMIT 1"); "LIMIT 1");
$engine->show_message($engine->_t('GroupsRenamed' )); $engine->show_message($engine->_t('GroupsRenamed' ));
$engine->log(4, Ut::perc_replace($engine->_t('Log GroupRenamed', SYSTEM_LANG), $usergroup['group_name'], $_POST['new_group_name']) ); $engine->log(4, Ut::perc_replace($engine->_t('Log GroupRenamed', SYSTEM_LANG), $usergroup['group_name'], $_POST['new_group_name']) );
} }
} }
// delete group // delete group
else if ($action == 'delete_group' else if ($action == 'delete_group'
&& $p_group_id) && $p_group_id)
skipping to change at line 296 skipping to change at line 300
"AND is_system <> 1"; "AND is_system <> 1";
$engine->db->sql_query( $engine->db->sql_query(
"DELETE FROM " . $prefix . "usergroup_member " . "DELETE FROM " . $prefix . "usergroup_member " .
"WHERE group_id = " . (int) $usergroup['group_id' ]) . " " . "WHERE group_id = " . (int) $usergroup['group_id' ]) . " " .
"AND is_system <> 1"; "AND is_system <> 1";
$engine->config->invalidate_config_cache(); $engine->config->invalidate_config_cache();
$engine->show_message(Ut::perc_replace($engine->_t('Group sDeleted'), '<code>' . $usergroup['group_name'] . '</code>'), 'success'); $engine->show_message(Ut::perc_replace($engine->_t('Group sDeleted'), '<code>' . $usergroup['group_name'] . '</code>'), 'success');
$engine->log(4, Ut::perc_replace($engine->_t('LogGroupRem oved', SYSTEM_LANG), $usergroup['group_name'])); $engine->log(4, Ut::perc_replace($engine->_t('LogGroupRem oved', SYSTEM_LANG), $usergroup['group_name']));
unset($_GET['group_id']); unset($_GET['group_id'], $_POST['group_id']);
unset($_POST['group_id']);
} }
} }
///////////////////////////////////////////// /////////////////////////////////////////////
// edit group forms // edit group forms
///////////////////////////////////////////// /////////////////////////////////////////////
// add new group // add new group
if (isset($_POST['create_group'])) if (isset($_POST['create_group']))
{ {
echo '<h2>' . $engine->_t('GroupAddNew') . '</h2>'; echo '<h2>' . $engine->_t('GroupAddNew') . '</h2>';
echo $engine->form_open('add_group'); echo $engine->form_open('add_group');
echo '<table class="formation lined"> echo '<table class="formation lined">
<tr> <tr>
<th> <th>
<label for="new_group_name">' . $ engine->_t('GroupsAdd') . '</label> <label for="new_group_name">' . $ engine->_t('GroupsAdd') . '</label>
</th> </th>
<td> <td>
<input type="text" id="new_group_ name" name="new_group_name" value="' . Ut::html(($_POST['new_group_name'] ?? '') ) . '" pattern="' . $engine->lang['USER_NAME'] . '" size="20" maxlength="100" re quired autofocus> <input type="text" id="new_group_ name" name="new_group_name" value="' . Ut::html(($_POST['new_group_name'] ?? '') ) . '" pattern="' . $engine::PATTERN['USER_NAME'] . '" size="20" maxlength="100" required autofocus>
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="description">' . $eng ine->_t('GroupsDescription') . '</label> <label for="description">' . $eng ine->_t('GroupsDescription') . '</label>
</th> </th>
<td> <td>
<input type="text" id="descriptio n" name="description" value="' . Ut::html(($_POST['description'] ?? '')) . '" si ze="50" maxlength="100"> <input type="text" id="descriptio n" name="description" value="' . Ut::html(($_POST['description'] ?? '')) . '" si ze="50" maxlength="100">
</td> </td>
</tr> </tr>
skipping to change at line 352 skipping to change at line 355
} }
echo '</select> echo '</select>
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="open">' . $engine->_t ('GroupsOpen') . '</label> <label for="open">' . $engine->_t ('GroupsOpen') . '</label>
</th> </th>
<td> <td>
<input type="checkbox" id="open" name="open" value="1" ' . (!isset($_POST['open']) ? ' checked' : '') . '> <input type="checkbox" id="open" name="open" value="1" ' . (!$open ? ' checked' : '') . '>
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="active">' . $engine-> _t('GroupsActive') . '</label> <label for="active">' . $engine-> _t('GroupsActive') . '</label>
</th> </th>
<td> <td>
<input type="checkbox" id="active " name="active" value="1" ' . (!isset($_POST['active']) ? ' checked' : '') . '> <input type="checkbox" id="active " name="active" value="1" ' . (!$active ? ' checked' : '') . '>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<br> <br>
<button type="submit" id="submit" name="create">' . $engine->_t('SubmitButton') . '</button> <button type="submit" id="submit" name="create">' . $engine->_t('SubmitButton') . '</button>
<a href="' . $engine->href() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine->_t('Canc elButton') . '</button></a> <a href="' . $engine->href() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine->_t('Canc elButton') . '</button></a>
</td> </td>
</tr> </tr>
</table> </table>
<br>'; <br>';
echo $engine->form_close(); echo $engine->form_close();
} }
// edit group // edit group
else if (isset($_POST['edit_group']) && isset($_POST['change'])) else if (isset($_POST['edit_group']) && $change_id)
{ {
if ($usergroup = $engine->db->load_single( if ($usergroup = $engine->db->load_single(
"SELECT group_name, description, moderator_id, open, acti ve "SELECT group_name, description, moderator_id, open, acti ve
FROM " . $prefix . "usergroup FROM " . $prefix . "usergroup
WHERE group_id = " . (int) $_POST['change'] . " WHERE group_id = " . (int) $change_id . "
LIMIT 1")) LIMIT 1"))
{ {
echo '<h2>' . $engine->_t('GroupEdit') . '</h2>'; echo '<h2>' . $engine->_t('GroupEdit') . '</h2>';
echo $engine->form_open('edit_group'); echo $engine->form_open('edit_group');
echo '<input type="hidden" name="group_id" value="' . (in t) $_POST['change'] . '">' . "\n" . echo '<input type="hidden" name="group_id" value="' . $ch ange_id . '">' . "\n" .
'<table class="formation lined"> '<table class="formation lined">
<tr> <tr>
<th> <th>
<label for="new_group_name">' . U t::perc_replace($engine->_t('GroupsRename'), ' <code>' . Ut::html($usergroup['gr oup_name']) . '</code>') . '</label> <label for="new_group_name">' . U t::perc_replace($engine->_t('GroupsRename'), ' <code>' . Ut::html($usergroup['gr oup_name']) . '</code>') . '</label>
</th> </th>
<td> <td>
<input type="text" id="new_group_ name" name="new_group_name" value="' . Ut::html(($_POST['new_group_name'] ?? $us ergroup['group_name'])) . '" pattern="' . $engine->lang['USER_NAME'] . '" size=" 20" maxlength="100"> <input type="text" id="new_group_ name" name="new_group_name" value="' . Ut::html(($_POST['new_group_name'] ?? $us ergroup['group_name'])) . '" pattern="' . $engine::PATTERN['USER_NAME'] . '" siz e="20" maxlength="100">
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="new_description">' . $engine->_t('GroupsDescription') . '</label> <label for="new_description">' . $engine->_t('GroupsDescription') . '</label>
</th> </th>
<td> <td>
<input type="text" id="new_descri ption" name="new_description" value="' . Ut::html(($_POST['new_description'] ?? $usergroup['description'])) . '" size="50" maxlength="100"> <input type="text" id="new_descri ption" name="new_description" value="' . Ut::html(($_POST['new_description'] ?? $usergroup['description'])) . '" size="50" maxlength="100">
</td> </td>
</tr> </tr>
skipping to change at line 429 skipping to change at line 432
} }
echo '</select> echo '</select>
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="open">' . $engine->_t ('GroupsOpen') . '</label> <label for="open">' . $engine->_t ('GroupsOpen') . '</label>
</th> </th>
<td> <td>
<input type="checkbox" id="open" name="open" value="1" ' . (isset($_POST['open']) || $usergroup['open'] == 1 ? ' checked' : '') . '> <input type="checkbox" id="open" name="open" value="1" ' . ($open || $usergroup['open'] == 1 ? ' checked' : '') . '>
</td> </td>
</tr> </tr>
<tr> <tr>
<th> <th>
<label for="active">' . $engine-> _t('GroupsActive') . '</label> <label for="active">' . $engine-> _t('GroupsActive') . '</label>
</th> </th>
<td> <td>
<input type="checkbox" id="active " name="active" value="1" ' . (isset($_POST['active']) || $usergroup['active'] = = 1 ? ' checked' : '') . '> <input type="checkbox" id="active " name="active" value="1" ' . ($active || $usergroup['active'] == 1 ? ' checked' : '') . '>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<br><small>' . $engine->_t('Group sRenameInfo') . '</small> <br><small>' . $engine->_t('Group sRenameInfo') . '</small>
<br><br> <br><br>
<button type="submit" id="submit" name="edit">' . $engine->_t('SubmitButton') . '</button> <button type="submit" id="submit" name="edit">' . $engine->_t('SubmitButton') . '</button>
<a href="' . $engine->href() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine->_t('Canc elButton') . '</button></a> <a href="' . $engine->href() . '" class="btn-link"><button type="button" class="btn-cancel">' . $engine->_t('Canc elButton') . '</button></a>
</td> </td>
</tr> </tr>
</table><br>'; </table><br>';
echo $engine->form_close(); echo $engine->form_close();
} }
} }
// delete group // delete group
else if (isset($_POST['delete_group']) && isset($_POST['change'])) else if (isset($_POST['delete_group']) && $change_id)
{ {
if ($usergroup = $engine->db->load_single( if ($usergroup = $engine->db->load_single(
"SELECT group_name, is_system "SELECT group_name, is_system
FROM " . $prefix . "usergroup FROM " . $prefix . "usergroup
WHERE group_id = " . (int) $_POST['change'] . " WHERE group_id = " . (int) $change_id . "
LIMIT 1")) LIMIT 1"))
{ {
if ($usergroup['is_system']) if ($usergroup['is_system'])
{ {
$engine->show_message(Ut::perc_replace($engine->_ t('GroupsIsSystem'), ' <code>' . Ut::html($usergroup['group_name']) . '</code>') ); $engine->show_message(Ut::perc_replace($engine->_ t('GroupsIsSystem'), ' <code>' . Ut::html($usergroup['group_name']) . '</code>') );
} }
else else
{ {
echo '<h2>' . $engine->_t('GroupDelete') . '</h2> '; echo '<h2>' . $engine->_t('GroupDelete') . '</h2> ';
echo $engine->form_open('delete_group'); echo $engine->form_open('delete_group');
echo '<input type="hidden" name="group_id" value= "' . (int) $_POST['change'] . '">' . "\n" . echo '<input type="hidden" name="group_id" value= "' . $change_id . '">' . "\n" .
'<table class="formation lined"> '<table class="formation lined">
<tr> <tr>
<td>' . <td>' .
Ut::perc_replace( $engine->_t('GroupsDelete'), ' <code>' . Ut::html($usergroup['group_name']) . '< /code>') . ' ' . Ut::perc_replace( $engine->_t('GroupsDelete'), ' <code>' . Ut::html($usergroup['group_name']) . '< /code>') . ' ' .
'<button type="su bmit" id="submit" name="delete">' . $engine->_t('Remove') . '</button> ' . '<button type="su bmit" id="submit" name="delete">' . $engine->_t('Remove') . '</button> ' .
'<a href="' . $en gine->href() . '" class="btn-link"><button type="button" id="button">' . $engine ->_t('Cancel') . '</button></a>' . '<a href="' . $en gine->href() . '" class="btn-link"><button type="button" id="button">' . $engine ->_t('Cancel') . '</button></a>' .
'<br><small>' . $ engine->_t('GroupsDeleteInfo') . '</small> '<br><small>' . $ engine->_t('GroupsDeleteInfo') . '</small>
</td> </td>
</tr> </tr>
</table> </table>
skipping to change at line 494 skipping to change at line 497
echo $engine->form_close(); echo $engine->form_close();
} }
} }
} }
///////////////////////////////////////////// /////////////////////////////////////////////
// building lists // building lists
///////////////////////////////////////////// /////////////////////////////////////////////
// get group // get group
else if (isset($_GET['group_id']) || isset($_POST['group_id'])) else if ($group_id)
{ {
$group_id = (int) ($_GET['group_id'] ?? $_POST['group_id'] ?? nul l);
$usergroup = $engine->db->load_single( $usergroup = $engine->db->load_single(
"SELECT group_id, moderator_id, group_name " . "SELECT group_id, moderator_id, group_name " .
"FROM " . $prefix . "usergroup " . "FROM " . $prefix . "usergroup " .
"WHERE group_id = " . (int) $group_id . " " . "WHERE group_id = " . (int) $group_id . " " .
"LIMIT 1"); "LIMIT 1");
echo "<h2>" . $engine->_t('GroupsMembersFor') . ": " . $usergroup ['group_name'] . "</h2>"; echo "<h2>" . $engine->_t('GroupsMembersFor') . ": " . $usergroup ['group_name'] . "</h2>";
$members = $engine->db->load_all( $members = $engine->db->load_all(
"SELECT m.user_id, u.user_name " . "SELECT m.user_id, u.user_name " .
skipping to change at line 536 skipping to change at line 538
<th><a href="<?php echo $engine->href() . $orderuser; ?>"><?php echo $engine->_t('UserName');?></a></th> <th><a href="<?php echo $engine->href() . $orderuser; ?>"><?php echo $engine->_t('UserName');?></a></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
foreach ($members as $member) foreach ($members as $member)
{ {
echo echo
'<tr>' . "\n" . '<tr>' . "\n" .
'<td> '<td>
<input type="radio" name="change_ member" value="' . $member['user_id'] . '"></td>' . <input type="radio" name="change_ member_id" value="' . $member['user_id'] . '"></td>' .
'<td>' . $member['user_id'] . '</td>' . '<td>' . $member['user_id'] . '</td>' .
'<td><strong><a href="' . $engine->href(' ', '', ['mode' => 'user_users', 'user_id' => $member['user_id']]) . '">' . $memb er['user_name'] . '</a></strong></td>' . '<td><strong><a href="' . $engine->href(' ', '', ['mode' => 'user_users', 'user_id' => $member['user_id']]) . '">' . $memb er['user_name'] . '</a></strong></td>' .
'</tr>'; '</tr>';
} }
?> ?>
</tbody> </tbody>
</table> </table>
<?php <?php
///////////////////////////////////////////// /////////////////////////////////////////////
skipping to change at line 586 skipping to change at line 588
'group_desc' => 'group_asc', 'group_desc' => 'group_asc',
default => 'group_desc', default => 'group_desc',
}; };
// set members ordering // set members ordering
$order_members = match($_order) { $order_members = match($_order) {
'members_asc' => 'members_desc', 'members_asc' => 'members_desc',
default => 'members_asc', default => 'members_asc',
}; };
// filter by lang // filter
if (isset($_GET['moderator_id'])) if (isset($_GET['moderator_id']))
{ {
$where = "WHERE g.moderator_id = " . (int) $_GET['moderat or_id'] . " "; $where = "WHERE g.moderator_id = " . (int) $_GET['moderat or_id'] . " ";
} }
// entries to display // entries to display
$limit = 100; $limit = 100;
// collecting data // collecting data
$count = $engine->db->load_single( $count = $engine->db->load_single(
skipping to change at line 667 skipping to change at line 669
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if ($groups) if ($groups)
{ {
foreach ($groups as $row) foreach ($groups as $row)
{ {
echo echo
'<tr>' . "\n" . '<tr>' . "\n" .
'<td><input type="radio" name="ch ange" value="' . $row['group_id'] . '"></td>' . '<td><input type="radio" name="ch ange_id" value="' . $row['group_id'] . '"></td>' .
'<td>' . $row['group_id'] . '</td >' . '<td>' . $row['group_id'] . '</td >' .
'<td><a href="' . $engine->href(' ', '', ['group_id' => $row['group_id']]) . '">' . $row['group_name'] . '</a></td >' . '<td><a href="' . $engine->href(' ', '', ['group_id' => $row['group_id']]) . '">' . $row['group_name'] . '</a></td >' .
'<td>' . $row['description'] . '< /td>' . '<td>' . $row['description'] . '< /td>' .
'<td><small><a href="' . $engine- >href('', '', ['moderator' => $row['moderator_id']]) . '">' . $row['user_name'] . '</a></small></td>' . '<td><small><a href="' . $engine- >href('', '', ['moderator' => $row['moderator_id']]) . '">' . $row['user_name'] . '</a></small></td>' .
'<td>' . $row['members'] . '</td> ' . '<td>' . $row['members'] . '</td> ' .
'<td>' . $row['open'] . '</td>' . '<td>' . $row['open'] . '</td>' .
'<td>' . $row['active'] . '</td>' . '<td>' . $row['active'] . '</td>' .
'<td><small>' . $engine->sql_time _formatted($row['created']) . '</small></td>' . '<td><small>' . $engine->sql_time _formatted($row['created']) . '</small></td>' .
'</tr>'; '</tr>';
} }
 End of changes. 27 change blocks. 
33 lines changed or deleted 36 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)