Aug 13th 2018, 17:31:30
Aug 16th 2018, 14:30:38
Aug 26th 2018, 17:20:02
Aug 30th 2018, 0:48:08
Sep 4th 2018, 15:17:18
Sep 11th 2018, 1:23:04
Sep 11th 2018, 4:08:05
function send_attack() {
try {
$("#ajax_status #status_message").html("Preparing your forces...");
$("#ajax_status #status_image").attr("src", "/img/ajax-loader.gif");
var var_targetnum = $("#attack_info [name=targetcountry]").val();
var var_ATTTYPE = $("#attack_info [name=ATTTYPE]").val();
var var_ARMYTroop = $("#attack_info [name=ARMYTroop]").val();
var var_ARMYJet = $("#attack_info [name=ARMYJet]").val();
var var_ARMYTank = $("#attack_info [name=ARMYTank]").val();
var var_MISSILETYPE = $("#attack_info input[name=MISSILETYPE]").val();
var var_need_html = 0;
if ($("#att_result").html() == "") {
var_need_html = 1
}
var pathname = window.location.pathname;
$.ajax({
type: "POST",
url: pathname + "/ajax/send",
data: {
targetnum: var_targetnum,
ATTTYPE: var_ATTTYPE,
ARMYTroop: var_ARMYTroop,
ARMYJet: var_ARMYJet,
ARMYTank: var_ARMYTank,
MISSILETYPE: var_MISSILETYPE,
need_html: var_need_html
},
success: function(res) {
if (var_need_html) {
$("#att_result").html(res);
var json_response = $("#att_result #json_response").html();
$("#att_result #json_response").remove();
var att_results = eval("(" + json_response + ")")
} else {
var att_results = eval("(" + res + ")")
}
var inputs = {
targetnum: var_targetnum,
ATTTYPE: var_ATTTYPE,
ARMYTroop: var_ARMYTroop,
ARMYJet: var_ARMYJet,
ARMYTank: var_ARMYTank,
MISSILETYPE: var_MISSILETYPE,
need_html: var_need_html
};
show_attack_results(att_results, inputs);
$("#att_result").show()
},
error: display_error
})
} catch (error) {
display_error(error)
}
}
Sep 11th 2018, 14:15:17
Sep 11th 2018, 19:08:31
Sep 12th 2018, 3:23:01
Sep 12th 2018, 3:50:20
define("DOCUMENT_ROOT", $_SERVER['DOCUMENT_ROOT']);
$url = getenv('REMOTE_ADDR');
$url = parse_url($url['path']);
if (file_exists(DOCUMENT_ROOT . $url . '.php')){
require_once(DOCUMENT_ROOT . $url . '.php');
} else {
//display 404 page
}
Sep 12th 2018, 4:15:38
if (a.def_ally_losses.m_tr != 0 || a.def_ally_losses.m_tu != 0 || a.def_ally_losses.m_ta != 0) {
b += "<div class='attblue'>Their defence allies lost: </div>";
if (a.def_ally_losses.m_tr > 0) {
b += wrap_n_item(addCommas(a.def_ally_losses.m_tr) + " Troops")
}
if (a.def_ally_losses.m_j > 0) {
b += wrap_n_item(addCommas(a.def_ally_losses.m_tu) + " Turrets")
}
if (a.def_ally_losses.m_ta > 0) {
b += wrap_n_item(addCommas(a.def_ally_losses.m_ta) + " Tanks")
}
}
success: function(res) {
if (var_need_html) {
$("#att_result").html(res);
var json_response = $("#att_result #json_response").html();
$("#att_result #json_response").remove();
var att_results = eval("(" + json_response + ")")
} else {
var att_results = eval("(" + res + ")")
}
var inputs = {
targetnum: var_targetnum,
ATTTYPE: var_ATTTYPE,
ARMYTroop: var_ARMYTroop,
ARMYJet: var_ARMYJet,
ARMYTank: var_ARMYTank,
MISSILETYPE: var_MISSILETYPE,
need_html: var_need_html
};
show_attack_results(att_results, inputs);
$("#att_result").show()
},
Sep 12th 2018, 5:09:15
if (a.def_ally_losses.m_j > 0) {
b += wrap_n_item(addCommas(a.def_ally_losses.m_tu) + " Turrets")
}
Sep 12th 2018, 19:25:23
Sep 24th 2018, 11:26:16
Sep 24th 2018, 15:28:43
Sep 24th 2018, 22:06:21
Dec 29th 2018, 8:57:50
Apr 18th 2019, 1:21:42
Apr 19th 2019, 2:19:42