rpicms

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

commit 30c48f13f7450bf009c5823505be997a2e0e4b3d
parent 4d2950d433ec31265290e9c474f308002a555a7a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue, 13 Jan 2015 20:00:45 +0100

redirect add end of script

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

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -1,4 +1,5 @@ <?php +ob_start(); ####################### # flush browser cache # ####################### @@ -18,7 +19,9 @@ if ($root_3[1] == 'core') { } include($root . '/core/config/variables.config.php'); include($root . '/core/config/connect.db.inc.php'); +$url = $root; +while (ob_get_status()) { if ($resultat = $connection->query('SELECT id FROM posts')) { while($daten = $resultat->fetch_object() ){ $post_id_clean = $daten->id; @@ -38,4 +41,7 @@ if (!empty($author) || !empty($title) || !empty($text) || !empty($category)) { $resultat->close(); } } +ob_end_clean(); +} +header( "Location: $url" ); ?> \ No newline at end of file