Changeset 2803598
- Timestamp:
- 10/24/2022 06:04:06 PM (3 years ago)
- Location:
- hngamers-atavism-user-verification
- Files:
-
- 6 edited
- 1 copied
-
tags/0.0.3 (copied) (copied from hngamers-atavism-user-verification/trunk)
-
tags/0.0.3/atavism-verify.php (modified) (4 diffs)
-
tags/0.0.3/readme.txt (modified) (2 diffs)
-
tags/0.0.3/templates/hngamers-atavism-verify-user.php (modified) (2 diffs)
-
trunk/atavism-verify.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/templates/hngamers-atavism-verify-user.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hngamers-atavism-user-verification/tags/0.0.3/atavism-verify.php
r2802987 r2803598 12 12 * Plugin URI: https://hngamers.com/courses/development/atavism/atavism-wordpress-cms/ 13 13 * Description: This is the user verification plugin for the HNG Core Atavism series and allows users to verify and log into the game server from the wordpress logins. 14 * Version: 0.0. 214 * Version: 0.0.3 15 15 * Author: thevisad 16 16 * Author URI: https://hngamers.com/ … … 81 81 "subscribers_only" => "1", 82 82 "email_login" => "1", 83 "pmp_subscription_id" => "1" 83 "pmp_subscription_id" => "1", 84 "atavism_loginserver_ip" => "1" 85 84 86 85 87 ); … … 117 119 add_settings_field('email_login', "Use Emails as login?", array( $this,'hngamers_atavism_user_verify_plugin_email_login_dropdown_fn'), __FILE__, 'hngamers_atavism_user_verify_plugin'); 118 120 add_settings_field('pmp_subscription_id', 'Paid memberships Pro Subscription ID', array( $this,'hngamers_atavism_user_verify_plugin_setting_string'), __FILE__, 'hngamers_atavism_user_verify_plugin', 'pmp_subscription_id'); 121 add_settings_field('atavism_loginserver_ip', 'Comma Separated Server IP list', array( $this,'hngamers_atavism_user_verify_plugin_setting_string'), __FILE__, 'hngamers_atavism_user_verify_plugin', 'atavism_loginserver_ip'); 122 119 123 } 120 124 … … 178 182 $input['subscribers_only'] = wp_filter_nohtml_kses($input['subscribers_only']); 179 183 $input['email_login'] = wp_filter_nohtml_kses($input['email_login']); 180 184 $input['atavism_loginserver_ip'] = wp_filter_nohtml_kses($input['atavism_loginserver_ip']); 181 185 $input['pmp_subscription_id'] = wp_filter_nohtml_kses($input['pmp_subscription_id']); 182 186 -
hngamers-atavism-user-verification/tags/0.0.3/readme.txt
r2802987 r2803598 5 5 Tested up to: 6.0 6 6 Requires PHP: 5.6 7 Stable tag: 0.0. 27 Stable tag: 0.0.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 29 29 30 30 == Changelog == 31 = 0.0.3 = 32 Add IP verification process to ensure that only the Atavism Server can reach out to the verify script. Must add the servers IP to the admin page, that will be calling the script in order to proceed. 33 31 34 = 0.0.2 = 32 35 Minor corrections changes -
hngamers-atavism-user-verification/tags/0.0.3/templates/hngamers-atavism-verify-user.php
r2802987 r2803598 8 8 { 9 9 $options = get_option('hngamers_atavism_user_verify_plugin_options'); 10 $allowlist = preg_split ("/\,/", $options['atavism_loginserver_ip']); 11 12 if (!in_array($_SERVER['REMOTE_ADDR'], $allowlist)) { 13 return; 14 } 15 10 16 $subscribers_only = $options['subscribers_only']; 11 17 if($subscribers_only == 2) … … 106 112 } 107 113 else { 108 echo(esc_html( '-1, user not found orwrong pass' ));114 echo(esc_html( '-1, wrong pass' )); 109 115 } 110 116 }else{ 111 echo(esc_html( '-1, user not found or wrong pass' ));117 echo(esc_html( '-1, user not found' )); 112 118 } 113 119 } 114 120 else 115 121 { 116 echo(esc_html( '-1, user not found or wrong pass' ));122 echo(esc_html( '-1, user not found' )); 117 123 } 118 124 } -
hngamers-atavism-user-verification/trunk/atavism-verify.php
r2802987 r2803598 12 12 * Plugin URI: https://hngamers.com/courses/development/atavism/atavism-wordpress-cms/ 13 13 * Description: This is the user verification plugin for the HNG Core Atavism series and allows users to verify and log into the game server from the wordpress logins. 14 * Version: 0.0. 214 * Version: 0.0.3 15 15 * Author: thevisad 16 16 * Author URI: https://hngamers.com/ … … 81 81 "subscribers_only" => "1", 82 82 "email_login" => "1", 83 "pmp_subscription_id" => "1" 83 "pmp_subscription_id" => "1", 84 "atavism_loginserver_ip" => "1" 85 84 86 85 87 ); … … 117 119 add_settings_field('email_login', "Use Emails as login?", array( $this,'hngamers_atavism_user_verify_plugin_email_login_dropdown_fn'), __FILE__, 'hngamers_atavism_user_verify_plugin'); 118 120 add_settings_field('pmp_subscription_id', 'Paid memberships Pro Subscription ID', array( $this,'hngamers_atavism_user_verify_plugin_setting_string'), __FILE__, 'hngamers_atavism_user_verify_plugin', 'pmp_subscription_id'); 121 add_settings_field('atavism_loginserver_ip', 'Comma Separated Server IP list', array( $this,'hngamers_atavism_user_verify_plugin_setting_string'), __FILE__, 'hngamers_atavism_user_verify_plugin', 'atavism_loginserver_ip'); 122 119 123 } 120 124 … … 178 182 $input['subscribers_only'] = wp_filter_nohtml_kses($input['subscribers_only']); 179 183 $input['email_login'] = wp_filter_nohtml_kses($input['email_login']); 180 184 $input['atavism_loginserver_ip'] = wp_filter_nohtml_kses($input['atavism_loginserver_ip']); 181 185 $input['pmp_subscription_id'] = wp_filter_nohtml_kses($input['pmp_subscription_id']); 182 186 -
hngamers-atavism-user-verification/trunk/readme.txt
r2802987 r2803598 5 5 Tested up to: 6.0 6 6 Requires PHP: 5.6 7 Stable tag: 0.0. 27 Stable tag: 0.0.3 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 29 29 30 30 == Changelog == 31 = 0.0.3 = 32 Add IP verification process to ensure that only the Atavism Server can reach out to the verify script. Must add the servers IP to the admin page, that will be calling the script in order to proceed. 33 31 34 = 0.0.2 = 32 35 Minor corrections changes -
hngamers-atavism-user-verification/trunk/templates/hngamers-atavism-verify-user.php
r2802987 r2803598 8 8 { 9 9 $options = get_option('hngamers_atavism_user_verify_plugin_options'); 10 $allowlist = preg_split ("/\,/", $options['atavism_loginserver_ip']); 11 12 if (!in_array($_SERVER['REMOTE_ADDR'], $allowlist)) { 13 return; 14 } 15 10 16 $subscribers_only = $options['subscribers_only']; 11 17 if($subscribers_only == 2) … … 106 112 } 107 113 else { 108 echo(esc_html( '-1, user not found orwrong pass' ));114 echo(esc_html( '-1, wrong pass' )); 109 115 } 110 116 }else{ 111 echo(esc_html( '-1, user not found or wrong pass' ));117 echo(esc_html( '-1, user not found' )); 112 118 } 113 119 } 114 120 else 115 121 { 116 echo(esc_html( '-1, user not found or wrong pass' ));122 echo(esc_html( '-1, user not found' )); 117 123 } 118 124 }
Note: See TracChangeset
for help on using the changeset viewer.