<?php
/************************************************************************/
/* DUNE by NPDS                                                         */
/* ===========================                                          */
/*                                                                      */
/* DYNAMIC THEME engine for NPDS                                        */
/* NPDS Copyright (c) 2002-2011 by Philippe Brunier                     */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
global $theme; $rep=false;
settype($ContainerGlobal,'string');
if (file_exists("themes/".$theme."/html/footer.html")) {$rep=$theme;}
elseif (file_exists("themes/default/html/footer.html")) {$rep="default";}
else {
    echo "footer.html manquant / not find !<br />";
    die();
}

if ($rep) {
    ob_start();
    include("themes/".$rep."/html/footer.html");
    $Xcontent=ob_get_contents();
    ob_end_clean();
    if ($ContainerGlobal)
       $Xcontent.=$ContainerGlobal;
    echo meta_lang(aff_langue($Xcontent));
}
?>