Ignore:
Timestamp:
Dec 13, 2006, 1:05:16 AM (18 years ago)
Author:
rub
Message:

Feature Issue ID 0000601: Filter all public pages with only recent elements

Last draft before final development.
There a icon for global mode and one other for local mode.

Counters are not good, filter on images are not everywhere applied, moment to update cache are not optimized, ...

Go to http://forum.phpwebgallery.net/viewtopic.php?id=9490

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r1648 r1651  
    5656  WHERE id_uppercat '.
    5757  (!isset($page['category']) ? 'is NULL' : '= '.$page['category']);
    58   if ($page['filter_mode'])
     58  if ($page['filter_local_mode'])
    5959  {
    6060    $query.= '
     
    8686  FROM '.CATEGORIES_TABLE.' AS c INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic
    8787    ON ic.category_id = c.id';
    88     if ($page['filter_mode'])
     88    if ($page['filter_local_mode'] or $user['filter_global_mode'])
    8989    {
    9090      $query.= '
     
    9494  WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\'
    9595    AND c.id NOT IN ('.$user['forbidden_categories'].')';
    96     if ($page['filter_mode'])
     96    if ($page['filter_local_mode'] or $user['filter_global_mode'])
    9797    {
    9898      $query.= '
     
    118118  WHERE uppercats REGEXP \'(^|,)'.$row['id'].'(,|$)\'
    119119    AND representative_picture_id IS NOT NULL';
    120     if ($page['filter_mode'])
     120    if ($page['filter_local_mode'] or $user['filter_global_mode'])
    121121    {
    122122      $query.= '
Note: See TracChangeset for help on using the changeset viewer.