Esempio n. 1
0
function big_button_list()
{
    $pricelist = db_load('440_pricelist_v4_time');
    $schema = db_load('440_schema_time');
    $paint = db_load('440_paint_time');
    echo '<div class="col2 rt"><h2>Update Schemas:</h2>', '<form method="post" action="' . $_SERVER['PHP_SELF'] . '"><br>', '<ul>', '<li><span class="lt"> <input type="submit" name="priceUpdate" value="x">Update prices:</span><span class="rt">' . date('M d, Y', db_load('440_pricelist_v4_time')) . '</span></li>', '<li><span class="lt"> <input type="submit" name="schemaUpdate" value="x">Update schema:</span><span class="rt">' . date('M d, Y', db_load('440_schema_time')) . '</span></li>', '<li><span class="lt"> <input type="submit" name="paintUpdate" value="x">Update paints:</span><span class="rt">' . date('M d, Y', db_load('440_paint_time')) . '</span></li>', '<li><span class="lt"> <input type="submit" name="gamesupdate" value="x">Update games</span><span class="rt">' . date('M d, Y', db_load('753_list_time')) . '</span></li>', '</ul>', '<br><br><input name="pass" type="password" class="ddinput"><br>';
    if (isset($_POST['paintUpdate']) && admin_password()) {
        include_once 'php/update.php';
        updatePaints();
        echo 'paints updated.';
    }
    if (isset($_POST['schemaUpdate']) && admin_password()) {
        include_once 'php/update.php';
        resetUpdateCounters('schema');
    }
    if (isset($_POST['priceUpdate']) && admin_password()) {
        include_once 'php/update.php';
        resetUpdateCounters('prices');
    }
    if (isset($_POST['gamesupdate']) && admin_password()) {
        include_once 'php/update.php';
        updateListOfAllSteamGames();
    }
    echo '</form></div>';
}
Esempio n. 2
0
function updateEverything()
{
    updatePaints();
    //updatePriceList();
    updateTF2Schema();
    updatePriceListV4();
}