From 0971ce48d217b7cc8081ae70c4b041ab23fdf29c Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 22 Mar 2006 01:01:47 +0000 Subject: 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) git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/user_perm.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'admin/user_perm.php') diff --git a/admin/user_perm.php b/admin/user_perm.php index fdd4be7eb..78409965e 100644 --- a/admin/user_perm.php +++ b/admin/user_perm.php @@ -92,19 +92,19 @@ SELECT id // an error (in SQL statement), so we need to know which categories are // accesible $authorized_ids = array(); - + $query = ' SELECT cat_id FROM '.USER_ACCESS_TABLE.' WHERE user_id = '.$page['user'].' ;'; $result = pwg_query($query); - + while ($row = mysql_fetch_array($result)) { array_push($authorized_ids, $row['cat_id']); } - + $inserts = array(); $to_autorize_ids = array_diff($private_uppercats, $authorized_ids); foreach ($to_autorize_ids as $to_autorize_id) @@ -137,7 +137,7 @@ $template->assign_vars( ), 'L_CAT_OPTIONS_TRUE'=>$lang['authorized'], 'L_CAT_OPTIONS_FALSE'=>$lang['forbidden'], - + 'F_ACTION' => PHPWG_ROOT_PATH. 'admin.php?page=user_perm'. @@ -177,7 +177,7 @@ if (mysql_num_rows($result) > 0) $template->assign_block_vars( 'groups.category', array( - 'NAME' => get_cat_display_name_cache($category['uppercats'], '', false) + 'NAME' => get_cat_display_name_cache($category['uppercats'], null, false) ) ); } @@ -197,7 +197,7 @@ if (count($group_authorized) > 0) $query_true.= ' ;'; display_select_cat_wrapper($query_true,array(),'category_option_true'); - + $result = pwg_query($query_true); $authorized_ids = array(); while ($row = mysql_fetch_array($result)) -- cgit v1.2.3