%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/test/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/test/p-news.php

<?php
include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");

verif_get($_GET['id']);
$act = new Actu;
$actu = $act->infos_actu($_GET['id']);
if($actu == null) {
	header("Location: 404.html");
	exit(0);
}

$affsec = true;
$sec = $section->aff_section($section->actu_sec($_GET['id']));
$pagesec = $lang->getlang()."/".$sec['id']."-".$sec['permalien']."/";
$pageactu = $lang->getlang()."/news/".$actu['id']."-".$actu['permalien'].".html";
if($_GET['permalien'] != $actu['permalien'])
{
	header("Location:".$url_site.$pageactu);
	exit(0);
}

$facebookapi = true;

//affichage du html
include("theme/html.php");
//affichage des metas
include("theme/meta.php");
echo "\n<title>".$actu['titre']." - ".$info_titresite."</title>\n";
?>
<meta property="og:titre" content="<?php echo $actu['titre']; ?>"/>
<?php if($actu['photo1']) { ?>
<meta property="og:image" content="<?php echo $url_site."uploads/".$actu['photo1'] ?>"/>
<?php } ?>
<meta property="og:type" content="non_profit"/>
<meta property="fb:app_id" content="307325492664749"/>
<meta property="og:url" content="<?php echo $url_site.$pageactu; ?>"/>
<meta property="og:site_name" content="<?php echo $info_titresite; ?>"/>
<?php
//affichage du header
include("theme/header.php");
//colonne de droite
include("theme/droite.php");

$cat = $section->aff_categorie($sec['categorie']);
?>
<div id="filariane">
<a href="/" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $cat['titre']; ?></a>
<?php if($cat['type'] != 0) { ?><a href="<?php echo $pagesec; ?>" style="background-color: #<?php echo $cat['couleur']; ?>" class="link"><?php echo $sec['titre']; ?></a><?php } ?>
<div class="link"><?php echo $actu['titre']; ?></div>
</div>
<?php

$act->affiche_actu($actu);

?>
<div class="text">
<div class="partager">
	<div class="icons">
		<div><a href="#partager_mail" class="inline"><img src="images/mail.png" alt="Mail" /> <?php echo lang("mail"); ?></a></div>
		<div><a href="<?php echo $lang->getlang()."/news/print/".$actu['id']."-".$actu['permalien'].".html"; ?>"><img src="images/print.png" alt="Print" /> <?php echo lang("print"); ?></a></div>
	</div>
	<div style="display: none;">
		<div id="partager_mail">
			<form action="<?php echo $lang->getlang(); ?>/partager/news.html" method="post" class="form">
				<table>
					<tr>
						<td class="label"><?php echo lang("email"); ?> <span class="etoile">*</span></td>
						<td class="field"><input type="text" name="email" value="<?php echo $_POST['email']; ?>" /></td>
					</tr>
				</table>
				<div class="form_bouton">
					<input type="hidden" name="post" value="1" />
					<input type="hidden" name="id" value="<?php echo $actu['id']; ?>" />
					<input type="submit" class="bouton" id="maj_bouton" value="<?php echo lang("mail"); ?>" />
				</div>
			</form>
		</div>
	</div>
	<div class="fb-like" data-href="<?php echo $url_site.$pageactu; ?>" data-send="false" data-width="400" data-show-faces="false"></div>
</div>
<div class="fb-comments" data-href="<?php echo $url_site.$pageactu; ?>" data-num-posts="3" data-width="700"></div>
</div>
<?php

//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0