Redirect back $project_info = db_fetch_project($_SESSION[$_PAGE_INFO['id']]['login']['project']['id'], "", 1); if (($project_info['sstatus'] != "vrijgegeven") && ($project_info['type'] != "normaal")) { // Display message $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] = _("Project has not been released!"); // Get users with release rights $users = db_fetch_project_users($_SESSION[$_PAGE_INFO['id']]['login']['project']['id'], "", "projecten:g"); if (is_array($users)) { $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] .= "

" . _("Responsible") . ":"; foreach($users as $user) { // Display user info $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] .= "
- " . getUser($user['id']); // Mobile number available? $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] .= (strlen($user['alarmnr'])) ? " (" . $user['alarmnr'] . ")" : ""; } } $_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] = "alert"; $_SESSION[$_PAGE_INFO['id']]['errormsg']['title'] = "Announcement"; // Clear project info & flag $released = 0; unset($_SESSION[$_PAGE_INFO['id']]['login']['project']['name']); unset($_SESSION[$_PAGE_INFO['id']]['login']['project']['id']); // Update global variables UpdateGlobals(); } } if ($released) { if (!is_dev("RS3000")) { $link = (isset($_GET['action'])) ? "?id=" . $_PAGE_INFO['id'] . "&href=" . $_GET['link'] . "&action=" . $_GET['action'] : "?id=" . $_PAGE_INFO['id'] . "&href=" . $_GET['link']; $link .= (isset($_GET['page_project'])) ? "&page_project=" . $_GET['page_project'] : ""; // Check if new window/tab if (isset($_GET['renew'])) { $link .= "&renew=1"; } header("Location: " . $link . ""); } else { // RS3000 ok message SendMessageRS3000(array("status='0'")); } } else { if (!is_dev("RS3000")) { // Redirect back => Display message include("scripts/page/project.php"); } else { // RS3000 error message SendMessageRS3000(array("status='1'","errormsg='" . $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] . "'")); } } } else { header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=" . PAGE_MENU . ""); } } else { // Display logout message $_SESSION[$_PAGE_INFO['id']]['login_info']['errormsg'] = _("No valid rights"); // Redirect page back to login page echo "\n"; } ?>