Changeset 9723
- Timestamp:
- Mar 16, 2011, 1:45:47 AM (14 years ago)
- Location:
- extensions/autoupdate/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/autoupdate/trunk/ajax/ignore_list.php
r9712 r9723 7 7 8 8 check_status(ACCESS_ADMINISTRATOR); 9 check_pwg_token(); 9 10 10 11 if (isset($_POST['reset'])) -
extensions/autoupdate/trunk/ajax/update_language.php
r9712 r9723 7 7 8 8 check_status(ACCESS_ADMINISTRATOR); 9 check_pwg_token(); 9 10 10 11 if (!is_webmaster()) -
extensions/autoupdate/trunk/ajax/update_plugin.php
r9712 r9723 10 10 11 11 check_status(ACCESS_ADMINISTRATOR); 12 check_pwg_token(); 12 13 13 14 if (!is_webmaster()) … … 88 89 . '?revision=' . $revision 89 90 . '&id=' . $plugin_id 90 . '&reactivate=true'); 91 . '&reactivate=true' 92 . '&pwg_token=' . get_pwg_token() 93 ); 91 94 } 92 95 … … 104 107 . '?id=' . $plugin_id 105 108 . '&upgradestatus='.$upgrade_status 109 . '&pwg_token=' . get_pwg_token() 106 110 ); 107 111 -
extensions/autoupdate/trunk/ajax/update_theme.php
r9712 r9723 7 7 8 8 check_status(ACCESS_ADMINISTRATOR); 9 check_pwg_token(); 9 10 10 11 if (!is_webmaster()) -
extensions/autoupdate/trunk/template/autoupdate.js
r9721 r9723 15 15 jQuery.post( 16 16 "plugins/autoupdate/ajax/ignore_list.php", 17 { reset: true },17 { reset: true, pwg_token: pwg_token }, 18 18 function(data) { 19 19 if (data == "ok") { … … 60 60 type: 'POST', 61 61 url: 'plugins/autoupdate/ajax/update_'+type+'.php', 62 data: { id: id, revision: revision },62 data: { id: id, revision: revision, pwg_token: pwg_token }, 63 63 success: function(data) { 64 64 if (data['result']) { … … 109 109 jQuery.post( 110 110 "plugins/autoupdate/ajax/ignore_list.php", 111 { type: type+'s', id: id },111 { type: type+'s', id: id, pwg_token: pwg_token }, 112 112 function(data) { 113 113 if (data == "ok") { -
extensions/autoupdate/trunk/template/update_ext.tpl
r9721 r9723 4 4 5 5 {footer_script require='jquery.autoupdate,jquery.effects.blind,jquery.jgrowl'} 6 var pwg_token = '{$PWG_TOKEN}'; 6 7 var extList = new Array(); 7 8 var confirmMsg = '{'Are you sure?'|@translate|@escape:'javascript'}'; -
extensions/autoupdate/trunk/update_ext.inc.php
r9712 r9723 112 112 $template->assign('update_languages', $update_languages); 113 113 $template->assign('SHOW_RESET', (!empty($conf['AU_ignore']['plugins']) or !empty($conf['AU_ignore']['themes']) or !empty($conf['AU_ignore']['languages']))); 114 $template->assign('PWG_TOKEN', get_pwg_token()); 114 115 $template->set_filename('plugin_admin_content', realpath(AUTOUPDATE_PATH.'template/update_ext.tpl')); 115 116 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
Note: See TracChangeset
for help on using the changeset viewer.