12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <div id="sidebar">
- <h2>Mai multe informații</h2>
- <a href="http://ceata.org" target="_blank" title="Ceata"><img src="./img/ceata.png" alt="Ceata" height="42" /></a>
- <a href="http://fsf.org" target="_blank" title="Free Software Foundation"><img src="./img/fsf.png" alt="Free Software Foundation Europe" /></a>
- <a href="http://fsfe.org" target="_blank" title="Free Software Foundation Europe"><img src="./img/fsfe.png" alt="Free Software Foundation Europe" /></a>
- <a href="http://freedomdefined.org" target="_blank" title="The Definition of Free Cultural Work"><img src="./img/fc.png" alt="The Definition of Free Cultural Work" /></a>
- <a href="http://www.defectivebydesign.org/" target="_blank" title="What is DRM? Digital Restrictions Management — We Oppose DRM!"><img src="./img/drm.png" alt="What is DRM? Digital Restrictions Management — We Oppose DRM!" /></a>
- <h2>Noutăți</h2>
- <?php
- require_once("./lib/rsslib.php");
- $cachename = "./cache/rss-cache-tmp.php";
- $url = "http://identi.ca/api/statusnet/groups/timeline/51195.rss";
- if (file_exists($cachename))
- {
- $now = date("G");
- $time = date("G", filemtime($cachename));
- if ($time == $now)
- {
- require_once($cachename);
- }
- else
- {
- $cache = RSS_Display($url, 15, false, true);
- $cache = '<div id="news">'.$cache."</div><!-- #news -->";
- file_put_contents($cachename, $cache);
- echo $cache;
- }
- }
- else
- {
- $cache = RSS_Display($url, 15, false, true);
- $cache = '<div id="news">'.$cache."</div><!-- #news -->";
- file_put_contents($cachename, $cache);
- echo $cache;
- }
-
- ?>
- </div>
|