From: Christian Weiske Date: Thu, 26 Mar 2015 19:26:38 +0000 (+0100) Subject: update index after creating new article X-Git-Url: https://git.cweiske.de/push-tester.git/commitdiff_plain/26fb4103618d21ce3884e89239cba6ccb82743ed update index after creating new article --- diff --git a/www/add-article.php b/www/add-article.php index ee24c9b..6e9a038 100644 --- a/www/add-article.php +++ b/www/add-article.php @@ -28,7 +28,7 @@ file_put_contents( HTM ); -echo "saved as " . $file . "\n"; +//echo "saved as " . $file . "\n"; //hub-notification $params = array( @@ -58,6 +58,7 @@ $res = file_get_contents($hub, false, $ctx); list($http, $code, $rest) = explode(' ', $http_response_header[0]); if (intval($code / 100) === 2) { echo "notified hub\n"; + header('Location: /'); exit(); } diff --git a/www/index.php b/www/index.php index 0eaefb6..0a205f8 100644 --- a/www/index.php +++ b/www/index.php @@ -23,9 +23,8 @@ krsort($articles); PubSubHubbub tester -

- create new article + create new article

Articles