1 <?
2 header ("Pragma: no-cache");
3 header ("Cache-Control: no-store, no-cache, must-revalidate, max_age=0");
4 header("Cache-Control: post-check=0, pre-check=0", false);
5 header ("Expires: 0");
6
7 // SET CONFIG DIRECTORY BELOW TO ABSOLUTE LOCATION OF config.php
8 include_once './newsdb/config.php';
9 include_once INSTALL_DIR.'/newsdb/functions.php';
10
11 // GET TODAY"S STORIES
12 $storiestoday = get_stories_by_date(array(date("Y-m-d",$corrtime),date("Y-m-d",$corrtime)));
13
14 // SET WEEKEND T/F
15 $weekend = (date("w",$corrtime)==6) || (date("w",$corrtime)==0) || ((date("w",$corrtime)==1) && ($storiestoday==false));
16
17 ?>
18 <HTML>
19 <HEAD>
20 <TITLE>Public Media Manager - NewsDB</TITLE>
21 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
22 <link rel=stylesheet href="<?php echo WEB_DIR; ?>/css/news.css" type="text/css">
23 <style type="text/css">@import url(<?php echo WEB_DIR; ?>/css/news_layout.css);</style>
24 <script language="JavaScript" src="<?php echo WEB_DIR; ?>/javascript/functions.js"></script>
25 </HEAD>
26
27
28 <BODY>
29
30 <div id="frame">
31
32 <a name="top"></a>
33
34 <!-- JUMPFORM NAVIGATION START -->
35 <div id="jumpform">
36 <div>
37 <form>
38 <select name="select" onChange="MM_jumpMenu('parent',this,0)">
39 <option selected> </option>
40 <option value="<?php echo WEB_DIR; ?>/news/archive.html">Archive</option>
41 <option value="<?php echo WEB_DIR; ?>/news/newstopics.html">News by Topic</option>
42 <option value="<?php echo WEB_DIR; ?>/news/newspecial.html">Special Reports</option>
43 <option value="<?php echo WEB_DIR; ?>/news/commentary.html">Commentaries</option>
44 </select>
45 <b>Quick Links</b>
46 </form>
47 </div>
48 </div>
49 <!-- JUMPFORM NAVIGATION FINISH -->
50
51 <!-- PAGE HEADING START -->
52 <h1><?echo ($weekend == true ? 'Weekend News' : 'Top Stories');?></h1>
53 <!-- PAGE HEADING FINISH -->
54
55 <!-- PAGE BODY START -->
56 <?
57 if ($weekend == true)
58 {
59 include INSTALL_DIR.'/weekendnews.php';
60 }
61 else {
62 ?>
63
64 <div id="newscast_block">
65 <div>
66 <a name="News"></a>
67 <div>
68 <a href="<?php echo WEB_DIR; ?>/news/audio/newscast.ram">
69 <img src="<?php echo WEB_DIR; ?>/images/localaudio.gif" border="0" align="absmiddle" alt="Listen to RealAudio" width="75" height="14">
70 </a>
71 <a href="<?php echo WEB_DIR; ?>/news/audio/newscast.ram">
72 <b>Regional Newscast</b>
73 </a>
74 </div>
75 <div>
76 <?include INSTALL_DIR.'/newsdb/newstime.php';?>
77 </div>
78 </div>
79 </div>
80
81 <div id="newsfeed_promo">
82 <div>
83 <img src="<?php echo WEB_DIR; ?>/images/new.gif" alt="New - NCPR Headlines on your computer" border="0" align="absmiddle">
84
85 <a href="<?php echo WEB_DIR; ?>/news/newsfeedinfo.php">
86 NCPR News on your computer!
87 </a>
88 </div>
89 </div>
90
91 <div id="stories_body">
92 <h2>Latest Regional Features</h2>
93
94 <? include INSTALL_DIR.'/newsdb/newsbody.php';?>
95 </div>
96
97 <div id="npr-pi_block">
98 <h2>US/World News</h2>
99 <div class="smalltext">
100 <a name="nprheadlines<?php echo date("Ymd"); ?>"></a>
101 <script language="javascript">window.newscasts = "true";</script>
102 <script src="http://www.npr.org/forstations/newspacks/newspacks.js"></script>
103 </div>
104 <div class="nprnewspacks_category">
105 Other US/World News
106 </div>
107 <div class="smalltext">
108 <script language="JavaScript" src="http://www.publicbroadcasting.net/.fetch?action=ncheadlines&pbn_station=<?php echo PI_STATION_ID;?>&region=world+us&limit=1&method=Javascript&tease"></script>
109 </div>
110 </div>
111
112 <div id="archive_link_block">
113 <p>
114 <a href="<?php echo WEB_DIR;?>/news/archive.html">Find news from previous days and months</a>
115 </p>
116 </div>
117
118 <div id="player_link_block">
119 <div>
120 <a href="http://forms.real.com/real/player/blackjack.html" target="new">
121 <img src="<?php echo WEB_DIR; ?>/images/real.gif" width="88" height="31" border="0" align="left">
122 </a>
123 All audio is in RealAudio format
124 </div>
125 </div>
126
127 <?
128 }
129 ?>
130 <!-- PAGE BODY FINISH -->
131
132
133 <!-- PAGE FOOTER START -->
134 <?php include INSTALL_DIR.'/footer.php';?>
135 <!-- PAGE FOOTER FINISH -->
136
137 </div>
138
139 </BODY>
140 </HTML>