From: Phil D. <we...@pa...> - 2004-09-09 10:27:13
|
That makes sense Steve. I think it may be more interesting with PDF report scripts (not that they will work in multi-language) since the LanguageSetup.php is included in PDFStarter_ros.php and we need to handle errors with html so header.inc gets included before any html output. Phil On Thu, 2004-09-09 at 21:53, skaill wrote: > I've noticed this type of thing in some scripts... > > $title = 'Receive Controlled Items'; > $PageSecurity = 11; > > /* Session started in header.inc for password checking and > authorisation level check */ > include('includes/DefinePOClass.php'); > include('includes/DefineSerialItems.php'); > include('includes/session.inc'); > include('includes/header.inc'); > > If $title was moved below session.inc and above header.inc that would > be good for $title. However, DefineSerialItems.php has a string in it > which means it also needs to be after session.inc. > > session.inc never uses any includes before it and verifies access so > I'm thinking session.inc should always be the first include anyway. > Can you confirm this Phil? > > Steve |