Exemplo n.º 1
0
<?php

/**
 * Interface to set the local ticker
 *
 * @author morrow
 * @version Alpha
 *
 */
// enable error reporting
error_reporting(E_ALL);
// preliminaries
define('IN_EVO', true);
include 'common.php';
// set tick
if (isset($_POST['ticker']) and isset($_POST['tick'])) {
    $tickers = new tickers();
    if ($tickers->set_current_tick($_POST['ticker'], $_POST['tick'])) {
        echo $_POST['tick'];
    } else {
        echo "Error.";
    }
} else {
    echo "Missing Parameters.";
}
Exemplo n.º 2
0
    echo "<br /><br />";
    echo "[ <a href=\"" . PHPBB_RELATIVE_PATH . "ucp.php?mode=login\">Proceed</a> ]";
    echo "</body>";
    echo "</html>";
    exit;
}
// do authentication here!
$user = new user($_COOKIE[COOKIE_NAME . '_sid'], $_COOKIE[COOKIE_NAME . '_u'], $_COOKIE[COOKIE_NAME . '_k']);
if ($user->auth_user() == false) {
    echo "<html>";
    echo "<head>";
    echo "<title>Evolution Planetarion Tools</title>";
    echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
    echo "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/grey_orange.css\" />";
    echo "</head>";
    echo "<body>";
    echo "Authentication failed. Please log in via the forum!";
    echo "<br /><br />";
    echo "[ <a href=\"" . PHPBB_RELATIVE_PATH . "ucp.php?mode=login\">Proceed</a> ]";
    echo "</body>";
    echo "</html>";
    exit;
}
$my_user_id = $user->get_my_user_id();
$my_username = $user->get_my_username();
$my_groups = $user->get_my_groups();
$tickers = new tickers();
$current_tick_local = $tickers->get_current_tick('local_ticker');
$member = new member($my_user_id);
$my_eta_bonus = $member->get_eta_bonus();