コード例 #1
0
        $uid = user_ourself();
    }
    message_show_all($uid, $bid);
}
if ($cmd == "post") {
    $ok = "Message send succesfully.";
    $errors['PARAMS'] = "No decent params given.";
    $errors['SUBJECT'] = "Please enter a subject.";
    $errors['LEVEL'] = "Please enter a minimum level between 0 and 99999";
    $errors['MSG'] = "Cannot send an empty message.";
    $data['target'] = $target;
    $data['src_uid'] = $src_uid;
    $data['dst_uid'] = $dst_uid;
    $data['prio'] = $ne_priority;
    $data['level'] = $ne_level;
    $data['msg'] = convert_crlf_to_px_tags($ne_msg);
    $data['subject'] = $ne_subject;
    comm_send_to_server("MESSAGECREATE", $data, $ok, $errors);
}
if ($cmd == "createuser") {
    message_create($dst_uid);
}
if ($cmd == "creategalaxy") {
    message_create_galaxy(user_ourself());
}
if ($cmd == "createalliance") {
    message_create_alliance(user_ourself());
}
if ($cmd == "show") {
    if ($uid == "") {
        $uid = user_ourself();
コード例 #2
0
// Include Files
include "includes.inc.php";
// Session Identification
session_identification();
print_header();
print_title("Anomaly view");
$cmd = input_check("show", "aid", "uid", 0, "claim", "!frmid", "!aid", "uid", "!ne_name", 0, "description", "!aid", 0, "description2", "!frmid", "!aid", "!ne_description", 0);
// Change description (post to server)
if ($cmd == "description") {
    edit_description($aid);
}
if ($cmd == "description2") {
    $ok = "";
    $errors['PARAMS'] = "Incorrect parameters specified..\n";
    $data['anomaly_id'] = $aid;
    $data['description'] = convert_crlf_to_px_tags($ne_description);
    comm_send_to_server("ANOMALYDESC", $data, $ok, $errors);
    show_anomaly($aid);
}
if ($cmd == "show") {
    if ($uid == "") {
        $uid = user_ourself();
    }
    if ($aid == "") {
        show_all_user_anomalies($uid);
    } else {
        show_anomaly($aid);
    }
}
if ($cmd == "claim") {
    if ($uid == "") {