2003-05-09 14:42:42 +02:00
|
|
|
<?php
|
2004-02-07 12:50:26 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | PhpWebGallery - a PHP based picture gallery |
|
|
|
|
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
2005-01-08 00:10:51 +01:00
|
|
|
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
2004-02-07 12:50:26 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
2004-11-06 22:12:59 +01:00
|
|
|
// | branch : BSF (Best So Far)
|
2004-02-07 12:50:26 +01:00
|
|
|
// | file : $RCSfile$
|
|
|
|
// | last update : $Date$
|
|
|
|
// | last modifier : $Author$
|
|
|
|
// | revision : $Revision$
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
2004-02-07 16:31:01 +01:00
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
2004-02-07 12:50:26 +01:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
|
2004-02-07 16:31:01 +01:00
|
|
|
//--------------------------------------------------------------------- include
|
2004-02-19 01:31:09 +01:00
|
|
|
define('PHPWG_ROOT_PATH','./');
|
|
|
|
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
|
2003-07-27 10:24:10 +02:00
|
|
|
//---------------------------------------------------------------------- logout
|
2004-02-02 01:55:18 +01:00
|
|
|
if ( isset( $_GET['act'] )
|
|
|
|
and $_GET['act'] == 'logout'
|
|
|
|
and isset( $_COOKIE['id'] ) )
|
2003-07-27 10:24:10 +02:00
|
|
|
{
|
|
|
|
// cookie deletion if exists
|
|
|
|
setcookie( 'id', '', 0, cookie_path() );
|
|
|
|
$url = 'category.php';
|
2004-03-31 22:43:09 +02:00
|
|
|
redirect( $url );
|
2003-07-27 10:24:10 +02:00
|
|
|
}
|
2003-05-09 14:42:42 +02:00
|
|
|
//-------------------------------------------------- access authorization check
|
2004-11-23 23:31:24 +01:00
|
|
|
if (isset($_GET['cat']))
|
|
|
|
{
|
|
|
|
check_cat_id($_GET['cat']);
|
|
|
|
}
|
2003-05-09 14:42:42 +02:00
|
|
|
check_login_authorization();
|
2004-11-23 23:31:24 +01:00
|
|
|
if (isset($page['cat']) and is_numeric($page['cat']))
|
2003-05-09 14:42:42 +02:00
|
|
|
{
|
2004-11-23 23:31:24 +01:00
|
|
|
check_restrictions($page['cat']);
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
|
|
|
//-------------------------------------------------------------- initialization
|
2004-02-02 01:55:18 +01:00
|
|
|
// detection of the start picture to display
|
|
|
|
if ( !isset( $_GET['start'] )
|
|
|
|
or !is_numeric( $_GET['start'] )
|
|
|
|
or ( is_numeric( $_GET['start'] ) and $_GET['start'] < 0 ) )
|
2004-09-04 10:07:33 +02:00
|
|
|
{
|
2004-02-02 01:55:18 +01:00
|
|
|
$page['start'] = 0;
|
2004-09-04 10:07:33 +02:00
|
|
|
}
|
2004-02-02 01:55:18 +01:00
|
|
|
else
|
2004-09-04 10:07:33 +02:00
|
|
|
{
|
2004-02-02 01:55:18 +01:00
|
|
|
$page['start'] = $_GET['start'];
|
2004-09-04 10:07:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Sometimes, a "num" is provided in the URL. It is the number
|
|
|
|
// of the picture to show. This picture must be in the thumbnails page.
|
|
|
|
// We have to find the right $page['start'] that show the num picture
|
|
|
|
// in this category
|
|
|
|
if ( isset( $_GET['num'] )
|
|
|
|
and is_numeric( $_GET['num'] )
|
|
|
|
and $_GET['num'] >= 0 )
|
|
|
|
{
|
|
|
|
$page['start'] = floor( $_GET['num'] / $user['nb_image_page'] );
|
|
|
|
$page['start']*= $user['nb_image_page'];
|
|
|
|
}
|
2004-02-02 01:55:18 +01:00
|
|
|
|
|
|
|
initialize_category();
|
|
|
|
|
2005-03-25 23:10:55 +01:00
|
|
|
// caddie filling :-)
|
|
|
|
if (isset($_GET['caddie']))
|
|
|
|
{
|
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
|
|
|
// You can't add in caddie elements that are already in !
|
|
|
|
|
|
|
|
$query = '
|
|
|
|
SELECT DISTINCT(id)
|
|
|
|
FROM '.IMAGES_TABLE.' AS i
|
|
|
|
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id
|
|
|
|
'.$page['where'].'
|
|
|
|
;';
|
|
|
|
$ids = array_from_query($query, 'id');
|
|
|
|
|
|
|
|
$query = '
|
|
|
|
SELECT element_id
|
|
|
|
FROM '.CADDIE_TABLE.'
|
|
|
|
WHERE user_id = '.$user['id'].'
|
|
|
|
;';
|
|
|
|
$in_caddie = array_from_query($query, 'element_id');
|
|
|
|
|
|
|
|
$caddiables = array_diff($ids, $in_caddie);
|
|
|
|
|
|
|
|
$datas = array();
|
|
|
|
|
|
|
|
foreach ($caddiables as $caddiable)
|
|
|
|
{
|
|
|
|
array_push($datas, array('element_id' => $caddiable,
|
|
|
|
'user_id' => $user['id']));
|
|
|
|
}
|
|
|
|
mass_inserts(CADDIE_TABLE, array('element_id','user_id'), $datas);
|
|
|
|
}
|
|
|
|
|
2003-05-09 14:42:42 +02:00
|
|
|
// creation of the array containing the cat ids to expand in the menu
|
|
|
|
// $page['tab_expand'] contains an array with the category ids
|
|
|
|
// $page['expand'] contains the string to display in URL with comma
|
|
|
|
$page['tab_expand'] = array();
|
2004-03-05 23:54:53 +01:00
|
|
|
if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
|
2004-02-02 01:55:18 +01:00
|
|
|
{
|
|
|
|
// the category displayed (in the URL cat=23) must be seen in the menu ->
|
|
|
|
// parent categories must be expanded
|
|
|
|
$uppercats = explode( ',', $page['uppercats'] );
|
|
|
|
foreach ( $uppercats as $uppercat ) {
|
|
|
|
array_push( $page['tab_expand'], $uppercat );
|
2003-10-11 15:36:43 +02:00
|
|
|
}
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
2004-03-05 23:54:53 +01:00
|
|
|
// in case of expanding all authorized cats $page['tab_expand'] is empty
|
|
|
|
if ( $user['expand'] )
|
2003-05-09 14:42:42 +02:00
|
|
|
{
|
|
|
|
$page['tab_expand'] = array();
|
|
|
|
}
|
|
|
|
//----------------------------------------------------- template initialization
|
2004-02-02 01:55:18 +01:00
|
|
|
//
|
|
|
|
// Start output of page
|
|
|
|
//
|
|
|
|
$title = $page['title'];
|
2004-02-22 03:43:13 +01:00
|
|
|
include(PHPWG_ROOT_PATH.'include/page_header.php');
|
2004-02-02 01:55:18 +01:00
|
|
|
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->set_filenames( array('category'=>'category.tpl') );
|
|
|
|
//-------------------------------------------------------------- category title
|
2004-12-28 20:33:52 +01:00
|
|
|
if (isset($page['cat']) and is_numeric($page['cat']))
|
2004-12-25 20:33:36 +01:00
|
|
|
{
|
|
|
|
$template_title = get_cat_display_name($page['cat_name'],
|
|
|
|
'category.php?cat=',
|
|
|
|
false);
|
|
|
|
}
|
2004-12-28 20:33:52 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
$template_title = $page['title'];
|
|
|
|
}
|
2004-12-25 20:33:36 +01:00
|
|
|
|
2004-06-15 22:00:40 +02:00
|
|
|
if ( isset( $page['cat_nb_images'] ) and $page['cat_nb_images'] > 0 )
|
|
|
|
{
|
|
|
|
$template_title.= ' ['.$page['cat_nb_images'].']';
|
2004-02-07 12:50:26 +01:00
|
|
|
}
|
|
|
|
|
2004-07-09 23:00:00 +02:00
|
|
|
$icon_recent = get_icon(date('Y-m-d'));
|
2004-06-19 01:23:29 +02:00
|
|
|
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->assign_vars(array(
|
|
|
|
'NB_PICTURE' => count_user_total_images(),
|
2004-06-15 22:00:40 +02:00
|
|
|
'TITLE' => $template_title,
|
2004-02-07 12:50:26 +01:00
|
|
|
'USERNAME' => $user['username'],
|
2004-08-31 00:00:46 +02:00
|
|
|
'TOP_NUMBER'=>$conf['top_number'],
|
2004-11-23 23:31:24 +01:00
|
|
|
'MENU_CATEGORIES_CONTENT'=>get_categories_menu(),
|
2004-02-07 12:50:26 +01:00
|
|
|
|
|
|
|
'L_CATEGORIES' => $lang['categories'],
|
|
|
|
'L_HINT_CATEGORY' => $lang['hint_category'],
|
|
|
|
'L_SUBCAT' => $lang['sub-cat'],
|
|
|
|
'L_IMG_AVAILABLE' => $lang['images_available'],
|
|
|
|
'L_TOTAL' => $lang['total'],
|
2004-06-15 22:00:40 +02:00
|
|
|
'L_SPECIAL_CATEGORIES' => $lang['special_categories'],
|
2004-02-07 12:50:26 +01:00
|
|
|
'L_SUMMARY' => $lang['title_menu'],
|
|
|
|
'L_UPLOAD' => $lang['upload_picture'],
|
|
|
|
'L_COMMENT' => $lang['comments'],
|
2005-01-06 17:33:04 +01:00
|
|
|
'L_IDENTIFY' => $lang['identification'],
|
2004-02-26 19:33:45 +01:00
|
|
|
'L_SUBMIT' => $lang['menu_login'],
|
|
|
|
'L_USERNAME' => $lang['login'],
|
|
|
|
'L_PASSWORD' => $lang['password'],
|
|
|
|
'L_HELLO' => $lang['hello'],
|
2004-12-23 13:30:03 +01:00
|
|
|
'L_REGISTER' => $lang['ident_register'],
|
|
|
|
'L_LOGIN' => $lang['menu_login'],
|
2004-02-26 19:33:45 +01:00
|
|
|
'L_LOGOUT' => $lang['logout'],
|
|
|
|
'L_ADMIN' => $lang['admin'],
|
|
|
|
'L_ADMIN_HINT' => $lang['hint_admin'],
|
|
|
|
'L_PROFILE' => $lang['customize'],
|
|
|
|
'L_PROFILE_HINT' => $lang['hint_customize'],
|
2004-10-03 01:12:50 +02:00
|
|
|
'L_REMEMBER_ME' => $lang['remember_me'],
|
2004-02-26 19:33:45 +01:00
|
|
|
|
|
|
|
'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ),
|
2004-07-09 23:00:00 +02:00
|
|
|
'T_RECENT' => $icon_recent,
|
2004-02-07 12:50:26 +01:00
|
|
|
|
2004-02-26 19:33:45 +01:00
|
|
|
'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),
|
2004-12-23 13:30:03 +01:00
|
|
|
'U_REGISTER' => add_session_id( PHPWG_ROOT_PATH.'register.php' ),
|
2004-03-20 01:52:37 +01:00
|
|
|
'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
|
2004-02-26 19:33:45 +01:00
|
|
|
'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ),
|
2005-03-25 23:10:55 +01:00
|
|
|
'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] )),
|
|
|
|
'U_CADDIE'=>add_session_id(PHPWG_ROOT_PATH.'category.php'.get_query_string_diff(array('caddie')).'&caddie=1')
|
2004-02-07 12:50:26 +01:00
|
|
|
)
|
|
|
|
);
|
2004-09-01 23:39:29 +02:00
|
|
|
//---------------------------------------------------------- special categories
|
|
|
|
// favorites categories
|
2003-05-09 14:42:42 +02:00
|
|
|
if ( !$user['is_the_guest'] )
|
|
|
|
{
|
2004-02-19 01:31:09 +01:00
|
|
|
$template->assign_block_vars('username', array());
|
2004-09-01 23:39:29 +02:00
|
|
|
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=fav'),
|
|
|
|
'TITLE' => $lang['favorite_cat_hint'],
|
|
|
|
'NAME' => $lang['favorite_cat']
|
|
|
|
));
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
2004-09-01 23:39:29 +02:00
|
|
|
// most visited
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=most_visited'),
|
|
|
|
'TITLE' => $lang['most_visited_cat_hint'],
|
2005-02-09 22:47:21 +01:00
|
|
|
'NAME' => $lang['most_visited_cat']
|
2004-09-01 23:39:29 +02:00
|
|
|
));
|
|
|
|
// best rated
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
|
|
|
|
'TITLE' => $lang['best_rated_cat_hint'],
|
2005-02-09 22:47:21 +01:00
|
|
|
'NAME' => $lang['best_rated_cat']
|
2004-09-01 23:39:29 +02:00
|
|
|
));
|
|
|
|
// random
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
2004-11-16 00:13:24 +01:00
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'random.php'),
|
2004-09-01 23:39:29 +02:00
|
|
|
'TITLE' => $lang['random_cat_hint'],
|
|
|
|
'NAME' => $lang['random_cat']
|
|
|
|
));
|
|
|
|
// recent pics
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_pics'),
|
|
|
|
'TITLE' => $lang['recent_pics_cat_hint'],
|
|
|
|
'NAME' => $lang['recent_pics_cat']
|
|
|
|
));
|
|
|
|
// recent cats
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_cats'),
|
|
|
|
'TITLE' => $lang['recent_cats_cat_hint'],
|
|
|
|
'NAME' => $lang['recent_cats_cat']
|
|
|
|
));
|
|
|
|
// calendar
|
|
|
|
$template->assign_block_vars(
|
|
|
|
'special_cat',
|
|
|
|
array(
|
|
|
|
'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=calendar'),
|
|
|
|
'TITLE' => $lang['calendar_hint'],
|
|
|
|
'NAME' => $lang['calendar']
|
|
|
|
));
|
2003-05-09 14:42:42 +02:00
|
|
|
//--------------------------------------------------------------------- summary
|
2004-02-26 19:33:45 +01:00
|
|
|
|
2003-05-09 14:42:42 +02:00
|
|
|
if ( !$user['is_the_guest'] )
|
|
|
|
{
|
2004-02-26 19:33:45 +01:00
|
|
|
$template->assign_block_vars('logout',array());
|
|
|
|
// administration link
|
|
|
|
if ( $user['status'] == 'admin' )
|
|
|
|
{
|
|
|
|
$template->assign_block_vars('logout.admin', array());
|
|
|
|
}
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2004-02-26 19:33:45 +01:00
|
|
|
$template->assign_block_vars('login',array());
|
2004-10-07 00:48:48 +02:00
|
|
|
if ($conf['authorize_remembering'])
|
|
|
|
{
|
|
|
|
$template->assign_block_vars('login.remember_me',array());
|
|
|
|
}
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
2004-02-07 12:50:26 +01:00
|
|
|
|
2003-05-09 14:42:42 +02:00
|
|
|
// search link
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->assign_block_vars('summary', array(
|
|
|
|
'TITLE'=>$lang['hint_search'],
|
|
|
|
'NAME'=>$lang['search'],
|
|
|
|
'U_SUMMARY'=>add_session_id( 'search.php' ),
|
|
|
|
));
|
|
|
|
|
2003-10-04 18:08:53 +02:00
|
|
|
// comments link
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->assign_block_vars('summary', array(
|
|
|
|
'TITLE'=>$lang['hint_comments'],
|
|
|
|
'NAME'=>$lang['comments'],
|
|
|
|
'U_SUMMARY'=>add_session_id( 'comments.php' ),
|
|
|
|
));
|
|
|
|
|
2003-05-09 14:42:42 +02:00
|
|
|
// about link
|
2004-02-07 12:50:26 +01:00
|
|
|
$template->assign_block_vars('summary', array(
|
|
|
|
'TITLE'=>$lang['hint_about'],
|
|
|
|
'NAME'=>$lang['about'],
|
|
|
|
'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&', $_SERVER['QUERY_STRING'] ) )
|
|
|
|
));
|
|
|
|
|
2004-06-25 22:29:51 +02:00
|
|
|
//------------------------------------------------------ main part : thumbnails
|
2004-07-26 22:41:11 +02:00
|
|
|
if (isset($page['cat'])
|
|
|
|
and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0)
|
2004-09-01 23:39:29 +02:00
|
|
|
or in_array($page['cat'],
|
|
|
|
array('search'
|
|
|
|
,'most_visited'
|
|
|
|
,'recent_pics'
|
|
|
|
,'best_rated'
|
2004-11-16 00:13:24 +01:00
|
|
|
,'list'
|
2004-11-30 21:32:44 +01:00
|
|
|
,'fav'
|
2004-09-01 23:39:29 +02:00
|
|
|
))))
|
2003-05-09 14:42:42 +02:00
|
|
|
{
|
2004-06-25 22:29:51 +02:00
|
|
|
include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
|
2005-03-26 23:35:07 +01:00
|
|
|
|
|
|
|
if ('admin' == $user['status'])
|
|
|
|
{
|
|
|
|
$template->assign_block_vars('caddie', array());
|
|
|
|
}
|
2004-06-15 22:00:40 +02:00
|
|
|
}
|
2004-06-25 22:29:51 +02:00
|
|
|
elseif (isset($page['cat']) and $page['cat'] == 'calendar')
|
2004-06-15 22:00:40 +02:00
|
|
|
{
|
2004-06-25 22:29:51 +02:00
|
|
|
include(PHPWG_ROOT_PATH.'include/category_calendar.inc.php');
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
2004-06-25 22:29:51 +02:00
|
|
|
elseif (isset($page['cat']) and $page['cat'] == 'recent_cats')
|
2004-06-19 01:23:29 +02:00
|
|
|
{
|
2004-06-25 22:29:51 +02:00
|
|
|
include(PHPWG_ROOT_PATH.'include/category_recent_cats.inc.php');
|
2004-06-19 01:23:29 +02:00
|
|
|
}
|
2004-02-07 12:50:26 +01:00
|
|
|
else
|
2003-05-09 14:42:42 +02:00
|
|
|
{
|
2004-06-25 22:29:51 +02:00
|
|
|
include(PHPWG_ROOT_PATH.'include/category_subcats.inc.php');
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
|
|
|
//------------------------------------------------------- category informations
|
|
|
|
if ( isset ( $page['cat'] ) )
|
|
|
|
{
|
2004-03-26 18:08:09 +01:00
|
|
|
// upload a picture in the category
|
2004-11-13 14:43:53 +01:00
|
|
|
if (is_numeric($page['cat'])
|
|
|
|
and $page['cat_site_id'] == 1
|
|
|
|
and $page['cat_dir'] != ''
|
|
|
|
and $page['cat_uploadable'])
|
2003-05-09 14:42:42 +02:00
|
|
|
{
|
2004-03-26 18:08:09 +01:00
|
|
|
$url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['cat'];
|
2004-06-15 22:00:40 +02:00
|
|
|
$template->assign_block_vars(
|
|
|
|
'upload',
|
|
|
|
array('U_UPLOAD'=>add_session_id( $url ))
|
|
|
|
);
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
2004-02-07 12:50:26 +01:00
|
|
|
|
2004-06-15 22:00:40 +02:00
|
|
|
if ( $page['navigation_bar'] != ''
|
|
|
|
or ( isset( $page['comment'] ) and $page['comment'] != '' ) )
|
|
|
|
{
|
|
|
|
$template->assign_block_vars('cat_infos',array());
|
|
|
|
}
|
|
|
|
|
2004-02-07 12:50:26 +01:00
|
|
|
// navigation bar
|
|
|
|
if ( $page['navigation_bar'] != '' )
|
|
|
|
{
|
2004-06-15 22:00:40 +02:00
|
|
|
$template->assign_block_vars(
|
|
|
|
'cat_infos.navigation',
|
|
|
|
array('NAV_BAR' => $page['navigation_bar'])
|
|
|
|
);
|
2004-02-07 12:50:26 +01:00
|
|
|
}
|
|
|
|
// category comment
|
|
|
|
if ( isset( $page['comment'] ) and $page['comment'] != '' )
|
|
|
|
{
|
2004-06-15 22:00:40 +02:00
|
|
|
$template->assign_block_vars(
|
|
|
|
'cat_infos.comment',
|
|
|
|
array('COMMENTS' => $page['comment'])
|
|
|
|
);
|
2003-05-09 14:42:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
//------------------------------------------------------------ log informations
|
|
|
|
pwg_log( 'category', $page['title'] );
|
|
|
|
mysql_close();
|
2004-02-02 01:55:18 +01:00
|
|
|
|
2005-01-13 11:18:49 +01:00
|
|
|
$template->parse('category');
|
2004-02-22 03:43:13 +01:00
|
|
|
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
2004-02-12 00:20:38 +01:00
|
|
|
?>
|