<?
require "functions.php";
if ((retLoggedIn()) && (is_numeric($points))) {
$points = abs($points);
if (retModPoints() >= $points) {
$query = "UPDATE item_headers SET modpoints = modpoints $posneg $points WHERE itemID = $itemid;";
$result = mysql_query ($query, $link) or die (mysql_error());
removeModPoints($points);
}
}
header("Location: $returnl");
?>