From: skaill <sk...@ro...> - 2004-09-20 21:34:52
|
Here's another about moving $title... below session.inc but above header.inc... ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Thursday, September 09, 2004 6:28 AM Subject: Re: [Web-erp-developers] Multilanguage - includes > 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |