Deuxième jet POI avec cohérence globale mais formulaire pas vraiment envoyé

This commit is contained in:
leosw
2026-01-18 15:09:42 +01:00
parent 397f8b770a
commit 69ab7ce1fb
4 changed files with 44 additions and 9 deletions

View File

@@ -18,11 +18,13 @@ switch ($controller->splitted_url[1]) {
$poi->lon = $_POST['lon'];
$poi->ele = $_POST['ele'];
$poi->author = $user->id;
$poi->source = "k";
$poi->source = "kab";
$poi->is_commentable = isset($_POST['is_commentable'])?'t':'f';
$poi->parameters = '';
if(!$poi->checkPermalink($_POST['permalink'],1)) {
$poi->permalink = $_POST['permalink'];
$poi->insert();
header('Location: '.$config['rel_root_folder']."blog/".$poi->permalink);
header('Location: '.$config['rel_root_folder']."poi/".$poi->permalink);
}
else {
$head['title'] = $poi->name;