function newsletter_delete() { $postId = $_GET['id']; wp_delete_post($postId); overview(); }
} list($admin) = mysql_fetch_row($sth); if ($admin > 0) { return true; } else { return false; } } if (is_admin()) { switch ($act) { case "execute_battle": execute_battle($_POST["rounds"], $_POST["fraction"], $_POST["digino"], $_POST["diginp"], $_POST["diginob"], $_POST["diginpb"], $_POST["boost"], $_POST["verbosity"]); overview(); break; case "suggest": suggest($_GET["prod_id"], $_GET["side"]); overview(); break; case "proc_change_values": proc_change_values($_POST["battle"]); overview(); break; case "proc_add_ships": proc_add_ships($_POST["prod_id"], $_POST["side"], $_POST["count"]); overview(); break; default: overview(); } } include "../spaceregentsinc/footer.inc.php";
$style = "nc"; } } if ($diff >= 0) { $diff = "+{$diff}"; } ?> <tr> <td class="<?php echo $style; ?> " align="right"> <?php echo $diff; ?> </td> <td colspan="2" align="right"> <?php echo $new; ?> </td> <td><?php echo $caption; ?> </td> </tr> <?php } overview(count($questions), $dbitem->questions, "questions"); overview($answercount, $dbitem->answers, "answers"); overview($rep, $dbitem->rep, "reputation"); overview($badge, $dbitem->badges, "badges");