Example #1
0
    TEXT_GOTOMAIN();
    include "footer.php";
    die;
} else {
    ###################
    ##
    ##	Create Warp Link
    ##
    ###################
    if ($editor_active == "creating" && !is_null($target_sector)) {
        /*Load the data*/
        $oneway = NULL;
        if (array_key_exists('oneway', $_POST) == true) {
            $oneway = $_POST['oneway'];
        }
        $total_target_links = $sql_manager->count_sector_links($target_sector);
        $link_conflicts = $sql_manager->check_link_conflicts($playerinfo['sector'], $target_sector);
        if ($target_information['allow_warpedit'] == 'N' && !$oneway) {
            echo "Using a Warp Editor to create a two-way link to sector " . $target_sector . " is not permitted.<br />";
            TEXT_GOTOMAIN();
            include "footer.php";
            die;
        } else {
            if ($total_target_links >= $link_max) {
                echo $target_sector . " has far too many warp links, adding more will cause instability within the sector.<br />";
                TEXT_GOTOMAIN();
                include "footer.php";
                die;
            } else {
                if ($target_sector == $playerinfo['sector']) {
                    echo "You can't make a warp link to the sector your currently in!<br />";