0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www.OLD
/
adminnlp
/
ajax
/
[
Home
]
File: listpage.php
<?php include_once(realpath(dirname(__FILE__)) . "/../../classes/Administrateur.class.php"); include_once(realpath(dirname(__FILE__)) . "/../../classes/Navigation.class.php"); session_start(); if( ! isset($_SESSION["util"]->id) ) {header("Location: ../index.php");exit;} include_once(realpath(dirname(__FILE__)) . "/../../fonctions/divers.php"); ?> <?php if(! est_autorise("acces_catalogue")) exit; ?> <?php include_once("../../classes/Gallery.class.php"); include_once("../../classes/Gallery.desc.class.php"); include_once("../../classes/Page.class.php"); include_once("../../classes/Pagedesc.class.php"); $sep = explode( "_", $_POST['id']); $pos = strpos($_POST['id'], "_"); $modif = substr($_POST['id'], 0, $pos); if($modif == "titregal"){ $obj = new Gallery(); $objdesc = new Gallerydesc(); } else{ $obj = new Page(); $objdesc = new Pagedesc(); } $obj->charger(substr($_POST['id'], $pos+1)); $objdesc->charger($obj->id); $objdesc->titre = $_POST["value"]; $objdesc->maj(); echo $objdesc->titre; ?>
©
2018.