summaryrefslogtreecommitdiff
path: root/includes/news.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/news.php')
-rw-r--r--includes/news.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/includes/news.php b/includes/news.php
deleted file mode 100644
index 21e7f27..0000000
--- a/includes/news.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-// Parses news.html
-// returns feed
-
-function printNews($num='all') {
- $count = 0;
- $content = "";
- $handle = @fopen("news.html", "r");
- if ($handle) {
- while (($buffer = fgets($handle, 4096)) !== false) {
- $content .= $buffer;
- if (preg_match('/<\/div>/',$buffer)) {
- $count++;
- $content .= "<br>";
- }
- if ($count == $num && $num != 'all') {
- $content .= '<div class="read-more"><a class="more" href="/news-feed.php">More News >></a></div>';
- break 1;
- }
- }
- }
- fclose($handle);
- return $content;
-}
-?>