commit c95c07cd0e2a84670617bb11d886ddeb423c170e parent 2352a31c9116a69ae1730f6ee5462c08db30ded3 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 13 May 2015 19:42:46 +0200 next try Diffstat:
| M | core/backend/admin/blog/newpost.php | | | 2 | +- |
| M | index.php | | | 15 | ++++++++++----- |
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -48,5 +48,5 @@ while (ob_get_status()) { ob_end_clean(); } header("HTTP/1.1 301 Moved Permanently", true, 301); -header( "Location: ../../../../admin.php" ); +header( "Location: ../../../../?file=admin.php" ); ?> diff --git a/index.php b/index.php @@ -12,11 +12,17 @@ if (!file_exists('core/config/connect.db.inc.php')) { header("HTTP/1.1 301 Moved Permanently"); header("Location:themes/$theme"); }else{ - require_once('core/config/variables.config.php'); - header("HTTP/1.1 301 Moved Permanently"); - header("Location:themes/$theme"); + if (!empty($_GET["file"])) { + $file = $_GET["file"]; + header("HTTP/1.1 301 Moved Permanently"); + header("Location:themes/$theme/$file"); + }else{ + require_once('core/config/variables.config.php'); + header("HTTP/1.1 301 Moved Permanently"); + header("Location:themes/$theme"); + } } } -?> -\ No newline at end of file +?>