rpicms

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

commit 39abf6e2498ff611138b82684929fbf1b6735825
parent 2581a7b9bb1ed043678e316d2e51a5d31e389941
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 14 Dec 2014 11:11:30 +0100

now it can mybe work

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

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -49,18 +49,12 @@ if ($root_3[1] == 'core') { next_id_category(); next_id_author(); function next_id_category(){ - global $root; - include($root . '/core/config/connect.db.inc.php'); read_category(); } function next_id_author(){ - global $root; - include($root . '/core/config/connect.db.inc.php'); read_author(); } function next_id_only(){ - global $root; - include($root . '/core/config/connect.db.inc.php'); read_only(); } function read_only(){ @@ -92,6 +86,7 @@ if ($root_3[1] == 'core') { $post_author = "Database error!"; $post_date = "Database error!"; $post_category = "Database error!"; + $post_text_short = "Database error!"; } } @@ -125,6 +120,7 @@ if ($root_3[1] == 'core') { $post_author = "Database error!"; $post_date = "Database error!"; $post_category = "Database error!"; + $post_text_short = "Database error!"; } } @@ -157,6 +153,7 @@ function read_author(){ $post_author = "Database error!"; $post_date = "Database error!"; $post_category = "Database error!"; + $post_text_short = "Database error!"; } } diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php @@ -162,6 +162,7 @@ if ($root_3[1] == 'core') { #$id = 1; include($root . '/core/backend/blog/posts.php'); while ($x < $post_id_clean+1){ + include($root . '/core/config/connect.db.inc.php'); echo " <h1> <a href='index.php?id=$id' rel='bookmark'> $post_title </a> @@ -191,6 +192,7 @@ if ($root_3[1] == 'core') { $id = 1; include($root . '/core/backend/blog/posts.php'); while ($x < $category_id_clean+1){ + include($root . '/core/config/connect.db.inc.php'); if($post_category != $category){ $x = $x+1; $id = $id+1; @@ -226,6 +228,7 @@ if ($root_3[1] == 'core') { $id = 1; include($root . '/core/backend/blog/posts.php'); while ($x < $author_id_clean+1){ + include($root . '/core/config/connect.db.inc.php'); if($post_author != $author){ $x = $x+1; $id = $id+1;