Rev 130 Rev 139
1 <?php 1 <?php
2   2  
3 if (version_compare(phpversion(), '5.0.0', 'lt')) { 3 if (version_compare(phpversion(), '5.0.0', 'lt')) {
4   4  
5 # XXX: these includes shouldn't be necessary! 5 # XXX: these includes shouldn't be necessary!
6 require_once 'include/configclass.inc'; 6 require_once 'include/configclass.inc';
7 $config = new Config; 7 $config = new Config;
8 require_once 'include/config.inc'; 8 require_once 'include/config.inc';
9 require_once($config->getPHPCompatFile()); 9 require_once($config->getPHPCompatFile());
10   10  
11 // Configure necessary functions here 11 // Configure necessary functions here
12 $funcs = array( 12 $funcs = array(
13 'stripos', 13 'stripos',
14 'http_build_query', 14 'http_build_query',
15 ); 15 );
16   16  
17 // End configuration 17 // End configuration
18   18  
19 foreach ($funcs as $fn) { 19 foreach ($funcs as $fn) {
20 if (PHP_Compat::loadFunction($fn) != true) 20 if (PHP_Compat::loadFunction($fn) != true)
21 error_log('Could not load function `'.$fn.'\' as required by PHP Compat.'); 21 error_log('Could not load function `'.$fn.'\' as required by PHP Compat.');
22 } 22 }
23   23  
24 } 24 }
25 ?> 25 ?>