| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/central/ajuda/ |
Upload File : |
<?php
/******************************************************************************
* Category <category.php>
*
* This file is used when the client wants to view a category
*
* Author: Michael McMullen <michael.mcmullen@tutelagesystems.com>
******************************************************************************/
require_once '../System/configuration.php';
class CategoryPage extends MasterTemplate
{
var $template = '_category.html';
var $output = array();
var $config = array();
// Processing Variables
var $category_id = 0;
function CategoryPage()
{
// Call the Master Template Constructor
parent::__construct();
// Fill in Variables
$this->category_id = intval($_GET['category_id']);
// Add a Crumb
$this->AddBreadCrumb('Welcome', 'index.php');
// Find Selected Category
$this->output['category'] = $this->GetCategory($this->category_id);
$this->output['articles'] = $this->GetArticles($this->category_id);
// If we found the Category, add a bread crumb
if(isset($this->output['category']))
{
// Fill in SEO
$this->SetSEO($this->output['category']['category_name'], $this->output['category']['category_name'], array($this->output['category']['category_name']));
// Fill in Bread Crumb
$this->AddBreadCrumb($this->output['category']['category_name'], null);
}
// Render the Template
$this->RenderTemplate();
}
// Renders the index template (called from master)
function outputBody()
{
$body = new HTML_Template_Flexy($this->config['flexy']);
$body->compile($this->template);
$body->outputObject($this);
}
}
new CategoryPage();