rpicms

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

commit a550961893eef5dbba86caa87436d9abab6f34a4
parent eda3e444d6624ced52ec896d2cf74242d39df270
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 23 Nov 2014 11:58:44 +0100

lets test the idea :D

Diffstat:
Mcore/backend/blog/posts.php | 22----------------------
Mthemes/jumbotron/index.php | 6+++++-
2 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -14,28 +14,6 @@ exit(); } if (empty($_GET["post_id"])){ - #//Check if Data in it - #if ($resultat = $connection->query('SELECT * FROM posts')) { - # //Put database data in variables - # while($daten = $resultat->fetch_object() ){ - # $post_id_clean = $daten->id; - # $post_title_clean = $daten->title; - # $post_text_clean = $daten->text; - # $post_author_clean = $daten->author; - # $post_date_clean = $daten->date; - # $post_categrory_clean = $daten->category; - - # $post_id = [ - # $post_id_clean => $post_id_clean, - # ]; - - - # } - # $resultat->close(); - #} else { - # //If no data in Database give error - # echo "Es konnten keine Daten aus der Datenbank ausgelesen werden"; - #} $post_id = "bug?"; $post_title = "bug?"; $post_text = "bug?"; diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -77,7 +77,11 @@ <div class="container"> <h1> <?php - echo "<a href='index.php?id=$post_id' rel='bookmark'> $post_title </a>"; + $x = 1; + while (!empty($post_title)){ + echo "<a href='index.php?id=$x' rel='bookmark'> $post_title </a>"; + $x = $x+1; + } ?> </h1> <div>