Difference between revisions of "WolfTech Information Technology"
m |
m |
||
Line 95: | Line 95: | ||
$title = $item[title]; | $title = $item[title]; | ||
$url = $item[link]; | $url = $item[link]; | ||
− | $published = parse_w3cdtf($item[ | + | $published = parse_w3cdtf($item['dc']['date']); |
echo date("M dS H:i", $published); | echo date("M dS H:i", $published); | ||
echo " - "; | echo " - "; |
Revision as of 09:00, 12 October 2006
Welcome to the one-stop computing resource site for Electrical and Computer Engineering and all other NC State users of WolfTech computing or web resources. With this site, you only have to remember one address to find anything and everything about using your computer at NC State. We're continuing to add vast amounts of information to this website, and should you find anything missing, we encourage you to email us a request for more information.
Before getting started, be sure you have read through the NC State and ECE Information Technology Policies.
|
|
|
|
<php> require('magpierss/rss_fetch.inc');
- require('magpierss/rss_utils.inc');
$url="http://www.wolftech.ncsu.edu/news/?feed=rss2"; $num_items = 5;
$rss = fetch_rss($url); $rss->items = array_slice($rss->items, 0, $num_items);
echo "<a href=\"http://www.wolftech.ncsu.edu/news/\">", $rss->channel['title'], "</a>
";
foreach ($rss->items as $item ) {
$title = $item[title];
$url = $item[link];
$published = strtotime($item[pubdate]);
echo date("M dS H:i", $published);
echo " - ";
echo "<a href=$url>$title</a>
";
}
$url="http://sysnews.ncsu.edu/news/index.rdf";
$num_items = 5;
$rss = fetch_rss($url);
$rss->items = array_slice($rss->items, 0, $num_items);
echo "<a href=\"http://www.wolftech.ncsu.edu/news/\">", $rss->channel['title'], "</a>
";
foreach ($rss->items as $item ) {
$title = $item[title];
$url = $item[link];
$published = parse_w3cdtf($item['dc']['date']);
echo date("M dS H:i", $published);
echo " - ";
echo "<a href=$url>$title</a>
";
}
</php>
NCSU Systems Updates
<php>
require_once('xml_news.php');
- \XML NEWS FEED\ ##############
// important settings for XML news feed $num_stories_to_show = 5; $num_stories = get_xml_news($news,$num_stories_to_show); if( $num_stories < 1 ) { // oh no! echo "News service temporarily unavailable."; } else { PRINT ("
"); for( $f = 0 ; $f < $num_stories_to_show ; $f++ ) { PRINT ("");} // end for for() loop
PRINT ("");
PRINT $news[$f][date]; PRINT (" | ");
PRINT $news[$f][time]; PRINT (" | - | ");
PRINT ("<a href=\"".$news[$f][link]."\">"); PRINT $news[$f][name]; PRINT ("</a>"); PRINT (" |
");
} // end of if/else
- /XML NEWS FEED/ ##############
PRINT (" ");
</php> <php> PRINT ("<a href=\"http://sysnews.ncsu.edu/tools-php/spam-filter-setup.php\">"); PRINT ("<img src=\"http://www.wolftech.ncsu.edu/support/images/Spam-drowning.png\">"); PRINT ("</a>"); </php>