Location: PHPKode > projects > Akarru PHP Bookmark Engine > public_html/show_cat.php
<?php
/**
 * @package AkarruCPE
 * @subpackage index
 * @version 0.6
 * @copyright (c) 2006 Eduardo Diaz Cortes
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
 * @author Eduardo Diaz <hide@address.com>
 */

require('akarru/common.php');
$page = request_value('page', 1);
$cat = new Category(0, request_value('cat_name',''));
$template = new GridTemplate('master');
$memes = new MemeList($page, 'where category = '.intval($cat->ID), 0, 'order by date_posted desc');
$template->set_data($memes);
$template->load_categories();
$template->assign('pages', paginate($memes->size, $page, $memes->page_size, 25));
$template->add_tab($cat->cat_title);
$template->display();
?>     
Return current item: Akarru PHP Bookmark Engine