Changeset 1569
- Timestamp:
- Oct 21, 2006, 2:07:00 PM (18 years ago)
- Location:
- branches/branch-1_6
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/admin/comments.php
r1151 r1569 47 47 $to_reject = array(); 48 48 49 if (isset($_POST['submit']) )49 if (isset($_POST['submit']) and !is_adviser()) 50 50 { 51 51 foreach (explode(',', $_POST['list']) as $comment_id) … … 69 69 } 70 70 } 71 else if (isset($_POST['validate-all']) and !empty($_POST['list']) )71 else if (isset($_POST['validate-all']) and !empty($_POST['list']) and !is_adviser()) 72 72 { 73 73 $to_validate = explode(',', $_POST['list']); 74 74 } 75 else if (isset($_POST['reject-all']) and !empty($_POST['list']) )75 else if (isset($_POST['reject-all']) and !empty($_POST['list']) and !is_adviser()) 76 76 { 77 77 $to_reject = explode(',', $_POST['list']); -
branches/branch-1_6/admin/configuration.php
r1249 r1569 54 54 // if the parameter is present in $_POST array (if a form is submited), we 55 55 // override it with the submited value 56 if (isset($_POST[$row['param']]) )56 if (isset($_POST[$row['param']]) and !is_adviser()) 57 57 { 58 58 $conf[$row['param']] = $_POST[$row['param']]; … … 64 64 } 65 65 //------------------------------ verification and registration of modifications 66 if (isset($_POST['submit']) )66 if (isset($_POST['submit']) and !is_adviser()) 67 67 { 68 68 $int_pattern = '/^\d+$/'; -
branches/branch-1_6/admin/notification_by_mail.php
r1520 r1569 420 420 while ($nbm_user = mysql_fetch_array($result)) 421 421 { 422 if (isset($_POST['param_submit']) )422 if (isset($_POST['param_submit']) and !is_adviser()) 423 423 { 424 424 if (isset($_POST[$nbm_user['param']])) … … 442 442 // if the parameter is present in $_POST array (if a form is submited), we 443 443 // override it with the submited value 444 if (isset($_POST[$nbm_user['param']]) )444 if (isset($_POST[$nbm_user['param']]) and !is_adviser()) 445 445 { 446 446 $conf[$nbm_user['param']] = stripslashes($_POST[$nbm_user['param']]); … … 462 462 case 'subscribe' : 463 463 { 464 if (isset($_POST['falsify']) and isset($_POST['cat_true'])) 465 { 466 $check_key_treated = unsubcribe_notification_by_mail(true, $_POST['cat_true']); 467 do_timeout_treatment('cat_true', $check_key_treated); 468 } 469 else 470 if (isset($_POST['trueify']) and isset($_POST['cat_false'])) 471 { 472 $check_key_treated = subcribe_notification_by_mail(true, $_POST['cat_false']); 473 do_timeout_treatment('cat_false', $check_key_treated); 464 if (!is_adviser()) 465 { 466 if (isset($_POST['falsify']) and isset($_POST['cat_true'])) 467 { 468 $check_key_treated = unsubcribe_notification_by_mail(true, $_POST['cat_true']); 469 do_timeout_treatment('cat_true', $check_key_treated); 470 } 471 else 472 if (isset($_POST['trueify']) and isset($_POST['cat_false'])) 473 { 474 $check_key_treated = subcribe_notification_by_mail(true, $_POST['cat_false']); 475 do_timeout_treatment('cat_false', $check_key_treated); 476 } 474 477 } 475 478 break; … … 478 481 case 'send' : 479 482 { 480 if (isset($_POST['send_submit']) and isset($_POST['send_selection']) and isset($_POST['send_customize_mail_content']) )483 if (isset($_POST['send_submit']) and isset($_POST['send_selection']) and isset($_POST['send_customize_mail_content']) and !is_adviser()) 481 484 { 482 485 $check_key_treated = do_action_send_mail_notification('send', $_POST['send_selection'], stripslashes($_POST['send_customize_mail_content'])); -
branches/branch-1_6/admin/picture_modify.php
r1504 r1569 71 71 } 72 72 73 if (isset($_POST['submit']) and count($page['errors']) == 0 )73 if (isset($_POST['submit']) and count($page['errors']) == 0 and !is_adviser()) 74 74 { 75 75 $data = array(); … … 120 120 if (isset($_POST['associate']) 121 121 and isset($_POST['cat_dissociated']) 122 and count($_POST['cat_dissociated']) > 0) 122 and count($_POST['cat_dissociated']) > 0 123 and !is_adviser() 124 ) 123 125 { 124 126 associate_images_to_categories( … … 130 132 if (isset($_POST['dissociate']) 131 133 and isset($_POST['cat_associated']) 132 and count($_POST['cat_associated']) > 0) 134 and count($_POST['cat_associated']) > 0 135 and !is_adviser() 136 ) 133 137 { 134 138 $query = ' … … 144 148 if (isset($_POST['elect']) 145 149 and isset($_POST['cat_dismissed']) 146 and count($_POST['cat_dismissed']) > 0) 150 and count($_POST['cat_dismissed']) > 0 151 and !is_adviser() 152 ) 147 153 { 148 154 $datas = array(); … … 160 166 if (isset($_POST['dismiss']) 161 167 and isset($_POST['cat_elected']) 162 and count($_POST['cat_elected']) > 0) 168 and count($_POST['cat_elected']) > 0 169 and !is_adviser() 170 ) 163 171 { 164 172 set_random_representant($_POST['cat_elected']); -
branches/branch-1_6/admin/tags.php
r1488 r1569 38 38 // +-----------------------------------------------------------------------+ 39 39 40 if (isset($_POST['submit']) )40 if (isset($_POST['submit']) and !is_adviser()) 41 41 { 42 42 $query = ' … … 111 111 // +-----------------------------------------------------------------------+ 112 112 113 if (isset($_POST['delete']) and isset($_POST['tags']) )113 if (isset($_POST['delete']) and isset($_POST['tags']) and !is_adviser()) 114 114 { 115 115 $query = ' … … 148 148 // +-----------------------------------------------------------------------+ 149 149 150 if (isset($_POST['add']) and !empty($_POST['add_tag']) )150 if (isset($_POST['add']) and !empty($_POST['add_tag']) and !is_adviser()) 151 151 { 152 152 $tag_name = $_POST['add_tag']; -
branches/branch-1_6/include/page_header.php
r1318 r1569 50 50 'DIR'=>$lang_info['direction'], 51 51 52 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled onclick="return false;"' : '') 52 // 'TAG_INPUT_ENABLED' => ((is_adviser()) ? 'disabled onclick="return false;"' : '') 53 'TAG_INPUT_ENABLED' => ((is_adviser()) ? '' : '') 53 54 )); 54 55 -
branches/branch-1_6/template/yoga/admin/comments.tpl
r1242 r1569 17 17 <input type="hidden" name="list" value="{LIST}" /> 18 18 <input type="submit" name="submit" value="{lang:Submit}" {TAG_INPUT_ENABLED}/> 19 <input type="submit" name="validate-all" value="{lang:Validate All}" />20 <input type="submit" name="reject-all" value="{lang:Reject All}" />19 <input type="submit" name="validate-all" value="{lang:Validate All}" {TAG_INPUT_ENABLED}/> 20 <input type="submit" name="reject-all" value="{lang:Reject All}" {TAG_INPUT_ENABLED}/> 21 21 <input type="reset" value="{lang:Reset}" /> 22 22 </p> -
branches/branch-1_6/template/yoga/admin/tags.tpl
r1445 r1569 46 46 47 47 <p> 48 <input type="submit" name="edit" value="{lang:Edit selected tags}" {TAG_INPUT_ENABLED}/>48 <input type="submit" name="edit" value="{lang:Edit selected tags}"/> 49 49 <input type="submit" name="delete" value="{lang:Delete selected tags}" onclick="return confirm('{lang:Are you sure?}');" {TAG_INPUT_ENABLED}/> 50 50 </p>
Note: See TracChangeset
for help on using the changeset viewer.