<?php
	/*
	 * File Name: index.php
	 * Date: 4th April, 2013
	 * Revision: 30th June, 2013
	 * Author: Jay P. Gaha (http://zerp.ly/thewerewolves) 
	 * Description: master page, handles page
	 *
	*/
	session_start();
	ob_start();
	include_once("includes/config.php");
	
	if (isset($_POST)):
        foreach ($_POST as $key => $value):
    		$$key =  trim(@mysql_real_escape_string($value));
        endforeach;
   	endif;    
	if (isset($_GET)):
		foreach ($_GET as $key => $value):
            $$key = trim(@mysql_real_escape_string($value));
        endforeach;
    endif;
	
	initCounter($comp, $task, $id);
	
	if(IS_OFFLINE==1):
		include "templates/offline.php";
	else:		
		include "templates/template.php";
	endif;
	
	ob_end_flush();
?>