diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-04-23 23:47:02 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-04-23 23:47:02 +0000 |
commit | d0294316440bd2100b95cd84a58e2bca645e188d (patch) | |
tree | 790d671d8c4076244482b0185539acfe4e63da92 /admin | |
parent | 85efba1370bdc79b84d900955ba10dc0d71a7743 (diff) |
permalinks not administrable by advisors
git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1974 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/permalinks.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/admin/permalinks.php b/admin/permalinks.php index f82f88fd7..cbbbbc4e5 100644 --- a/admin/permalinks.php +++ b/admin/permalinks.php @@ -26,7 +26,8 @@ function parse_sort_variables( $sortable_by, $default_field, $get_param, $get_rejects, - $template_var ) + $template_var, + $anchor = '' ) { global $template; @@ -66,7 +67,7 @@ function parse_sort_variables( if ( isset($template_var) ) { $template->assign_var( $template_var.strtoupper($field), - '<a href="'.$url.'" title="'.l10n('Sort order').'">'.$disp.'</a>' + '<a href="'.$url.$anchor.'" title="'.l10n('Sort order').'">'.$disp.'</a>' ); } } @@ -78,7 +79,7 @@ if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); include_once(PHPWG_ROOT_PATH.'admin/include/functions_permalinks.php'); $selected_cat = array(); -if ( isset($_POST['set_permalink']) and $_POST['cat_id']>0 ) +if ( isset($_POST['set_permalink']) and $_POST['cat_id']>0 and !is_adviser() ) { $permalink = $_POST['permalink']; if ( empty($permalink) ) @@ -87,7 +88,7 @@ if ( isset($_POST['set_permalink']) and $_POST['cat_id']>0 ) set_cat_permalink($_POST['cat_id'], $permalink, isset($_POST['save']) ); $selected_cat = array( $_POST['cat_id'] ); } -elseif ( isset($_GET['delete_permanent']) ) +elseif ( isset($_GET['delete_permanent']) and !is_adviser() ) { $query = ' DELETE FROM '.OLD_PERMALINKS_TABLE.' @@ -153,7 +154,7 @@ $sort_by = parse_sort_variables( array('cat_id','permalink','date_deleted','last_hit','hit'), null, 'dpsf', array('delete_permanent'), - 'SORT_OLD_' ); + 'SORT_OLD_', '#old_permalinks' ); $url_del_base = get_root_url().'admin.php?page=permalinks'; $query = 'SELECT * FROM '.OLD_PERMALINKS_TABLE; |