Ignore:
Timestamp:
Mar 22, 2006, 2:01:47 AM (18 years ago)
Author:
rvelices
Message:

URL rewriting: capable of fully working with urls without ?

URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)

URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)

fix: picture category display in upper bar

fix: function rate_picture variables and use of the new user type

fix: caddie icon appears now on category page

fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)

fix: replaced some old $_GET[xxx] with $page[xxx]

fix: pictures have metadata url (use ? parameter - might change later)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_perm.php

    r1072 r1092  
    9393  // accesible
    9494  $authorized_ids = array();
    95    
     95
    9696  $query = '
    9797SELECT cat_id
     
    100100;';
    101101  $result = pwg_query($query);
    102  
     102
    103103  while ($row = mysql_fetch_array($result))
    104104  {
    105105    array_push($authorized_ids, $row['cat_id']);
    106106  }
    107  
     107
    108108  $inserts = array();
    109109  $to_autorize_ids = array_diff($private_uppercats, $authorized_ids);
     
    138138    'L_CAT_OPTIONS_TRUE'=>$lang['authorized'],
    139139    'L_CAT_OPTIONS_FALSE'=>$lang['forbidden'],
    140    
     140
    141141    'F_ACTION' =>
    142142        PHPWG_ROOT_PATH.
     
    178178      'groups.category',
    179179      array(
    180         'NAME' => get_cat_display_name_cache($category['uppercats'], '', false)
     180        'NAME' => get_cat_display_name_cache($category['uppercats'], null, false)
    181181        )
    182182      );
     
    198198;';
    199199display_select_cat_wrapper($query_true,array(),'category_option_true');
    200  
     200
    201201$result = pwg_query($query_true);
    202202$authorized_ids = array();
Note: See TracChangeset for help on using the changeset viewer.