New: Add statistics page for trips and expenses module

This commit is contained in:
Laurent Destailleur
2010-04-05 01:01:28 +00:00
parent b5bc6dac90
commit 2dd4f080f0
16 changed files with 555 additions and 27 deletions

View File

@@ -1788,7 +1788,13 @@ function restrictedArea($user, $features='societe', $objectid=0, $dbtablename=''
*/
function accessforbidden($message='',$printheader=1,$printfooter=1,$showonlymessage=0)
{
global $user, $langs;
global $conf, $db, $user, $langs;
if (! is_object($langs))
{
include_once(DOL_DOCUMENT_ROOT.'/translate.class.php');
$langs=new Translate('',$conf);
}
$langs->load("other");
if ($printheader)