rpicms

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

commit 67cd837a9114c2ee70cdf355cfcec41911114678
parent 9bb9fa4f84cd25c6a16deba34046d2278607d5ae
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 Jan 2015 19:59:38 +0100

nearly...

Diffstat:
Mcore/backend/admin/blog/newpost.php | 10+---------
1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -3,7 +3,6 @@ # flush browser cache # ####################### //header("Cache-Control: no-cache, must-revalidate, no-store"); -echo "test"; ob_start(); @@ -27,7 +26,6 @@ while (ob_get_status()) { while($daten = $resultat->fetch_object() ){ $post_id_clean = $daten->id; $ids = $post_id_clean+1; - echo $ids; //var_dump($daten); } #$resultat->close(); @@ -39,14 +37,8 @@ while (ob_get_status()) { $text = $_POST['content']; $category = $_POST['category']; - echo $author; - echo $title; - echo $text; - echo $category; - echo "test"; - //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', 'Now()', '$category')")) { + if ($resultat = $connection->query("INSERT INTO posts (id,text,title,author,date,category) VALUES ('$ids', '$text', '$title', '$author', 'Now();', '$category')")) { $resultat->close(); } //}