Location: PHPKode > projects > Info-Gest > InfoGestV0.9.200911_r3/infogest/index.php
<?php
define('INDEX_CHECK', 1); # Declaration que infogest est bien declaré
define('WRITE_LOG',1); # Ecriture des logs d action
define('PREFIX','ig_'); # Definition du préfix des tables
$temps_debut = microtime(true);
require_once('kernel/kernel.php');
# Script inclusion des pages et modules 
if($_GET['module'] == 'Client')
	$directory='gestionclt';
elseif($directory == 'login')
	$directory = 'login';
else
	$directory=$_GET['module'];
	
if(isset($directory) || (isset($_GET['pm'])) || $directory == "login")
{
//    if(isset($directory) && is_dir("./mod/". $directory .""))
  
    if(isset($_GET['pm']))
    {
        $file=$_GET['pm'];
		if($_GET['pm'] != 'admin' && $user[0] == '') unset($_GET['pm']);
        $file_a_include="./mod/".$directory."/".$file.".php";
    }
    else
    {
        $file="index";
        $file_a_include="./mod/".$directory."/".$file.".php";
    }
    
    if (is_file($file_a_include)) 
		include_once($file_a_include);
    else
        SuccesAffiche($lang['CETTE_PAGE_EXISTE_PAS'], 'index.php',3,5);
    
}
else
	include_once('mod/Index/index.php'); # Aucune page ni module appel page accueil 

include_once('common_footer.php');
?>	
Return current item: Info-Gest