comparison index.php @ 33:511b6514823f

Remove more globals.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 04 Oct 2012 21:05:11 +0200
parents 7b19be62ea94
children 42533600214b
comparison
equal deleted inserted replaced
32:7b19be62ea94 33:511b6514823f
1 <?php 1 <?php
2 define(DEBUG,0); 2 define(DEBUG, 0);
3 define(MAX_RECURSE,50); 3 define(MAX_RECURSE, 50);
4 define(CACHING,1); 4 define(CACHING, 1);
5 5
6 /* 6 /*
7 var_dump($_SERVER); 7 var_dump($_SERVER);
8 exit; 8 exit;
9 */ 9 */
22 $cache->includeOnce('php/accept-language.inc'); 22 $cache->includeOnce('php/accept-language.inc');
23 $cache->includeOnce('php/common-functions.inc'); 23 $cache->includeOnce('php/common-functions.inc');
24 $cache->includeOnce('php/filters.inc'); 24 $cache->includeOnce('php/filters.inc');
25 $cache->includeOnce('php/inputParser.inc'); 25 $cache->includeOnce('php/inputParser.inc');
26 26
27 $URL_PARAMS = array('name', 'lang');
28
29 $master = new DOMDocument(); 27 $master = new DOMDocument();
30 $master->load("master.xml"); 28 $master->load("master.xml");
31 29
32 $options = new Options($master); 30 $options = new Options($master);
33 $options->setCache($cache); 31 $options->setCache($cache);
32
33 $options->setUrlParams(array('name', 'lang'));
34 //$URL_PARAMS = array('name', 'lang');
34 35
35 $lang = $_GET['lang']; 36 $lang = $_GET['lang'];
36 if($lang) { 37 if($lang) {
37 $options->setLang($lang); 38 $options->setLang($lang);
38 } 39 }