You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
anonnews2/public_html/module.moderation.approve.php

24 lines
402 B
PHTML

13 years ago
<?php
if(!isset($_ANONNEWS)) { die(); } /* Protect from direct requests */
$sId = (is_numeric($var_page)) ? $var_page : 0;
switch($var_id)
{
case "external-news":
$sTable = "ext";
break;
case "press":
$sTable = "press";
break;
case "related-sites":
$sTable = "sites";
break;
default:
die($var_id);
}
mysql_query("UPDATE {$sTable} SET `Approved` = '1' WHERE `Id` = '{$sId}'");
?>