%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/p-oldtheme.php

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

$module = new Module;
$acc = false;

verif_get($_GET['id']);
$section = new Section;
$pg = $section->getSection($_GET['id'],$lang->id());
if($pg == null) {
	header("Location: 404.html");
	exit(0);
}
$pagesec = $lang->getlang()."/theme/";
$pagepg = $pagesec.$pg['id_section']."-".$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:image" content="<?php echo $url_site."images/logo.png" ?>"/>
<meta property="og:type" content="non_profit"/>
<meta property="fb:app_id" content="307325492664749"/>
<meta property="og:url" content="<?php echo $url_site.$pagepg; ?>"/>
<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");

?>
<div id="filariane">
<a href="<?=$lang->getlang()?>/" style="background-color: #28586f; ?>" class="link"><?=$trad->t('Home','admin',$lang->getlang())?></a>
<a href="<?=$lang->getlang()?>/themes.html" style="background-color: #<?=$pg['couleur']; ?>; ?>" class="link"><?=$trad->t('Themes','admin',$lang->getlang())?></a>
<div class="link"><?php echo $pg['titre']; ?></div>
</div>
<?
function hex2RGB($hexStr, $returnAsString = false, $seperator = ',') {
    $hexStr = preg_replace("/[^0-9A-Fa-f]/", '', $hexStr); // Gets a proper hex string
    $rgbArray = array();
    if (strlen($hexStr) == 6) { //If a proper hex code, convert using bitwise operation. No overhead... faster
        $colorVal = hexdec($hexStr);
        $rgbArray['red'] = 0xFF & ($colorVal >> 0x10);
        $rgbArray['green'] = 0xFF & ($colorVal >> 0x8);
        $rgbArray['blue'] = 0xFF & $colorVal;
    } elseif (strlen($hexStr) == 3) { //if shorthand notation, need some string manipulations
        $rgbArray['red'] = hexdec(str_repeat(substr($hexStr, 0, 1), 2));
        $rgbArray['green'] = hexdec(str_repeat(substr($hexStr, 1, 1), 2));
        $rgbArray['blue'] = hexdec(str_repeat(substr($hexStr, 2, 1), 2));
    } else {
        return false; //Invalid hex color code
    }
    return $returnAsString ? implode($seperator, $rgbArray) : $rgbArray; // returns the rgb string or the associative array
} ?>

<div class="text">
<div class="theme_image">
	<img src="<?=thumb($pg['photo'], 710, 280,1); ?>" alt="<?=$pg['titre']; ?>" />
</div>
<div class="presentation_theme" >
	<h2 style="
background: -webkit-gradient(
	linear,
	left top, left bottom,
	from(rgba(<?=hex2RGB($pg['couleur'], true)?>,0)),
	to(#<?=$pg['couleur']; ?>),
	color-stop(0.5, #<?=$pg['couleur']; ?>)
);
background: -webkit-linear-gradient(
	top,
	rgba(<?=hex2RGB($pg['couleur'], true)?>,0),
	#<?=$pg['couleur']; ?> 
);
background: -moz-linear-gradient(
	top,
	rgba(<?=hex2RGB($pg['couleur'], true)?>,0),
	#<?=$pg['couleur']; ?> 
);
background: -o-linear-gradient(
	top,
	rgba(<?=hex2RGB($pg['couleur'], true)?>,0),
	#<?=$pg['couleur']; ?> 
);
background: linear-gradient(
	top,
	rgba(<?=hex2RGB($pg['couleur'], true)?>,0),
	#<?=$pg['couleur']; ?> 
);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00<?=$pg['couleur']; ?>', endColorstr='#<?=$pg['couleur']; ?>',GradientType=0 ); /* IE8 */
"><?=$pg['titre']; ?></h2>
	
</div>
<div style="clear:both"></div>
<div class="presentation_theme_text" style="background-color:#<?=$pg['couleur']; ?>"><?=htmldecode($pg['texte']); ?></div>
<div style="clear:both"></div>
<?php
$result = $page->liste_pages($_GET['id'],false,false,"page");
if($result != null){
	foreach ($result as $page){
?>
	<div class="theme_lien" style="background: #<?=$pg['couleur']; ?>;"><a href="<?=$lang->getlang()?>/<?=$pg['id_section']?>-page/<?=$page['id_page']; ?>-<?=$page['permalien']; ?>.html"><?php echo $page['titre']; ?></a></div>
<?php
	}
}
?>
<div style="clear:both"></div>
<div class="presentation_theme_text2"><?=htmldecode($pg['texte2']); ?></div>
<?
$module->afficher_actus_theme($pg['id_section']);?>
<!--<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 $pagesec."print/".$pg['id']."-".$pg['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/page.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 $pg['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.$pagepg; ?>" data-send="false" data-width="400" data-show-faces="false"></div>
</div>-->

</div>
<?php
//affichage du footer
include("theme/footer.php");

?>

Zerion Mini Shell 1.0