openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 51a2c37152508f096b1a18ebe9b5bf414ef3c73f
parent 3a8466100bd6137c84eb9fde2f3b4692afe8d512
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 30 Oct 2012 22:05:28 +0100

Eigenschaften von Seitenelementen deaktiviert.

Diffstat:
Maction/PageelementAction.class.php | 2++
Mutil/Http.class.php | 19++++++++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/action/PageelementAction.class.php b/action/PageelementAction.class.php @@ -104,6 +104,8 @@ class PageelementAction extends Action */ public function propView() { + Http::notFound("",""); + exit(); $language = Session::getProjectLanguage(); $this->value->languageid = $language->languageid; $this->value->objectid = $this->page->objectid; diff --git a/util/Http.class.php b/util/Http.class.php @@ -420,7 +420,24 @@ class Http */ function notAuthorized($text,$message) { - Http::sendStatus(403,'Not Authorized',$message); + Http::sendStatus(403,$text,$message); + } + + + + + + + /** + * Der Benutzer ist nicht autorisiert, eine Aktion auszufuehren. + * Diese Funktion erzeugt einen "HTTP 403 Not Authorized" und das + * Skript wird beendet. + * + * @param String $message Eigener Hinweistext + */ + function notFound($text,$message) + { + Http::sendStatus(404,$text,$message); }