%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/a-addhotpage.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); include_once("inc/session.php"); include_once("inc/classes/Hotpage.php"); verif_get($_GET['id_page']); $db = new BaseOps; $hotpage = new Hotpage; $page = new Page; $this_page=$page->getPage($_GET['id_page']); $page_sec=$this_page['section']; $old_hotpage=$hotpage->getHotpageByPage($_GET['id_page']); if(isset($_GET['action']) && $_GET['action']=="remove"){ $hotpage->removeHotpage($old_hotpage['id_hotpage']); } else{ if($old_hotpage!=""){ $hotpage->editTypeHotpage($_GET['id_page'],$_GET['type']); } else{ $hotpage->addHotpage($_GET['id_page'],$_GET['type']); } } header("Location:hotpage.php?msg=yes"); ?>