Example #1
0
}
$modul_name = "build_deff";
if (!isset($_SESSION['userid'])) {
    show_error('LOGIN_ERROR', 'core');
    exit;
}
if (is_modul_name_aktive($modul_name) == 0) {
    show_error('MODUL_LOAD_ERROR', 'core');
    exit;
}
$lang_file = LITO_LANG_PATH . $modul_name . '/lang_' . $lang_suffix . '.php';
$tpl->config_load($lang_file);
$builddeff11 = $tpl->get_config_vars('BUILD_DEFF_11');
$builddeff12 = $tpl->get_config_vars('BUILD_DEFF_12');
if ($action == "main") {
    timebanner_init(200, 1);
    $new_found_inhalt = array();
    $new_found = array();
    $new_found_inhalt_loop = array();
    $new_found_loop = array();
    $result = $db->query("SELECT * FROM cc" . $n . "_create_sol WHERE island_id = {$userdata['activeid']} AND sol_type = '1' ORDER BY create_sol_id");
    $z = 0;
    while ($row = $db->fetch_array($result)) {
        $result2 = $db->query("SELECT * FROM cc" . $n . "_soldiers WHERE sid = {$row['sid']}");
        $row2 = $db->fetch_array($result2);
        $sol_tabless = $row2['tabless'];
        $sol_time = $row2['stime'];
        $name = $row2['name'];
        $requesttime = $row['endtime'] - time();
        if ($row['endtime'] <= time()) {
            $db->query("UPDATE cc" . $n . "_countries SET " . $sol_tabless . "=" . $sol_tabless . "+'{$row['anz']}' WHERE islandid='{$userdata['activeid']}'");
Example #2
0
$modul_name = "battle";
require "./../../includes/global.php";
if (!isset($_SESSION['userid'])) {
    show_error('LOGIN_ERROR', 'core');
    exit;
}
if (is_modul_name_aktive($modul_name) == 0) {
    show_error('MODUL_LOAD_ERROR', 'core');
    exit;
}
if (isset($_REQUEST['action'])) {
    $action = $_REQUEST['action'];
} else {
    $action = "main";
}
timebanner_init(200, "bar_organge.gif");
if ($action == "main") {
    //##########################
    //Anzeige gesendete Truppen#
    //##########################
    $z = 0;
    $result = $db->query("SELECT * FROM cc" . $n . "_groups WHERE islandid = '{$userdata['activeid']}' AND group_status = 1");
    $action_count = 0;
    while ($row = $db->fetch_array($result)) {
        $res1 = $row['res1'];
        $res2 = $row['res2'];
        $res3 = $row['res3'];
        $res4 = $row['res4'];
        $z++;
        $groupid = $row['groupid'];
        $attack_time = $row['traveltime'] + $op_battle_countdown_time;