All pastes #164182 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-08 11:24 UTC
rendered paste body
	function __construct(){
		clearstatcache();
		if(defined("yCONF") && defined("yROOT") && file_exists(yCONF) && file_exists(yROOT)) {
			try {
				if(($this->ini = @parse_ini_file(yCONF, true)) === FALSE)
					throw new Exception('Configuration file\'s syntax error.');
			} catch(Exception $e) {
				print 'Error: '.$e->getMessage();
			}
		} else {
			die('yCore: Init Configuration Error.'); ## setup ?!
		}
	}