Ignore:
Timestamp:
Feb 12, 2006, 10:52:16 PM (19 years ago)
Author:
plg
Message:

improvement: $pagewhere string replaced by $pageitems.
$pagewhere was an SQL clause used to retrieve pictures in #images
table. $pageitems is the list of picture ids of the current section.

improvement: function initialize_category replaced by dedicated included PHP
script include/section_init.inc.php. Code was refactored to improve
readibility and maintenability. $pagenavigation_bar is now build in
category.php instead of initialize_category function. Function check_cat_id
was also replaced by a piece of code in the new file. The file to include to
display thumbnails from category.php is now set in section_init.inc.php
instead of calculated in category.php.

bug fix: the test for rel="up" link for standard HTML navigation links in
category menu was not working with non numeric categories, such as
"favorites".

improvement: function check_login_authorization removed because useless but
in profile.php.

File:
1 edited

Legend:

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

    r906 r1036  
    101101}
    102102
    103 function check_login_authorization($guest_allowed = true)
    104 {
    105   global $user,$lang,$conf,$template;
    106 
    107   if ($user['is_the_guest'] and !$guest_allowed)
    108   {
    109     echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
    110     echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
    111     exit();
    112   }
    113 
    114   if ($conf['gallery_locked'])
    115   {
    116     echo '<div style="text-align:center;">';
    117     echo $lang['gallery_locked_message'];
    118     echo '</div>';
    119     if ($user['status'] != 'admin')
    120     {
    121       exit();
    122     }
    123   }
    124 }
    125 
    126103function setup_style($style)
    127104{
Note: See TracChangeset for help on using the changeset viewer.