rpicms

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

commit 34147c39755fcf1ea99d96492db1689723832053
parent f1a986c45cbb356d4808671e8721b6cf5bc507ee
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 16:10:35 +0100

this was to endless for my pi :D

Diffstat:
Mcore/backend/blog/posts.php | 29++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -13,15 +13,13 @@ printf("Verbindung fehlgeschlagen: %s\n", mysqli_connect_error()); exit(); } - #if ($empty){ - # $post_id = "bug?"; - # $post_title = "bug?"; - # $post_text = "bug?"; - # $post_author = "bug?"; - # $post_date = "bug?"; - # $post_categrory = "bug?"; - #}else{ - //Check if Data in it + if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) { + while($daten = $resultat->fetch_object() ){ + $post_id_clean = $daten->id; + } + $resultat->close(); + } + alles(); function read(){ global $id, $connection, $read; @@ -64,18 +62,7 @@ read(); } } - function alles(){ - global $id, $connection, $read; - global $post_id, $post_title, $post_text, $post_author, $post_date, $post_categrory, $post_id_clean; - if ($resultat = $connection->query('SELECT * FROM posts WHERE id LIKE '.$id)) { - while($daten = $resultat->fetch_object() ){ - $post_id_clean = $daten->id; - } - $resultat->close(); - } - read(); - alles(); - } +