%PDF- %PDF-
Direktori : /home/alliance/domains/congress-eldw.eu/public_html/ |
Current File : /home/alliance/domains/congress-eldw.eu/public_html/p-page_print.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/init.php"); verif_get($_GET['id']); $page = new Page; $pg = $page->infos_page($_GET['id']); if($pg == null) { header("Location: 404.html"); exit(0); } $affsec = true; $sec = $section->aff_section($section->page_sec($_GET['id'])); $pagesec = $lang->getlang()."/".$sec['id']."-".$sec['permalien']."/"; $pagepg = $pagesec."print/".$pg['id']."-".$pg['permalien'].".html"; if($_GET['permalien'] != $pg['permalien']) { header("Location:".$url_site.$pagepg); exit(0); } $facebookapi = true; //affichage du html include("theme/html.php"); //affichage des metas include("theme/meta.php"); echo "\n<title>".$pg['titre']." - ".$info_titresite."</title>\n"; ?> <meta property="og:titre" content="<?php echo $pg['titre']; ?>"/> <meta property="og:type" content="non_profit"/> <meta property="og:url" content="<?php echo $url_site.$pagepg; ?>"/> <meta property="og:site_name" content="<?php echo $info_titresite; ?>"/> </head> <body style="background: #fff"> <div class="text" id="printbutton" style="margin: 10px;"> <a href="javascript: window.print()" class="bouton"><?php echo lang("print"); ?></a> <a href="<?=$lang->getlang()."/"?>page/<?=$pg['id']."-".$pg['permalien'].".html"; ?>" class="bouton"><?php echo lang("back"); ?></a> </div> <div id="gauche"> <div class="text"> <h2><?php echo $pg['titre']; ?></h2> <h3><?php echo $pg['soustitre']; ?></h3> <?php $result = $page->liste_blocs($_GET['id']); if($result != null) { foreach ($result as $bloc) { $page->afficher_bloc($bloc, "page"); } } ?> </div> </div> </body> </html>