X-Git-Url: https://git.cweiske.de/push-tester.git/blobdiff_plain/26fb4103618d21ce3884e89239cba6ccb82743ed..HEAD:/www/index.php diff --git a/www/index.php b/www/index.php index 0a205f8..9be78bc 100644 --- a/www/index.php +++ b/www/index.php @@ -1,30 +1,25 @@ ; rel="hub"'); header('Link: <' . $self . '>; rel="self"', false); -$files = glob(__DIR__ . '/articles/*.htm'); -$articles = array(); -foreach ($files as $file) { - $content = file_get_contents($file); - $xml = simplexml_load_string($content); - $timestamp = strtotime(basename($file, '.htm')); - $articles[$timestamp] = (object) array( - 'file' => 'articles/' . basename($file), - 'title' => basename($file, '.htm'), - 'content' => (string) $xml->body->div, - 'time' => $timestamp, - ); -} -krsort($articles); +$articles = loadArticles(); ?> - PubSubHubbub tester + WebSub tester +

create new article + | atom feed +

+

+ This is a tool to test your WebSub + subscriber. + With one click, a new post gets published and the hub gets notified.

Articles