} else { $lineName = $_POST['existSelect']; } $lat = @$_POST['lat']; $long = @$_POST['long']; $lineId = $Database->getLineId($lineName, $userName); if ($lineId == null) { $Database->registerLine($lineName, $userName); $lineId = $Database->getLineId($lineName, $userName); } if ($lat == '') { $lat = '0'; $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;