title; $date = $data_index->pubDate; $metak = $data_index->meta; $metad = $data_index->metad; $url = $data_index->url; $content = $data_index->content; $parent = $data_index->parent; $template_file = $data_index->template; $private = $data_index->private; if ($private == 'Y') { header('Location: 403'); exit; } if ($url == '403') { header('HTTP/1.0 404 Not Found'); } // include the functions.php page if it exists within the theme if ( file_exists("theme/".$TEMPLATE."/functions.php") ) { include("theme/".$TEMPLATE."/functions.php"); } // call pretemplate Hook exec_action('index-pretemplate'); // include the template and template file set within theme.php and each page if ( (!file_exists("theme/".$TEMPLATE."/".$template_file)) || ($template_file == '') ) { $template_file = "template.php"; } include("theme/".$TEMPLATE."/".$template_file); // call posttemplate Hook exec_action('index-posttemplate'); ?>