From 8ba02484a4c1c04c5d3c70cba3d453997316784d Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 25 Nov 2011 17:45:35 +0000 Subject: [PATCH] Core controllers location, error controller --- e107_core/controllers/system/error.php | 40 ++++++++++++++++++++++++++ e107_core/controllers/system/index.php | 13 +++++++++ 2 files changed, 53 insertions(+) create mode 100644 e107_core/controllers/system/error.php create mode 100644 e107_core/controllers/system/index.php diff --git a/e107_core/controllers/system/error.php b/e107_core/controllers/system/error.php new file mode 100644 index 000000000..93374f441 --- /dev/null +++ b/e107_core/controllers/system/error.php @@ -0,0 +1,40 @@ +addTitle(LAN_ERROR_7); + //var_dump($this->getRequest()->getRouteHistory()); + $errorText = "".LAN_ERROR_37." ".LAN_ERROR_21.'
'.LAN_ERROR_9."

"; + if (strlen($errFrom)) $errorText .= LAN_ERROR_23." {$errFrom} ".LAN_ERROR_24." -- ".LAN_ERROR_19."

"; + + + $errorText .= "

".LAN_ERROR_45."

"; + if($errReturnTo) + { + foreach ($errReturnTo as $url => $label) + { + $errorText .= "".$label."
"; + } + $errorText .= '
'; + } + $url = e107::getUrl(); + + $errorText .= "".LAN_ERROR_20."
"; + $errorText .= "".LAN_ERROR_22.""; + + $this->addBody($errorText); + } + + function actionHelloWorld() + { + $this->addTitle('Hello!'); + echo 'Hello World'; + } +} diff --git a/e107_core/controllers/system/index.php b/e107_core/controllers/system/index.php new file mode 100644 index 000000000..f526c32b4 --- /dev/null +++ b/e107_core/controllers/system/index.php @@ -0,0 +1,13 @@ +_redirect('/', false, 301); + } +}