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-edit.php
<?php if(empty($_SESSION['sessionAdminSeo']) || !$_SESSION['sessionAdminSeo']){ header('Location: ./?err=2'); } include('../../config/company.php'); $id = $_GET['id']; $stmt=$db_client->prepare("SELECT * FROM page_profonde WHERE id=? AND id_company=?"); // on prépare notre requête $stmt->execute(array($id,$conf_id_company)); $row = $stmt->fetch(); if(empty($row)) header('Location: pages-profondes'); $name = $row->name; $pp_slug = $row->slug; $content = $row->content; $meta_title = $row->meta_title; $meta_description = $row->meta_description; $meta_keywords = $row->meta_keywords; 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("UPDATE page_profonde SET name=?,slug=?,content=?,meta_title=?,meta_description=?,meta_keywords=?,updated_at= NOW() WHERE id=?"); // on prépare notre requête $stmt->execute(array($name,$pp_slug,$content,$meta_title,$meta_description,$meta_keywords,$id)); header("Location: pages-profondes"); }else { echo "<div class='alert alert-danger'><button type='button' class='close' data-dismiss='alert'>×</button>Les champs Nom de la page, Slug et Contenu doivent être renseignés.</div>"; } } $btn = "Modifier"; $submit = "submitUpdate"; ?> <h1>Édition de la page profonde<small>(<a href="pages-profondes">retour</a>)</small></h1> <?php include('page-profonde-form.php'); ?>