Ejemplo n.º 1
0
<?php

// Include Files
include "../includes.inc.php";
// Session Identification
session_identification("admin");
print_header();
print_title("Create a new sector");
echo "<strong>Use this in the px_server option:</strong>";
echo "<li>tmp     : tmp\n";
echo "<li>CMD     : NEWSECTOR\n";
print_footer();
exit;
Ejemplo n.º 2
0
<?php

// Include Files
include "includes.inc.php";
// Session Identification
session_identification();
print_header();
print_title("Sector view", "Here you will find all discovered sectors and planets on one single page. It will also let you claim sectors if appropriate.");
$cmd = input_check("show", "sid", "uid", 0, "claim", "!frmid", "!sid", "!ne_name", 0);
if ($uid == "") {
    $uid = user_ourself();
}
if ($cmd == "show") {
    if ($sid == "") {
        sector_show_all_sectors($uid);
    } else {
        sector_show_sector($sid, $uid);
    }
}
if ($cmd == "claim") {
    $ok = "";
    $errors['PARAMS'] = "Incorrect parameters specified..\n";
    $errors['NAME'] = "The sector name already exists.\n";
    $data['sector_id'] = $sid;
    $data['name'] = convert_crlf_to_px_tag($ne_name);
    comm_send_to_server("SECTOR", $data, $ok, $errors);
}
print_footer();
exit;
// ============================================================================================
//
function session_reinit($tmp)
{
    $_SESSION['user'] = $tmp;
    unset($_SESSION['theme_path']);
    unset($_SESSION['theme_url']);
    session_identification();
}