Changeset 1036 for trunk/upload.php


Ignore:
Timestamp:
Feb 12, 2006, 10:52:16 PM (18 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/upload.php

    r1004 r1036  
    113113
    114114//-------------------------------------------------- access authorization check
    115 check_login_authorization();
    116 check_cat_id( $_GET['cat'] );
    117 if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
     115if (is_numeric($_GET['cat']))
     116{
     117  $page['cat'] = $_GET['cat'];
     118}
     119
     120if (isset($page['cat']))
    118121{
    119122  check_restrictions( $page['cat'] );
Note: See TracChangeset for help on using the changeset viewer.