<?
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('posting');

if ($_REQUEST['todo'])
$todo = $_REQUEST['todo'];

// pre-cache templates used by all actions
$globaltemplates = array(
	'mwaextraedit2_poem_form',
	'mwaextraedit2_frame_form',
	'mwaextraedit2_text',
	'mwaextraedit2_gradient_form',
	'mwaextraedit2_color');

	if ($todo=='color')
	 {
	require_once('./global.php');	
		
	eval('print_output("' . fetch_template('mwaextraedit2_color') . '");');
	 }

	if ($todo=='frame')
	 {
	require_once('./global.php');	
		
	eval('print_output("' . fetch_template('mwaextraedit2_frame_form') . '");');
	 }

	if ($todo=='gradient')
	 {
	require_once('./global.php');	
	eval('print_output("' . fetch_template('mwaextraedit2_gradient_form') . '");');
	 }

	if ($todo=='text')
	 {
	require_once('./global.php');	
		
	eval('print_output("' . fetch_template('mwaextraedit2_text') . '");');
	 }

	if ($todo=='poem')
	 {
	require_once('./global.php');	
		
	eval('print_output("' . fetch_template('mwaextraedit2_poem_form') . '");');
	 }

	if ($todo=='quran')
	 {
	require_once('./global.php');	
		
	eval('print_output("' . fetch_template('mwaextraedit2_quran_form') . '");');
	 }

?>