Changeset 713030
- Timestamp:
- 05/14/2013 05:25:33 PM (13 years ago)
- Location:
- simplr-registration-form/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (2 diffs)
-
simplr_reg_options.php (modified) (2 diffs)
-
simplr_reg_page.php (modified) (5 diffs)
-
views/moderation.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simplr-registration-form/trunk/readme.txt
r711000 r713030 4 4 Tags: registration, signup, wordpress 3.5, cms, users, user management 5 5 Requires at least: 3.0 6 Tested up to: 3. 57 Stable tag: 2.2. 06 Tested up to: 3.6 7 Stable tag: 2.2.1 8 8 9 9 This plugin allows users to easily add a custom user registration form anywhere on their site using simple shortcode. … … 134 134 -enhancement: use new wp-media-modal instead of thickbox 135 135 -feature: integrate custom fields with admin tables 136 137 = 2.2.1 = 138 -Fix for PHP 5.2 backward compatibility -
simplr-registration-form/trunk/simplr_reg_options.php
r710995 r713030 90 90 } 91 91 92 #reg-form input , #reg-form select, #reg-form textarea {92 #reg-form input[type=text], #reg-form select, #reg-form textarea { 93 93 float:left; 94 94 margin:10px 0; … … 113 113 114 114 #sortable .item input { 115 margin -right:5px;115 margin:0 5px 0 0; 116 116 } 117 117 small { -
simplr-registration-form/trunk/simplr_reg_page.php
r710997 r713030 2 2 /* 3 3 Plugin Name: Simplr User Registration Form Plus 4 Version: 2.2. 04 Version: 2.2.1 5 5 Description: This a simple plugin for adding a custom user registration form to any post or page using shortcode. 6 6 Author: Mike Van Winkle … … 9 9 License: GPL 10 10 */ 11 //ini_set('display_errors', 1);error_reporting(E_ALL);12 11 //constants 13 12 define("SIMPLR_URL", rtrim(WP_PLUGIN_URL,'/') . '/'.basename(dirname(__FILE__)) ); … … 641 640 642 641 function simplr_print_message() { 643 $simplr_messages = @$_COOKIE['simplr_messages'] ? : false;642 $simplr_messages = @$_COOKIE['simplr_messages'] ? $_COOKIE['simplr_messages'] : false; 644 643 $messages = stripslashes($simplr_messages); 645 644 $messages = str_replace('[','',str_replace(']','',$messages)); … … 723 722 $simplr_reg->stylesheet = $data['stylesheet']; 724 723 $simplr_reg->styles = $data['styles']; 725 $simplr_reg->style_skin = @$data['style_skin'] ? : 'default.css';724 $simplr_reg->style_skin = @$data['style_skin'] ? $data['style_skin'] : 'default.css'; 726 725 $simplr_reg->register_redirect = $data['register_redirect']; 727 726 $simplr_reg->thank_you = $data['thank_you']; … … 892 891 if( $screen->base != 'users' ) return $query; 893 892 894 $var = @$_REQUEST['orderby'] ? : false;893 $var = @$_REQUEST['orderby'] ? $_REQUEST['orderby'] : false; 895 894 if( !$var ) return $query; 896 895 //these fields are already sortable by wordpress 897 896 if( in_array( $var, array('first_name','last_name','email','login','name') ) ) return $query; 898 $order = @ esc_attr($_REQUEST['order']) ?: '';897 $order = @$_REQUEST['order'] ? esc_attr($_REQUEST['order']) : ''; 899 898 //get our custom fields 900 899 $cols = new SREG_Fields(); -
simplr-registration-form/trunk/views/moderation.php
r710995 r713030 13 13 //setup defaults 14 14 foreach($defaults as $k => $v ) { 15 $simplr_reg->$k = $simplr_reg->$k ? : $defaults->$k;15 $simplr_reg->$k = $simplr_reg->$k ? $simplr_reg->$k : $defaults->$k; 16 16 } 17 17 if(isset($data['mod-submit'])) { 18 18 if(!wp_verify_nonce(-1, $data['reg-mod']) && !current_user_can('manage_options')){ wp_die('Death to hackers!');} 19 19 foreach($data as $k => $v) { 20 $simplr_reg->$k = $v ? : $defaults->$k;20 $simplr_reg->$k = $v ? $v : $defaults->$k; 21 21 } 22 22 update_option('simplr_reg_options', $simplr_reg);
Note: See TracChangeset
for help on using the changeset viewer.