Commit e19bfeee authored by Ewald's avatar Ewald
Browse files

corrections to commit a70c77af

parent 650ab8ec
......@@ -159,7 +159,6 @@ switch($menu_mode) {
}
if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
$module_user_id = intval($module_user_id);
$module_group_id = intval($module_group_id);
} else {
$module_user_id = intval($_SESSION['session_user_id']);
}
......@@ -368,7 +367,7 @@ $groupids = array();
if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
echo '<select name="module_group_id" id="module_group_id" size="0" title="'.$l['h_module_owner'].'" onchange="">'.K_NEWLINE;
$sql = "SELECT group_id, group_name FROM " . K_TABLE_GROUPS. " WHERE group_id IN ( SELECT usrgrp_group_id FROM ".K_TABLE_USERGROUP." WHERE usrgrp_user_id IN
( SELECT user_id FROM ".K_TABLE_USERS." WHERE user_level > 5) ) ORDER BY group_name;";
( SELECT user_id FROM ".K_TABLE_USERS." WHERE user_level > ".K_AUTH_OPERATOR." )) ORDER BY group_name;";
if ($r = F_db_query($sql, $db)) {
echo '<option value="()">';
while($m = F_db_fetch_array($r)) {
......@@ -376,8 +375,6 @@ if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
echo '<option value="'.$m['group_id'].'"';
if ($m['group_id'] == $module_group_id) {
echo ' selected="selected"';
} else {
echo "xxx";
}
echo '>'.htmlspecialchars($m['group_name'].'', ENT_NOQUOTES, $l['a_meta_charset']).'</option>'.K_NEWLINE;
}
......@@ -388,8 +385,6 @@ if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
F_display_db_error();
}
} else {
// $groupdata = '';
// $groupids[] = $module_group_id;
$sql = "SELECT group_id, group_name FROM ".K_TABLE_GROUPS." WHERE group_id IN (SELECT module_group_id FROM ".K_TABLE_MODULES." WHERE module_id = ".$module_id.")";
if ($r = F_db_query($sql, $db)) {
if ($m = F_db_fetch_array($r)) {
......
......@@ -961,7 +961,7 @@ echo '<span class="formw">'.K_NEWLINE;
$userids = array();
if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
echo '<select name="test_user_id" id="test_user_id" size="0" title="'.$l['h_module_owner'].'" onchange="">'.K_NEWLINE;
$sql = 'SELECT user_id, user_lastname, user_firstname, user_name FROM '.K_TABLE_USERS.' WHERE (user_level>5) ORDER BY user_lastname, user_firstname, user_name';
$sql = 'SELECT user_id, user_lastname, user_firstname, user_name FROM '.K_TABLE_USERS.' WHERE (user_level> '.K_AUTH_OPERATOR.') ORDER BY user_lastname, user_firstname, user_name';
if ($r = F_db_query($sql, $db)) {
while($m = F_db_fetch_array($r)) {
$userids[] = $m['user_id'];
......@@ -973,7 +973,6 @@ if ($_SESSION['session_user_level'] >= K_AUTH_ADMINISTRATOR) {
}
}
else {
echo '</select></span></div>'.K_NEWLINE;
F_display_db_error();
}
echo '</select>'.K_NEWLINE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment