Location: PHPKode > projects > eBlog > admin/news.php
<?php

/**************************************************************************
 *                                                                        *
 *                                                                        *
 *         Solution: eBlog                                                *
 *          Release: 1.7                                                  *
 *             File: admin/news.php                                       *
 *               By: Emuci inc.                                           *
 *          Website: http://www.emuci.com                                 *
 *        Copyright: (C) 2010 Emcui inc.                                  *
 *                                                                        *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *                                                                        *
 *   This script is NOT freeware and is subjected to Emuci terms of use   *
 *   located in the docs folder.                                          *
 *                                                                        *
 *                                                                        *
 *************************************************************************/


include 'global.php';
	
if($_SESSION['permission'] == 1){
		

echo "<html dir=\"ltr\">
	  <header></header>
	  <body text=\"#000000\" link=\"#7d7d7c\" alink=\"7d7d7c\" vlink=\"7d7d7c\">";
		
	
$xml = @simplexml_load_file('http://www.emuci.com/home/xml/eblog.xml');
$counter = 0;

if($xml){
	foreach ($xml->news as $news) {
	$title   = $news->title;
	$date    = $news->timestamp;
	$content = $news->content;
	$link    = $news->url;
	$counter++;
	
	echo "
		<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
		
		<tr>
		<td width=\"20\">
		<img src=\"../images/icons/icon_bullet.gif\">
		</td>
		<td>
		<font face=\"tahoma\" size=\"2\">$title</font>
		<font face=\"tahoma\" size=\"2\" color=\"#912F69\">&nbsp;($date)</font>
		</td>
		</tr>
		
	
		<tr>
		<td width=\"20\">
		<font face=\"tahoma\" size=\"1\">&nbsp;</font>
		</td>
		<td>
		<a href=\"$link\" target=\"_blank\"><font face=\"tahoma\" size=\"1\">$link</font></a>
		</td>
		</tr>
		
		
		<tr>
		<td width=\"20\">
		<font face=\"tahoma\" size=\"1\">&nbsp;</font>
		</td>
		<td>
		<font face=\"tahoma\" size=\"2\">$content</font>
		</td>
		</tr>	    			    			    		
		
		
		<tr>
		<td colspan=\"2\" height=\"10\">
		<font face=\"tahoma\" size=\"1\">&nbsp;</font>
		</td>
		</tr>
		
		
		</table>
		<br>
	";
	
	}
}
	
	
if($counter < 1)
echo "<font face=\"tahoma\" size=\"2\">$lang_admin_noResults</font>";


echo "</body></html>";

}
 
		
		

?>
Return current item: eBlog