Example #1
0
function message($content, $type = MESSAGE_STANDARD, $redirect = true) {
	global $config, $html, $con, $logger, $phrase;
	
	if ($redirect) {
		$html['redirect'] = '<meta http-equiv="REFRESH" content="1;url='.($con->url).'">';
	}
	
	$logger->log('type', $type);	
	
	if ($config['debug']) {
		prep_debug_for_output();
	}

	eval('$html["content"] = "'.fetch_template('message').'";');
	eval('print_output("'.fetch_template('page').'");');
}
Example #2
0
		
		if ($page['meta_'.($english ? 'english' : 'spanish')] == "") {
			$html['meta'] = $config['meta_'.($english ? 'english' : 'spanish')];
		}
		
		$html['title'] = $page['title_'.($english ? 'english' : 'spanish')];
		
		include $config['dir_pages'].$page['file'];
	}
	else {
		$html['content'] = ($english ? $page['content_english'] : $page['content_spanish']);
	}
}

/*if ($html['content'] == '') {
	$con->url = $config['url'];
	message($phrase['invalid_page']);
}*/

if ($standard_sidebars) {
	city_sidebar();
	project_sidebar();
}

if ($config['debug']) {
	prep_debug_for_output();
}

eval('print_output("'.fetch_template('page').'");');
	
?>