Ejemplo n.º 1
0
function newsletter_delete()
{
	$postId = $_GET['id'];
	wp_delete_post($postId);
	overview();

}
Ejemplo n.º 2
0
    }
    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";
Ejemplo n.º 3
0
            $style = "nc";
        }
    }
    if ($diff >= 0) {
        $diff = "+{$diff}";
    }
    ?>
	<tr>
		<td class="<?php 
    echo $style;
    ?>
" align="right">&nbsp;&nbsp;<?php 
    echo $diff;
    ?>
&nbsp;&nbsp;</td>
		<td colspan="2" align="right">&nbsp;&nbsp;<?php 
    echo $new;
    ?>
&nbsp;&nbsp;</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");