diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-09 07:04:21 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-09 07:04:21 +0000 |
commit | 3e6c502c7209e5ae65f9952c2da7d69c7fb67723 (patch) | |
tree | c633e31b35f2a0f2c7e473efc00bcfb1a91b377a /functions/init.inc.php | |
parent | c3483ebeac844742b0b0d9910a50b663daeede23 (diff) | |
download | phpicalendar-3e6c502c7209e5ae65f9952c2da7d69c7fb67723.tar.gz phpicalendar-3e6c502c7209e5ae65f9952c2da7d69c7fb67723.tar.bz2 phpicalendar-3e6c502c7209e5ae65f9952c2da7d69c7fb67723.zip |
Initial preferences check in. doesn't work. Changes to RSS index.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index d3a0e03..bc27ff0 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -8,30 +8,13 @@ // uncomment when developing, comment for shipping version // error_reporting (E_ALL); -// Retain some compatibility backwards like. -//jared.20021003 I think we're always going to make sure these are extracted by hand -//so I'll comment this out for now, otherwise, uncomment this -//chad - navigation breaks after 4.2.0 without this. -// jared-2002.10.19; Re-enabled code at line 32 of this file. Shouldn't need this now. -// if we're going to use this, we should just extract them for all versions in case -// someone has manually turned of $register_globals, Otherwise we'll just do it by hand -// for the vars we care about -/* -if(phpversion() >= '4.2.0') - - { - extract($HTTP_GET_VARS); - extract($HTTP_POST_VARS); - } -*/ - if (!defined('BASE')) define('BASE', './'); include(BASE.'config.inc.php'); include(BASE.'functions/error.php'); // language support $language = strtolower($language); -$lang_file = getcwd().'/languages/'.$language.'.inc.php'; +$lang_file = BASE.'/languages/'.$language.'.inc.php'; if (file_exists($lang_file)) { include($lang_file); |