Moderation panel"); echo("

Press releases

"); if($result = mysql_query_cached("SELECT * FROM press WHERE `Approved` = '0' AND `Deleted` = '0' ORDER BY `Posted` ASC LIMIT 30", 2)) { foreach($result->data as $item) { $sTitle = utf8entities(stripslashes($item['Name'])); $sId = $item['Id']; // PRIMARY KEY, safe to assign echo("
{$sTitle} Approve Reject
"); } } else { echo("No unmoderated press releases."); } echo("

External news sources

"); if($result = mysql_query_cached("SELECT * FROM ext WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Visible` DESC LIMIT 100", 2)) { foreach($result->data as $item) { $sUrl = htmlspecialchars(stripslashes($item['Url'])); $sTitle = utf8entities(stripslashes($item['Name'])); $sId = $item['Id']; // PRIMARY KEY, safe to assign echo("
{$sTitle} Approve Reject
{$sUrl}
"); } } else { echo("No unmoderated external news sources."); } echo("

Related sites

"); if($result = mysql_query_cached("SELECT * FROM sites WHERE `Deleted` = '0' AND `Approved` = '0' ORDER BY `Id` ASC LIMIT 100", 2)) { foreach($result->data as $item) { $sUrl = htmlspecialchars(stripslashes($item['Url'])); $sTitle = utf8entities(stripslashes($item['Name'])); $sId = $item['Id']; // PRIMARY KEY, safe to assign echo("
{$sTitle} Approve Reject
{$sUrl}
"); } } else { echo("No unmoderated related sites."); } //$result = mysql_query_cached("SELECT * FROM sites WHERE `Approved` = '0'", 2); ?>