00001 00002 00003 <? 00004 /* 00005 * This file is part of PhpCompta. 00006 * 00007 * PhpCompta is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * PhpCompta is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with PhpCompta; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00025 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr 00026 // $Revision: 1.10 $ 00027 include_once ("ac_common.php"); 00028 include_once("postgres.php"); 00029 $rep=DbConnect(); 00030 include_once ("class_user.php"); 00031 $User=new cl_user($rep); 00032 00033 $User->Check(); 00034 html_page_start($_SESSION['g_theme']); 00035 include_once("user_menu.php"); 00036 00037 $priv=($User->admin==1)?"Administrator":"User"; 00038 00039 echo '<div class="info"> Welcome '.$User->first_name.' '. 00040 $User->name.',<h3 class="info"> your are an '. $priv.' <br>Please Select your folder</h3></div>'; 00041 // Show default menu (preference,...) 00042 00043 // If admin show everything otherwise only the available dossier 00044 $res=u_ShowDossier($_SESSION['g_user'],$User->admin); 00045 echo $res; 00046 ?> 00047 <P> 00048 00049 </P> 00050 <? 00051 html_page_stop(); 00052 ?>