[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 20 # -------------------------------------------------------- 21 # $Id: account_sponsor_update.php,v 1.2.14.1 2007-10-13 22:32:22 giallu Exp $ 22 # -------------------------------------------------------- 23 ?> 24 <?php 25 # This page updates a user's information 26 # If an account is protected then changes are forbidden 27 # The page gets redirected back to account_page.php 28 ?> 29 <?php 30 require_once ( 'core.php' ); 31 32 $t_core_path = config_get( 'core_path' ); 33 34 require_once( $t_core_path.'email_api.php' ); 35 ?> 36 <?php 37 auth_ensure_user_authenticated(); 38 ?> 39 <?php 40 $f_bug_list = gpc_get_string( 'buglist', '' ); 41 $t_bug_list = explode( ',', $f_bug_list ); 42 43 foreach ( $t_bug_list as $t_bug ) { 44 list( $t_bug_id, $t_sponsor_id ) = explode( ':', $t_bug ); 45 $c_bug_id = (int) $t_bug_id; 46 47 bug_ensure_exists( $c_bug_id ); # dies if bug doesn't exist 48 49 access_ensure_bug_level( config_get( 'handle_sponsored_bugs_threshold' ), $c_bug_id ); # dies if user can't handle bug 50 51 $t_bug = bug_get( $c_bug_id ); 52 $t_sponsor = sponsorship_get( (int) $t_sponsor_id ); 53 54 $t_new_payment = gpc_get_int( 'sponsor_' . $c_bug_id . '_' . $t_sponsor->id, $t_sponsor->paid ); 55 if ( $t_new_payment != $t_sponsor->paid ) { 56 sponsorship_update_paid( $t_sponsor_id, $t_new_payment ); 57 } 58 } 59 60 $t_redirect = 'account_sponsor_page.php'; 61 html_page_top1(); 62 html_meta_redirect( $t_redirect ); 63 html_page_top2(); 64 65 echo '<br /><div align="center">'; 66 67 echo lang_get( 'payment_updated' ) . '<br />'; 68 69 echo lang_get( 'operation_successful' ) . '<br />'; 70 print_bracket_link( $t_redirect, lang_get( 'proceed' ) ); 71 echo '</div>'; 72 html_page_bottom1( __FILE__ ); 73 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |