<?php

if(!isset($_REQUEST['rep'])) {
    include_once dirname(__FILE__).'/common.php';
    header('Location: ' . URL_ROOT . "$C_default_rep/client.php" );
    exit();
}

$rep = $_REQUEST['rep'];
include_once dirname(__FILE__).'/'.$rep.'/config.php';

include_once 'common.php';


$head_logo = URL_ROOT."$rep/images/head_logo.gif";
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
    $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
}

    $issmall = (isset($_REQUEST['small']) && $_REQUEST['small']);
    $theme = (isset($_REQUEST['theme']) ? $_REQUEST['theme'] : 'nuit' );
?>
<!DOCTYPE html>
<html lang="fr">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>Sweet Tweet</title>
        <link rel="stylesheet" type="text/css" href="<?php echo(registry_url('semanticboard','css'))?>" />
        <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
        <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
        <script type="text/javascript">
            var mdpSource = <?php echo (isset($_REQUEST['metadata'])) ? $_REQUEST['metadata'] : 'false'; ?>;
            <?php echo $config['js_config']; ?>
        </script>
        <script type="text/javascript" src="<?php echo(registry_url('semanticboard','js'))?>">"></script>
    </head>
    <body class="<?php echo $theme.($issmall ? " small" : ""); ?>">
        <div id="container">
<?php
    if (!$issmall) {
?>
            <div id="tweetcont"></div>
            <img id="ptimg" src="../res/css/twcx-img/pt_logo.gif" />
<?php
    }
?>
            <div id="columncont"></div>
<?php
    if (!$issmall) {
?>
            <div id="logos">
                <img class="fl" src="<?php echo $head_logo; ?>" />
                <img class="fr" src="../res/css/twcx-img/logo_iri.png" />
            </div>
<?php
    }
?>
        </div>
    </body>
</html>