5 * Created on Apr 19, 2007
7 * @author Diego Andrés Ramírez Aragón <diego@somosmas.org>
8 * @copyright Corporación Somos más - 2007
10 require_once(dirname(dirname(__FILE__
))."/../includes.php");
11 global $default_template_wrapper;
12 global $template_wrapper;
15 $page = optional_param("page");
17 if(!empty($default_template_wrapper)){
18 $template['pageshell'] = file_get_contents($default_template_wrapper);
21 if(array_key_exists($page,$template_wrapper)){
22 if(array_key_exists('template',$template_wrapper[$page])){
23 $template['pageshell'] = file_get_contents($template_wrapper[$page]['template']);
25 require_once $template_wrapper[$page]['file'];