if ($okdeluserstation) { $smarty->assign('OKDELUSERSTATION', $okdeluserstation); } if ($errordeluserstation) { $smarty->assign('ERRORDELUSERSTATION', $errordeluserstation); } if ((sotf_Permission::get("station_manager", $station) || sotf_Permission::get("station_manager")) && $st->isLocal($station)) { if ($addusergroup) { if (sotf_Permission::addUserToGroup($username, $group, $station)) { $status = "&okaddusergroup=1"; } else { $status = "&erroraddusergroup=1"; } $page->redirect("editStation.php?station=" . rawurlencode($station) . $status . "#admin_users"); } elseif ($delusergroup) { if (sotf_Permission::delUserFromGroup($username, $group, $station)) { $status = "&okdelusergroup=1"; } else { $status = "&errordelusergroup=1"; } $page->redirect("editStation.php?station=" . rawurlencode($station) . $status . "#admin_users"); } elseif ($deluserstation) { if (sotf_Permission::delUserFromStation($username, $station)) { $status = "&okdeluserstation=1"; } else { $status = "&errordeluserstation=1"; } $page->redirect("editStation.php?station=" . rawurlencode($station) . $status . "#admin_users"); } elseif ($view) { $page->redirect("getUserFile.php/" . $filename . "?filename=" . rawurlencode($filename)); } elseif ($setjingle) {