-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
55 lines (47 loc) · 1.81 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>datente.com the best news aggregator on the web</title>
<link rel="stylesheet" type="text/css" href="/main.css" media="screen"/>
</head>
<body>
<?php // uses [magpierss.sourceforge.net] Magpie RSS
require_once('magpierss/rss_fetch.inc');
require_once('magpierss/magpiewrap.inc');
require_once('amzn.php');
?>
<div id="page">
<br/>
<p class="header"><a href="/">datente.com</a></p>
<p class="subtitle">the best news aggregator on the web</p>
<p/>
<div id="directory">
{ <a href="/">Home</a> |
<a href="//biz.datente.com">Business</a>
<a href="//edu.datente.com">Education</a>
<a href="//money.datente.com">Money</a>
<a href="//opinion.datente.com">Opinion</a>
<a href="//party.datente.com">Politics</a>
<a href="//tech.datente.com">Tech</a>
<a href="//travel.datente.com">Travel</a>
<a href="//us.datente.com">US</a> }{
<a href="//centos.datente.com/media">CentOS</a>
<a href="//haiku.datente.com/media">Haiku-OS</a> }
</div>
<div id="cabinet" align="center">
<?php /* start news feed display */
// eventually this will draw from a database, but for now it's coming from an external file for each page
// the front page will have a smattering of different categories ... this may change later .. by reading-in all available .feeds files and picking just 12
$feeds = file("main.feeds");
shuffle($feeds);
for($kt=0;$kt<16;$kt++){
showrsstrim(trim($feeds[$kt],"\n"),96);
}
?>
</div>
<div id="bottom">
Feeds copyright © the original owners/publishers. Datente.com copyright © 2012 by <a href="//warrenmyers.com">Warren Myers</a>. All rights reserved. <a href="//christianity.datente.com">Christian Feeds</a>.
</div>
</div>
</body>
</html