rpicms

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

commit d109b9be7400195b27c8060154f712fcd3c38b9c
parent e5dff74175d7db0cf0fbe16fc90fcf8cb656cb6f
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 Jan 2015 19:20:05 +0100

It won't work correct :/

Diffstat:
Mcore/backend/admin/blog/newpost.php | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -36,6 +36,11 @@ $title = $_GET["title"]; $text = $_GET["content"]; $category = $_GET["category"]; +echo $author; +echo $title; +echo $text; +echo $category; + if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) { if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'date('Y-m-d H:i:s')', '$category')")) { $resultat->close(); @@ -43,5 +48,5 @@ if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) { } ob_end_clean(); } -header( "Location: ../../../../" ); +//header( "Location: ../../../../" ); ?> \ No newline at end of file