Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.taxi-78.com
/
htdocs
/
admin000
/
connected
/
pages
/
/srv/data/web/vhosts/www.taxi-78.com/htdocs/admin000/connected/pages/page-profonde-add.php
<?php if(empty($_SESSION['sessionAdminSeo']) || !$_SESSION['sessionAdminSeo']){ header('Location: ./?err=2'); } $name=$pp_slug = $content = $meta_title = $meta_description = $meta_keywords = null; $status = 0; if(!empty($_POST)){ $name = $_POST['name']; $pp_slug = $_POST['slug']; $content = $_POST['content']; $meta_title = $_POST['meta_title']; $meta_description = $_POST['meta_description']; $meta_keywords = $_POST['meta_keywords']; if(!empty($name) && !empty($pp_slug) && !empty($content)){ $stmt=$db_client->prepare("INSERT INTO page_profonde(name,slug,content,meta_title,meta_description,meta_keywords,created_at,status,id_company) VALUES (?,?,?,?,?,?,NOW(),?,?)"); // on prépare notre requête $stmt->execute(array($name,$pp_slug,$content,$meta_title,$meta_description,$meta_keywords,$status,$conf_id_company)); header("Location: pages-profondes"); //echo "<div class='alert alert-success'><button type='button' class='close' data-dismiss='alert'>×</button>L'actualité a bien été ajoutée</div>"; }else { echo "<div class='alert alert-danger'><button type='button' class='close' data-dismiss='alert'>×</button>Les champs Slug et Contenu doivent être renseignés.</div>"; } } $btn = "Ajouter"; $submit = "submitAjout"; ?> <h1>Ajout d'une page profonde</h1> <?php include('page-profonde-form.php'); ?>