Exemplo n.º 1
0
 function RaiseSecurityError($condition, $operation)
 {
     if ($condition) {
         if ($operation === OPERATION_EDIT) {
             $message = $this->GetLocalizerCaptions()->GetMessageString('EditOperationNotPermitted');
         } elseif ($operation === OPERATION_VIEW) {
             $message = $this->GetLocalizerCaptions()->GetMessageString('ViewOperationNotPermitted');
         } elseif ($operation === OPERATION_DELETE) {
             $message = $this->GetLocalizerCaptions()->GetMessageString('DeleteOperationNotPermitted');
         } elseif ($operation === OPERATION_INSERT) {
             $message = $this->GetLocalizerCaptions()->GetMessageString('InsertOperationNotPermitted');
         } else {
             $message = $this->GetLocalizerCaptions()->GetMessageString('OperationNotPermitted');
         }
         ShowSecurityErrorPage($this, $message);
         exit;
     }
 }
Exemplo n.º 2
0
function RaiseSecurityError($parentPage, $message = '')
{
    @session_destroy();
    ShowSecurityErrorPage($parentPage, $message);
    exit;
}