Changeset 3809480
- Timestamp:
- 11/18/2026 02:25:00 PM (less than one hour ago)
- Location:
- church-admin
- Files:
-
- 11 edited
-
tags/5.1.11/.DS_Store (modified) ( previous)
-
tags/5.1.12/church-admin.php (modified) (2 diffs)
-
tags/5.1.12/display/calendar-list.php (modified) (1 diff)
-
tags/5.1.12/includes/directory.php (modified) (5 diffs)
-
tags/5.1.12/includes/email.php (modified) (2 diffs)
-
tags/5.1.12/includes/settings.php (modified) (2 diffs)
-
trunk/church-admin.php (modified) (2 diffs)
-
trunk/display/calendar-list.php (modified) (1 diff)
-
trunk/includes/directory.php (modified) (5 diffs)
-
trunk/includes/email.php (modified) (2 diffs)
-
trunk/includes/settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
church-admin/tags/5.1.12/church-admin.php
r3803612 r3809480 5 5 Plugin URI: http://www.churchadminplugin.com/ 6 6 Description: Manage church life with address book, schedule, classes, small groups, and advanced communication tools - bulk email and sms. 7 Version: 5.1.1 17 Version: 5.1.12 8 8 Tags: sermons, sermons, prayer, membership, SMS, Bible, events, calendar, email, small groups, contact form, giving, administration, management, child protection, safeguarding 9 9 Author: Andy Moyle … … 51 51 52 52 */ 53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.1 1');}53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.12');} 54 54 55 55 define('CA_PAYPAL',"https://www.paypal.com/cgi-bin/webscr"); -
church-admin/tags/5.1.12/display/calendar-list.php
r3803612 r3809480 122 122 {//Chooser 123 123 $out.='<table class="ca-calendar-list-chooser widefat striped bordered"><tr><td class="ca-calendar-list-prev">'; 124 $out.='<form action="'.get_permalink().'" method="post"><input type="hidden" name="date" value="'. $prevDisplay.'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';124 $out.='<form action="'.get_permalink().'" method="post"><input type="hidden" name="date" value="'.esc_attr($prevDisplay).'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>'; 125 125 126 126 -
church-admin/tags/5.1.12/includes/directory.php
r3803612 r3809480 2850 2850 foreach( $church_admin_marital_status AS $id=>$type) 2851 2851 { 2852 $out.='<option value="'. $id.'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";2852 $out.='<option value="'.esc_attr($id).'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n"; 2853 2853 } 2854 2854 $out.='</select></div>'."\r\n"; … … 2863 2863 if(!empty( $data->people_type_id)&& $id==$data->people_type_id) 2864 2864 { 2865 $first='<option value="'. $id.'" selected="selected">'.$type.'</option>'."\r\n";2866 }else $option.='<option value="'. $id.'">'.$type.'</option>'."\r\n";2865 $first='<option value="'.esc_attr($id).'" selected="selected">'.$type.'</option>'."\r\n"; 2866 }else $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'."\r\n"; 2867 2867 2868 2868 … … 2895 2895 { 2896 2896 if(!empty( $data->member_type_id) && $data->member_type_id==$id) 2897 { $first.= '<option value="'. $id.'" selected="selected" >'.$type.'</option>';2897 { $first.= '<option value="'.esc_attr($id).'" selected="selected" >'.$type.'</option>'; 2898 2898 } 2899 2899 else 2900 2900 { 2901 $option.='<option value="'. $id.'">'.$type.'</option>';2901 $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'; 2902 2902 } 2903 2903 } … … 5341 5341 5342 5342 } 5343 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'. __('Save','church-admin').'" ></p></form>';5343 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.esc_attr(__('Save','church-admin')).'" ></p></form>'; 5344 5344 } 5345 5345 … … 5385 5385 echo'<p><input type="checkbox" name="bible_readings"> '.esc_html('New Bible readings by email','church-admin').'</p>'; 5386 5386 5387 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'. __('Save','church-admin').'"></p></form>';5387 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.esc_attr(__('Save','church-admin')).'"></p></form>'; 5388 5388 } 5389 5389 } -
church-admin/tags/5.1.12/includes/email.php
r3809470 r3809480 479 479 echo'<p>'.esc_html('Please note schedule below uses "wp-cron" which sends the emails behind the scenes when the website is viewed after the schedule time.','church-admin').'</p>'; 480 480 echo'<div class="church-admin-form-group"><label>'.esc_html( __('Or schedule?','church-admin' ) ).'</label>'; 481 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post(). 481 482 echo church_admin_date_picker(null,'send_date',FALSE,wp_date('Y-m-d'),NULL,'send-date','send_date',FALSE,'send-date',NULL,NULL); 482 483 //( $db_date=null,$name=null,$array=FALSE,$start=NULL,$end=NULL,$class=NULL,$id=NULL,$disabled=FALSE,$datawhat=NULL,$dataid=NULL,$dataCustomID=NULL) … … 522 523 } 523 524 $member_type=church_admin_member_types_array(); 525 524 526 echo'<p><label>'.esc_html( __('Type in recipient names, separated by a comma (filters will be ignored)','church-admin' ) ).'</label>'; 527 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post(). 525 528 echo church_admin_autocomplete('recipients','friends','to','').'</p>'; 526 529 echo'<p>'.esc_html( __('Or use the filters below','church-admin' ) ).'</p>'; -
church-admin/tags/5.1.12/includes/settings.php
r3809470 r3809480 1010 1010 echo'<p>'.esc_html( __('If you add people types to "Adult", "Child"/"Teen" the shortcode [church_admin type="address-list"] will not work as expected! Use [church_admin type="directory"] instead','church-admin' ) ).'</p>'; 1011 1011 echo'<p><a class="button-primary" href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=edit_people_type','edit_people_type')).'">'.esc_html( __('Add People Type','church-admin' ) ).'</a></p>'; 1012 $thead='<tr><th>'. esc_html( __('Edit','church-admin' ) ).'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'.esc_html( __('People Type','church-admin' ) ).'</th></tr>';1013 echo'<table class="widefat"><thead>'. $thead.'</thead><tfoot>'.$thead.'</tfoot><tbody>';1012 $thead='<tr><th>'. __('Edit','church-admin' ) .'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'. __('People Type','church-admin' ) .'</th></tr>'; 1013 echo'<table class="widefat"><thead>'.wp_kses_post($thead).'</thead><tbody>'; 1014 1014 $people_types=get_option('church_admin_people_type'); 1015 1015 foreach( $people_types AS $ID=>$type) … … 1017 1017 $edit='<a href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=edit_people_type&ID='.(int)$ID,'edit_people_type')).'">'.esc_html( __('Edit','church-admin' ) ).'</a>'; 1018 1018 if( $ID>2) {$delete='<a onclick="return confirm(\''.esc_js( __('Are you sure?','church-admin' ) ).'\');" href="'.wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=delete_people_type&ID='.(int)$ID,'delete_people_type').'">'.esc_html( __('Delete','church-admin' ) ).'</a>';}else{$delete=' ';} 1019 echo'<tr><td>'. $edit.'</td><td>'.$delete.'</td><td>'.esc_html( $type).'</td></tr>';1019 echo'<tr><td>'.wp_kses_post($edit).'</td><td>'.wp_kses_post($delete).'</td><td>'.esc_html( $type).'</td></tr>'; 1020 1020 } 1021 echo'</tbody>< /table>';1021 echo'</tbody><tfoot>'.wp_kses_post($thead).'</tfoot></table>'; 1022 1022 1023 1023 } -
church-admin/trunk/church-admin.php
r3803612 r3809480 5 5 Plugin URI: http://www.churchadminplugin.com/ 6 6 Description: Manage church life with address book, schedule, classes, small groups, and advanced communication tools - bulk email and sms. 7 Version: 5.1.1 17 Version: 5.1.12 8 8 Tags: sermons, sermons, prayer, membership, SMS, Bible, events, calendar, email, small groups, contact form, giving, administration, management, child protection, safeguarding 9 9 Author: Andy Moyle … … 51 51 52 52 */ 53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.1 1');}53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.12');} 54 54 55 55 define('CA_PAYPAL',"https://www.paypal.com/cgi-bin/webscr"); -
church-admin/trunk/display/calendar-list.php
r3803612 r3809480 122 122 {//Chooser 123 123 $out.='<table class="ca-calendar-list-chooser widefat striped bordered"><tr><td class="ca-calendar-list-prev">'; 124 $out.='<form action="'.get_permalink().'" method="post"><input type="hidden" name="date" value="'. $prevDisplay.'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';124 $out.='<form action="'.get_permalink().'" method="post"><input type="hidden" name="date" value="'.esc_attr($prevDisplay).'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>'; 125 125 126 126 -
church-admin/trunk/includes/directory.php
r3803612 r3809480 2850 2850 foreach( $church_admin_marital_status AS $id=>$type) 2851 2851 { 2852 $out.='<option value="'. $id.'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";2852 $out.='<option value="'.esc_attr($id).'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n"; 2853 2853 } 2854 2854 $out.='</select></div>'."\r\n"; … … 2863 2863 if(!empty( $data->people_type_id)&& $id==$data->people_type_id) 2864 2864 { 2865 $first='<option value="'. $id.'" selected="selected">'.$type.'</option>'."\r\n";2866 }else $option.='<option value="'. $id.'">'.$type.'</option>'."\r\n";2865 $first='<option value="'.esc_attr($id).'" selected="selected">'.$type.'</option>'."\r\n"; 2866 }else $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'."\r\n"; 2867 2867 2868 2868 … … 2895 2895 { 2896 2896 if(!empty( $data->member_type_id) && $data->member_type_id==$id) 2897 { $first.= '<option value="'. $id.'" selected="selected" >'.$type.'</option>';2897 { $first.= '<option value="'.esc_attr($id).'" selected="selected" >'.$type.'</option>'; 2898 2898 } 2899 2899 else 2900 2900 { 2901 $option.='<option value="'. $id.'">'.$type.'</option>';2901 $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'; 2902 2902 } 2903 2903 } … … 5341 5341 5342 5342 } 5343 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'. __('Save','church-admin').'" ></p></form>';5343 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.esc_attr(__('Save','church-admin')).'" ></p></form>'; 5344 5344 } 5345 5345 … … 5385 5385 echo'<p><input type="checkbox" name="bible_readings"> '.esc_html('New Bible readings by email','church-admin').'</p>'; 5386 5386 5387 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'. __('Save','church-admin').'"></p></form>';5387 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.esc_attr(__('Save','church-admin')).'"></p></form>'; 5388 5388 } 5389 5389 } -
church-admin/trunk/includes/email.php
r3809470 r3809480 479 479 echo'<p>'.esc_html('Please note schedule below uses "wp-cron" which sends the emails behind the scenes when the website is viewed after the schedule time.','church-admin').'</p>'; 480 480 echo'<div class="church-admin-form-group"><label>'.esc_html( __('Or schedule?','church-admin' ) ).'</label>'; 481 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post(). 481 482 echo church_admin_date_picker(null,'send_date',FALSE,wp_date('Y-m-d'),NULL,'send-date','send_date',FALSE,'send-date',NULL,NULL); 482 483 //( $db_date=null,$name=null,$array=FALSE,$start=NULL,$end=NULL,$class=NULL,$id=NULL,$disabled=FALSE,$datawhat=NULL,$dataid=NULL,$dataCustomID=NULL) … … 522 523 } 523 524 $member_type=church_admin_member_types_array(); 525 524 526 echo'<p><label>'.esc_html( __('Type in recipient names, separated by a comma (filters will be ignored)','church-admin' ) ).'</label>'; 527 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post(). 525 528 echo church_admin_autocomplete('recipients','friends','to','').'</p>'; 526 529 echo'<p>'.esc_html( __('Or use the filters below','church-admin' ) ).'</p>'; -
church-admin/trunk/includes/settings.php
r3809470 r3809480 1010 1010 echo'<p>'.esc_html( __('If you add people types to "Adult", "Child"/"Teen" the shortcode [church_admin type="address-list"] will not work as expected! Use [church_admin type="directory"] instead','church-admin' ) ).'</p>'; 1011 1011 echo'<p><a class="button-primary" href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=edit_people_type','edit_people_type')).'">'.esc_html( __('Add People Type','church-admin' ) ).'</a></p>'; 1012 $thead='<tr><th>'. esc_html( __('Edit','church-admin' ) ).'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'.esc_html( __('People Type','church-admin' ) ).'</th></tr>';1013 echo'<table class="widefat"><thead>'. $thead.'</thead><tfoot>'.$thead.'</tfoot><tbody>';1012 $thead='<tr><th>'. __('Edit','church-admin' ) .'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'. __('People Type','church-admin' ) .'</th></tr>'; 1013 echo'<table class="widefat"><thead>'.wp_kses_post($thead).'</thead><tbody>'; 1014 1014 $people_types=get_option('church_admin_people_type'); 1015 1015 foreach( $people_types AS $ID=>$type) … … 1017 1017 $edit='<a href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=edit_people_type&ID='.(int)$ID,'edit_people_type')).'">'.esc_html( __('Edit','church-admin' ) ).'</a>'; 1018 1018 if( $ID>2) {$delete='<a onclick="return confirm(\''.esc_js( __('Are you sure?','church-admin' ) ).'\');" href="'.wp_nonce_url('admin.php?page=church_admin/index.php§ion=settings&action=delete_people_type&ID='.(int)$ID,'delete_people_type').'">'.esc_html( __('Delete','church-admin' ) ).'</a>';}else{$delete=' ';} 1019 echo'<tr><td>'. $edit.'</td><td>'.$delete.'</td><td>'.esc_html( $type).'</td></tr>';1019 echo'<tr><td>'.wp_kses_post($edit).'</td><td>'.wp_kses_post($delete).'</td><td>'.esc_html( $type).'</td></tr>'; 1020 1020 } 1021 echo'</tbody>< /table>';1021 echo'</tbody><tfoot>'.wp_kses_post($thead).'</tfoot></table>'; 1022 1022 1023 1023 }
Note:
See TracChangeset
for help on using the changeset viewer.