コード例 #1
0
ファイル: addtop11vote.php プロジェクト: ynotradio/site
<?php

$page_file = "addtop11vote.php";
$page_title = "Add Top 11 @ 11 Vote";
require "ext/main_fns.php";
require "ext/header.php";
require "ext/top11_fns.php";
open_db();
if (!$_SESSION["logged_in"]) {
    loginPrompt($_POST[username], $_POST[remember_me], $_SESSION["error"]);
} else {
    /*----- CONTENT ------*/
    ?>
<div id="cp">

<?php 
    if (top11status() == "open") {
        displayform();
    } else {
        echo "<center>Sorry but voting is currently closed.<br>Check back soon to vote for next week's Top 11 @ 11.";
    }
    ?>

<a href="cp.php"><< Back to Control Panel</a>
</div>
<?php 
}
require "ext/footer.php";
コード例 #2
0
ファイル: top11operations.php プロジェクト: ynotradio/site
        seecontestants();
    }
    if ($action == "export") {
        echo "<center><h2>Top 11 Contestants:</h2></center>";
        export();
        echo "<center><h2>Non-contestant voters - add to Newsletter:</h2></center>";
        exportnewsletter();
    }
    if ($action == "nuke") {
        echo "<h1><center>Top 11 Values have been nuked!</center></h1>";
        nuke();
    }
    if ($action == "status") {
        if (top11status() == "open") {
            closetop11();
            echo "<center>You have closed Top 11 voting</center>";
        } elseif (top11status() == "close") {
            opentop11();
            echo "<center>You have opened Top 11 voting</center>";
        }
    }
    if ($action != "show") {
        echo "<p> <a href=\"top11operations.php\"><< Back to Top 11 Operations</a> |";
    }
    ?>

<a href="cp.php"><< Back to Control Panel</a>
</div>
<?php 
}
require "ext/footer.php";