| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | //* Set timezone |
| | | if(isset($conf['timezone']) && $conf['timezone'] != '') date_default_timezone_set($conf['timezone']); |
| | | |
| | | class app { |
| | | |
| | | var $loaded_modules = array(); |
| | |
| | | if we are in a multiserver setup |
| | | */ |
| | | |
| | | if($conf['dbmaster_host'] != '' && $conf['dbmaster_host'] != $conf['db_host']) { |
| | | if($conf['dbmaster_host'] != '' && ($conf['dbmaster_host'] != $conf['db_host'] || ($conf['dbmaster_host'] == $conf['db_host'] && $conf['dbmaster_database'] != $conf['db_database']))) { |
| | | $this->dbmaster = new db; |
| | | if($this->dbmaster->linkId) $this->dbmaster->closeConn(); |
| | | $this->dbmaster->dbHost = $conf['dbmaster_host']; |
| | |
| | | if(is_array($cl)) { |
| | | foreach($cl as $classname) { |
| | | if(!@is_object($this->$classname)) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { |
| | | include_once($conf['classpath'].'/'.$classname.'.inc.php'); |
| | | $this->$classname = new $classname; |
| | | } |
| | |
| | | $cl = explode(',',$classes); |
| | | if(is_array($cl)) { |
| | | foreach($cl as $classname) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { |
| | | include_once($conf['classpath'].'/'.$classname.'.inc.php'); |
| | | } else { |
| | | die('Unable to load: '.$conf['classpath'].'/'.$classname.'.inc.php'); |