rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 49fa52cf7b69af4f602999abcbc742d8f54a2b04
parent c456661af84dd86b49df56f5be40503721523d8c
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 13:56:46 +0200

next fix try

Diffstat:
Mthemes/jumbotron/admin.php | 25+++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -71,18 +71,19 @@ if(!empty($_GET['function'])){ echo "1"; if(!empty($_GET['id'])){ echo "2"; - include($root . '/core/backend/blog/posts.php'); - $get_function = $_GET['function']; - $get_id = $_GET['id']; - if($get_function == "edit"){ - #header("HTTP/1.1 301 Moved Permanently", true, 301); - #header( "Location: ../../?file=admin.php#posts" ); - }else{ - deletePost($get_id); - echo "3"; - #header("HTTP/1.1 301 Moved Permanently", true, 301); - #header( "Location: ../../?file=admin.php#posts" ); - } + include($root . '/core/config/connect.db.inc.php'); + include($root . '/core/backend/blog/posts.php'); + $get_function = $_GET['function']; + $get_id = $_GET['id']; + if($get_function == "edit"){ + #header("HTTP/1.1 301 Moved Permanently", true, 301); + #header( "Location: ../../?file=admin.php#posts" ); + }else{ + deletePost($get_id); + echo "3"; + #header("HTTP/1.1 301 Moved Permanently", true, 301); + #header( "Location: ../../?file=admin.php#posts" ); + } } } ?>