Changeset 941280
- Timestamp:
- 06/30/2014 11:45:31 PM (12 years ago)
- Location:
- wp-member-page/trunk
- Files:
-
- 4 edited
-
dao/WpMemberPageDao.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-member-page.php (modified) (3 diffs)
-
wp-member-page.v12.suo (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
wp-member-page/trunk/dao/WpMemberPageDao.php
r940629 r941280 5 5 class WpMemberPageDao extends Dao{ 6 6 7 private $table; 8 9 public function __construct(){ 10 global $wpdb; 11 $this->table = $wpdb->prefix."member_page"; 12 } 13 7 14 public function search($array){ 8 $sql = "select * from wp_member_pagewhere ";15 $sql = "select * from {$this->table} where "; 9 16 $index = 0; 10 17 foreach($array as $key => $value){ … … 36 43 $password = $this -> quote_smart($this -> encryption($entity -> getPassword())); 37 44 global $wpdb; 38 $sql = $wpdb->prepare("update wp_member_pageset id = '%s',45 $sql = $wpdb->prepare("update {$this->table} set id = '%s', 39 46 post_id = '%s', 40 47 member_id = '%s', … … 50 57 $password = $this -> quote_smart($this -> encryption($entity -> getPassword())); 51 58 global $wpdb; 52 $sql = $wpdb->prepare("insert into wp_member_page(post_id,59 $sql = $wpdb->prepare("insert into {$this->table}(post_id, 53 60 member_id, 54 61 password) … … 63 70 $id = $this -> quote_smart($id); 64 71 global $wpdb; 65 $sql = $wpdb->prepare("delete from wp_member_pagewhere id = %s",$id);72 $sql = $wpdb->prepare("delete from {$this->table} where id = %s",$id); 66 73 return $this -> sendQuery($sql); 67 74 } -
wp-member-page/trunk/readme.txt
r940954 r941280 4 4 Requires at least: 3.0 5 5 Tested up to: 3.0 6 Stable tag: 1. 26 Stable tag: 1.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 29 29 = 1.2 = 30 30 * To change the display style of the first row and the first row of the member list page. 31 32 = 1.3 = 33 * It supports the site prefix is different in the same database. -
wp-member-page/trunk/wp-member-page.php
r940958 r941280 4 4 Plugin URI: http://www.elegants.biz/Products/WpMemberPage 5 5 Description: Plug-in to create a membership page with basic authentication. 6 Version: 1. 26 Version: 1.3 7 7 Author: momen2009 8 8 Author URI: http://www.elegants.biz/ … … 39 39 class WpMemberPage{ 40 40 41 var $table = "wp_member_page";41 var $table; 42 42 var $version = 0.1; 43 var $db_version; 43 44 44 45 function activate(){ … … 93 94 function __construct(){ 94 95 global $wpdb; 95 $this-> db = $wpdb->prefix.$this->db;96 $this->table = $wpdb->prefix."member_page"; 96 97 $this->db_version = get_option('afb_db_version', 0); 97 98 }
Note: See TracChangeset
for help on using the changeset viewer.