/**
  * Display error message for restricted project
  *
  * @param URL $url Accessed url
  * 
  * @return void
  */
 function displayPrivateProjectError($url)
 {
     $GLOBALS['Response']->send401UnauthorizedHeader();
     $sendMail = new Error_PermissionDenied_PrivateProject($url);
     $sendMail->buildInterface();
     exit;
 }
 /**
  * Display error message for restricted project
  *
  * @param URL $url Accessed url
  * 
  * @return void
  */
 function displayPrivateProjectError($url)
 {
     site_header(array('title' => $GLOBALS['Language']->getText('include_exit', 'exit_error')));
     $sendMail = new Error_PermissionDenied_PrivateProject($url);
     $sendMail->buildInterface();
     $GLOBALS['HTML']->footer(array('showfeedback' => false));
     exit;
 }
Beispiel #3
0
            $defaultMsg = $row['msg_to_requester'];
        }
    }
    switch ($func) {
        case 'restricted_user_request':
            $sendMail = new Error_PermissionDenied_RestrictedUser();
            $vMessage = new Valid_Text('msg_restricted_user');
            $vMessage->required();
            if ($request->valid($vMessage) && trim($request->get('msg_restricted_user')) != $defaultMsg) {
                $messageToAdmin = $request->get('msg_restricted_user');
            } else {
                exit_error($Language->getText('include_exit', 'error'), $Language->getText('sendmessage', 'invalid_msg'));
            }
            break;
        case 'private_project_request':
            $sendMail = new Error_PermissionDenied_PrivateProject();
            $vMessage = new Valid_Text('msg_private_project');
            $vMessage->required();
            if ($request->valid($vMessage) && trim($request->get('msg_private_project')) != $defaultMsg) {
                $messageToAdmin = $request->get('msg_private_project');
            } else {
                exit_error($Language->getText('include_exit', 'error'), $Language->getText('sendmessage', 'invalid_msg'));
            }
            break;
        default:
            break;
    }
    $sendMail->processMail($messageToAdmin);
    exit;
}
$um = UserManager::instance();