Changeset 656528
- Timestamp:
- 01/21/2013 09:54:27 PM (13 years ago)
- Location:
- praybox
- Files:
-
- 25 added
- 4 edited
-
tags/1.0.8 (added)
-
tags/1.0.8/css (added)
-
tags/1.0.8/css/gd-praybox-sc.css (added)
-
tags/1.0.8/css/gd-praybox.css (added)
-
tags/1.0.8/images (added)
-
tags/1.0.8/images/pblogo.png (added)
-
tags/1.0.8/images/praybox-logo.png (added)
-
tags/1.0.8/inc (added)
-
tags/1.0.8/inc/edit_request_form.php (added)
-
tags/1.0.8/inc/functions.php (added)
-
tags/1.0.8/inc/inc_admin_menu_hooks.php (added)
-
tags/1.0.8/inc/inc_display_pb_forms.php (added)
-
tags/1.0.8/inc/inc_display_pb_requests.php (added)
-
tags/1.0.8/inc/inc_install_func.php (added)
-
tags/1.0.8/inc/inc_pb_bannedips_page.php (added)
-
tags/1.0.8/inc/inc_pb_crons.php (added)
-
tags/1.0.8/inc/inc_pb_request_list_active_page.php (added)
-
tags/1.0.8/inc/inc_pb_request_list_archived_page.php (added)
-
tags/1.0.8/inc/inc_pb_request_list_closed_page.php (added)
-
tags/1.0.8/inc/inc_pb_request_list_flagged_page.php (added)
-
tags/1.0.8/inc/inc_pb_request_list_pending_page.php (added)
-
tags/1.0.8/inc/inc_pb_settings_page.php (added)
-
tags/1.0.8/inc/inc_update_func.php (added)
-
tags/1.0.8/praybox.php (added)
-
tags/1.0.8/readme.txt (added)
-
trunk/inc/functions.php (modified) (3 diffs)
-
trunk/inc/inc_pb_crons.php (modified) (1 diff)
-
trunk/praybox.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
praybox/trunk/inc/functions.php
r585375 r656528 17 17 function isIPBanned($ip){ 18 18 global $wpdb; 19 $result = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id)FROM ".$wpdb->prefix."pb_banned_ips WHERE ip_address='$ip'"));19 $result=count($wpdb->get_results("SELECT id FROM ".$wpdb->prefix."pb_banned_ips WHERE ip_address='$ip'")); 20 20 if($result==0){return "pass";}else{return "fail";} 21 21 } … … 46 46 function isDuplicate($fname,$lname,$email,$title,$ipaddy){ 47 47 global $wpdb; 48 $result = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id)FROM ".$wpdb->prefix."pb_requests WHERE first_name='$fname' AND last_name='$lname' AND email='$email' AND title='$title' AND ip_address='$ipaddy'"));48 $result = count($wpdb->get_results("SELECT id FROM ".$wpdb->prefix."pb_requests WHERE first_name='$fname' AND last_name='$lname' AND email='$email' AND title='$title' AND ip_address='$ipaddy'")); 49 49 if($result==0){return "pass";}else{return "fail";} 50 50 } … … 114 114 115 115 $active_requests=$wpdb->get_results("SELECT id,title,body,submitted $this_display_qry_from"); 116 $num_requests= $wpdb->get_var($wpdb->prepare("SELECT COUNT(id)$this_display_qry_from"));117 $total_num_requests= $wpdb->get_var($wpdb->prepare("SELECT COUNT(id)$total_display_qry_from"));116 $num_requests=count($wpdb->get_results("SELECT id $this_display_qry_from")); 117 $total_num_requests=count($wpdb->get_results("SELECT id $total_display_qry_from")); 118 118 119 119 $req_list_output.="<div id='praybox'>"; -
praybox/trunk/inc/inc_pb_crons.php
r585375 r656528 61 61 $request_id=$prayer->request_id; 62 62 63 $num_prayers= $wpdb->get_var($wpdb->prepare("SELECT COUNT(id)FROM ".$wpdb->prefix."pb_prayedfor WHERE prayedfor_date>'$onedayago' AND request_id='$request_id'"));63 $num_prayers=count($wpdb->get_var("SELECT id FROM ".$wpdb->prefix."pb_prayedfor WHERE prayedfor_date>'$onedayago' AND request_id='$request_id'")); 64 64 65 65 $prayer_request=$wpdb->get_row("SELECT first_name,last_name,email,title,notify,authcode FROM ".$wpdb->prefix."pb_requests WHERE id='$request_id'"); -
praybox/trunk/praybox.php
r585375 r656528 4 4 Plugin URI: http://www.praybox.com/ 5 5 Description: This is a plugin that facilitates intercessory prayer by allowing visitors to post prayer requests and/or respond to prayer requests that have been posted by clicking on a button indicating that the prayer request has been prayed for. At the end of each day, visitors who have submitted prayer requests receive an email that tells them how many times they have been prayed for that day. 6 Version: 1.0. 76 Version: 1.0.8 7 7 Author: Blazing Torch, Inc. 8 8 Author URI: http://www.blazingtorch.com -
praybox/trunk/readme.txt
r585375 r656528 4 4 Tags: church, pray, prayer, religion, ministry, prayer request, ministry tools 5 5 Requires at least: 3.0 6 Tested up to: 3. 4.17 Stable tag: 1.0. 76 Tested up to: 3.5 7 Stable tag: 1.0.8 8 8 9 9 PrayBox is a prayer request application that allows users to submit requests, or pray for existing requests, as well as allowing site administrators to manage prayer requests. … … 91 91 = August 14, 2012 - 1.0.7 = 92 92 * Updated url variable validation to protect against vulnerabilities. 93 94 = January 21, 2013 - 1.0.8 = 95 * Updated for better functionality in WP v3.5.
Note: See TracChangeset
for help on using the changeset viewer.