예제 #1
0
파일: index.php 프로젝트: jcmwc/fleet
<?php

//require(dirname(__FILE__)."/../require/auth.php");
require "../require/function.php";
require "../require/back_include.php";
//print_r($_SESSION);
testIpDie();
if ($_SESSION['islog'] == "") {
    ?>
	<script>window.location='../home/index.php'</script>
	<?php 
    die;
}
require "../include/allinclude2.php";
if ($_SESSION['islog'] != "" && __light__ != true) {
    require "../include/entetearbre2.php";
}
?>
</head>
<body style="margin:0px; padding:0px;">
<div id="global">Loading</div>
<iframe id="framecontent" name="framecontent" bgcolor="" marginheight="0" marginwidth="0" src="../home/index.php" height="0" width="0" style="border:none;" frameBorder="0" border="0" onload="aspirecontent()"> 
</iframe>
<?php 
if ($_SESSION['islog'] != "" && __light__ != true) {
    require "../include/template_ajout_arbre2.php";
}
if (__light__ == true) {
    ?>
<!--Fin tableau general-->
<style>
예제 #2
0
파일: class_rules.php 프로젝트: jcmwc/fleet
function testdroitarbredie($arbre_id, $shortlib)
{
    testIpDie();
    global $trad;
    if (!testdroitarbre($arbre_id, $shortlib)) {
        require $_SERVER["DOCUMENT_ROOT"] . __racineadmin__ . "/include/template_haut.php";
        ?>
    <div id="error">
      <?php 
        echo $trad["Vous n'avez pas les droits pour effectuer cette action"];
        ?>
    </div> 
    <?php 
        require $_SERVER["DOCUMENT_ROOT"] . __racineadmin__ . "/include/template_bas.php";
        die;
    }
}