query('SELECT g_id, g_title, g_deledit_interval FROM '.$db->prefix.'groups ORDER BY g_id') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error()); while ($cur_group = $db->fetch_assoc($result)) if ($cur_group['g_id'] > PUN_ADMIN && $cur_group['g_id'] != PUN_GUEST) if ($g_order[$cur_group['g_id']] != '') { $g_time = intval($g_order[$cur_group['g_id']]); $db->query('UPDATE '.$db->prefix.'groups SET g_deledit_interval='.$g_time.' WHERE g_id='.$cur_group['g_id']) or error('Unable to update user group list', __FILE__, __LINE__, $db->error()); } redirect(PLUGIN_URL, $lang_admin_plugin_timelimit['Plugin redirect']); } else { // Display the admin navigation menu generate_admin_menu($plugin); ?>

query('SELECT g_id, g_title, g_deledit_interval FROM '.$db->prefix.'groups ORDER BY g_id') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error()); while ($cur_group = $db->fetch_assoc($result)) if ($cur_group['g_id'] > PUN_ADMIN && $cur_group['g_id'] != PUN_GUEST) { ?>