예제 #1
0
파일: regstop.php 프로젝트: Amfys/BST
        $long = '0';
    }
    if ($EDIT == "") {
        $Database->registerStop($stopName, $userName, $long, $lat);
    } else {
        $Database->updateStop($EDIT, $stopName, $userName, $long, $lat);
    }
    header('Location: ttbl.php', true, 303);
    exit;
}
if ($DELETE != "") {
    if ($userName != $Database->getStop($DELETE)->userName) {
        header('Location: ttbl.php', true, 303);
        die;
    }
    $Database->deleteStop($DELETE);
    header('Location: ttbl.php', true, 303);
}
$stopName;
$lineId;
$lat;
$long;
$editLine;
if ($EDIT != "") {
    $title = "バス停編集";
    $StopData = $Database->getStop($EDIT);
    if ($StopData == null) {
    } else {
        if ($StopData->userName != $userName) {
        } else {
            $stopName = $StopData->stopName;