Changeset 3046356
- Timestamp:
- 03/06/2024 01:17:32 PM (2 years ago)
- Location:
- spam-master
- Files:
-
- 97 added
- 11 edited
-
tags/7.3.6 (added)
-
tags/7.3.6/class-spammaster.php (added)
-
tags/7.3.6/css (added)
-
tags/7.3.6/css/index.php (added)
-
tags/7.3.6/css/spam-master-firewall.css (added)
-
tags/7.3.6/css/spam-master.css (added)
-
tags/7.3.6/images (added)
-
tags/7.3.6/images/index.php (added)
-
tags/7.3.6/images/spam-master-logs-detailed.png (added)
-
tags/7.3.6/images/spam-master-logs.png (added)
-
tags/7.3.6/images/spam-master-stars.png (added)
-
tags/7.3.6/images/spam-master.gif (added)
-
tags/7.3.6/images/spammaster-logo.png (added)
-
tags/7.3.6/images/spammaster-wp-plugin-internal-banner.jpg (added)
-
tags/7.3.6/includes (added)
-
tags/7.3.6/includes/admin (added)
-
tags/7.3.6/includes/admin/index.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-connection-sender.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-footer.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-integrations-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-key-sender.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-offer-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-online-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-status-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-test-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin-tools-table.php (added)
-
tags/7.3.6/includes/admin/spam-master-admin.php (added)
-
tags/7.3.6/includes/admin/spam-master-tasks.php (added)
-
tags/7.3.6/includes/admin/upgrade (added)
-
tags/7.3.6/includes/admin/upgrade/index.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-0.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-1.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-19.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-2.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-3.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-5.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-6.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-7-0.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-7-2.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-7-6.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-8-5.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-8-6.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-8-7.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6-9-8.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-6.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-1-1.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-1-2.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-2-7.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-2-8.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-2-9.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-1.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-2.php (added)
-
tags/7.3.6/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-6.php (added)
-
tags/7.3.6/includes/controllers (added)
-
tags/7.3.6/includes/controllers/class-spammasteractioncontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasteradminmenutablecontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasteradmintableinactivecontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasteradmintablelogscontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterbuffercontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammastercollectcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammastercomconcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterelusivecontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasteremailcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterfloodcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterhafcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterhoneycontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterinvitationcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterkeycontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterlogcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterregistrationcontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterusercontroller.php (added)
-
tags/7.3.6/includes/controllers/class-spammasterwhitecontroller.php (added)
-
tags/7.3.6/includes/controllers/index.php (added)
-
tags/7.3.6/includes/controllers/spam-master-classes.php (added)
-
tags/7.3.6/includes/index.php (added)
-
tags/7.3.6/includes/protection (added)
-
tags/7.3.6/includes/protection/index.php (added)
-
tags/7.3.6/includes/protection/spam-master-action.php (added)
-
tags/7.3.6/includes/protection/spam-master-admin-other-protection-frontend-firewall.html (added)
-
tags/7.3.6/includes/protection/spam-master-amp-fun.php (added)
-
tags/7.3.6/includes/protection/spam-master-auto-update.php (added)
-
tags/7.3.6/includes/protection/spam-master-comment.php (added)
-
tags/7.3.6/includes/protection/spam-master-contact-form-7-sig.php (added)
-
tags/7.3.6/includes/protection/spam-master-contact-form-7.php (added)
-
tags/7.3.6/includes/protection/spam-master-firewall.php (added)
-
tags/7.3.6/includes/protection/spam-master-honeypot.php (added)
-
tags/7.3.6/includes/protection/spam-master-registration.php (added)
-
tags/7.3.6/includes/protection/spam-master-shortcodes.php (added)
-
tags/7.3.6/includes/protection/spam-master-signatures.php (added)
-
tags/7.3.6/includes/protection/spam-master-widget-top-menu-firewall.php (added)
-
tags/7.3.6/includes/protection/spam-master-woocommerce-reg.php (added)
-
tags/7.3.6/includes/protection/spam-master-woocommerce-sig.php (added)
-
tags/7.3.6/index.php (added)
-
tags/7.3.6/readme.txt (added)
-
tags/7.3.6/uninstall.php (added)
-
trunk/class-spammaster.php (modified) (8 diffs)
-
trunk/css/spam-master.css (modified) (1 diff)
-
trunk/includes/admin/spam-master-admin-tools-table.php (modified) (5 diffs)
-
trunk/includes/admin/spam-master-tasks.php (modified) (3 diffs)
-
trunk/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-6.php (added)
-
trunk/includes/controllers/class-spammasteradminmenutablecontroller.php (modified) (4 diffs)
-
trunk/includes/controllers/class-spammasteradmintablelogscontroller.php (modified) (1 diff)
-
trunk/includes/protection/spam-master-contact-form-7-sig.php (added)
-
trunk/includes/protection/spam-master-honeypot.php (modified) (2 diffs)
-
trunk/includes/protection/spam-master-signatures.php (modified) (6 diffs)
-
trunk/includes/protection/spam-master-woocommerce-sig.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spam-master/trunk/class-spammaster.php
r3045786 r3046356 3 3 * Plugin Name: Spam Master 4 4 * Plugin URI: https://www.spammaster.org 5 * Version: 7.3. 55 * Version: 7.3.6 6 6 * Author: TechGasp 7 7 * Author URI: https://www.techgasp.com … … 34 34 if ( ! class_exists( 'SpamMaster' ) ) : 35 35 36 define( 'SPAM_MASTER_VERSION', '7.3. 5' );36 define( 'SPAM_MASTER_VERSION', '7.3.6' ); 37 37 define( 'SPAM_MASTER_NAME', 'Spam Master' ); 38 38 define( 'SPAM_MASTER_DOMAIN', 'SpamMaster.org' ); … … 276 276 $spam_master_upgrade_to_7_3_1 = get_blog_option( $id, 'spam_master_upgrade_to_7_3_1' ); 277 277 $spam_master_upgrade_to_7_3_2 = get_blog_option( $id, 'spam_master_upgrade_to_7_3_2' ); 278 $spam_master_upgrade_to_7_3_6 = get_blog_option( $id, 'spam_master_upgrade_to_7_3_6' ); 278 279 279 280 $spam_master_connection = get_blog_option( $id, 'spam_master_connection' ); … … 304 305 $spam_master_upgrade_to_7_3_1 = get_option( 'spam_master_upgrade_to_7_3_1' ); 305 306 $spam_master_upgrade_to_7_3_2 = get_option( 'spam_master_upgrade_to_7_3_2' ); 307 $spam_master_upgrade_to_7_3_6 = get_option( 'spam_master_upgrade_to_7_3_6' ); 306 308 307 309 $spam_master_connection = get_option( 'spam_master_connection' ); … … 378 380 if ( '1' !== $spam_master_upgrade_to_7_3_2 && '2.4' === $spam_master_keys_db_installed_ver ) { 379 381 require_once WP_PLUGIN_DIR . '/spam-master/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-2.php'; 382 } 383 if ( '1' !== $spam_master_upgrade_to_7_3_6 && '2.4' === $spam_master_keys_db_installed_ver ) { 384 require_once WP_PLUGIN_DIR . '/spam-master/includes/admin/upgrade/spam-master-admin-upgrade-to-7-3-6.php'; 380 385 } 381 386 … … 867 872 if ( 'true' === $spam_master_integrations_contact_form_7 ) { 868 873 require_once WP_PLUGIN_DIR . '/spam-master/includes/protection/spam-master-contact-form-7.php'; 874 require_once WP_PLUGIN_DIR . '/spam-master/includes/protection/spam-master-contact-form-7-sig.php'; 869 875 } 870 876 if ( 'true' === $spam_master_integrations_woocommerce ) { … … 1834 1840 * @return void 1835 1841 */ 1836 function spam_master_ version_in_header() {1842 function spam_master_header_generator() { 1837 1843 $spam_master_name = constant( 'SPAM_MASTER_NAME' ); 1838 1844 $spam_master_version = constant( 'SPAM_MASTER_VERSION' ); … … 1841 1847 <?php 1842 1848 } 1843 add_action( 'wp_head', 'spam_master_version_in_header' ); 1849 add_action( 'wp_head', 'spam_master_header_generator' ); 1850 add_action( 'login_head', 'spam_master_header_generator' ); 1844 1851 1845 1852 /** -
spam-master/trunk/css/spam-master.css
r3045149 r3046356 811 811 } 812 812 .spam-master-menu-table a.tabmenu.active { 813 border-bottom: 2px solid # D39542;813 border-bottom: 2px solid #C65145; 814 814 } 815 815 .spam-master-menu-table a.tabmenu:hover { -
spam-master/trunk/includes/admin/spam-master-admin-tools-table.php
r3045786 r3046356 69 69 $spam_master_shortcodes_total_count = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_shortcodes_total_count'" ); 70 70 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 71 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" ); 72 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 73 $spam_master_signature_login = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_login'" ); 74 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 75 $spam_master_signature_comments = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_comments'" ); 76 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 77 $spam_master_signature_email = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_email'" ); 71 $spam_master_signature = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature'" ); 78 72 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 79 73 $spam_master_is_cloudflare = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_is_cloudflare'" ); … … 402 396 403 397 if ( 'FULL' === $spam_master_type ) { 404 if ( ! empty( $_POST['spam_master_signature _registration'] ) ) {405 $spam_master_signature _registration = sanitize_text_field( wp_unslash( $_POST['spam_master_signature_registration'] ) );406 $data_address = array( 'spamvalue' => $spam_master_signature_registration);407 $where_address = array(398 if ( ! empty( $_POST['spam_master_signature'] ) ) { 399 $spam_master_signature = sanitize_text_field( wp_unslash( $_POST['spam_master_signature'] ) ); 400 $data_address = array( 'spamvalue' => $spam_master_signature ); 401 $where_address = array( 408 402 'spamkey' => 'Option', 409 'spamtype' => 'spam_master_signature_registration', 410 ); 411 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 412 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 413 } 414 if ( ! empty( $_POST['spam_master_signature_login'] ) ) { 415 $spam_master_signature_login = sanitize_text_field( wp_unslash( $_POST['spam_master_signature_login'] ) ); 416 $data_address = array( 'spamvalue' => $spam_master_signature_login ); 417 $where_address = array( 418 'spamkey' => 'Option', 419 'spamtype' => 'spam_master_signature_login', 420 ); 421 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 422 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 423 } 424 if ( ! empty( $_POST['spam_master_signature_comments'] ) ) { 425 $spam_master_signature_comments = sanitize_text_field( wp_unslash( $_POST['spam_master_signature_comments'] ) ); 426 $data_address = array( 'spamvalue' => $spam_master_signature_comments ); 427 $where_address = array( 428 'spamkey' => 'Option', 429 'spamtype' => 'spam_master_signature_comments', 430 ); 431 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 432 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 433 } 434 if ( ! empty( $_POST['spam_master_signature_email'] ) ) { 435 $spam_master_signature_email = sanitize_text_field( wp_unslash( $_POST['spam_master_signature_email'] ) ); 436 $data_address = array( 'spamvalue' => $spam_master_signature_email ); 437 $where_address = array( 438 'spamkey' => 'Option', 439 'spamtype' => 'spam_master_signature_email', 403 'spamtype' => 'spam_master_signature', 440 404 ); 441 405 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching … … 444 408 ?> 445 409 <div class="notice notice-success is-dismissible"> 446 <p><?php echo esc_attr( __( 'Signature soptions saved.', 'spam-master' ) ); ?></p>410 <p><?php echo esc_attr( __( 'Signature options saved.', 'spam-master' ) ); ?></p> 447 411 </div> 448 412 <?php … … 450 414 ?> 451 415 <div class="notice notice-error is-dismissible"> 452 <p><?php echo esc_attr( __( 'ERROR: Signature srequires a Pro key.', 'spam-master' ) ); ?></p>416 <p><?php echo esc_attr( __( 'ERROR: Signature requires a Pro key.', 'spam-master' ) ); ?></p> 453 417 </div> 454 418 <?php … … 1214 1178 </tr> 1215 1179 <tr class="alternate"> 1216 <td class="spam-master-middle-20"><?php echo esc_attr( __( 'Activate Registration Signature', 'spam-master' ) ); ?></td> 1217 <td class="spam-master-middle"> 1218 <select class="spam-master-100" id="spam_master_signature_registration" name="spam_master_signature_registration"> 1219 <?php 1220 $select_attribute = ''; 1221 if ( 'true' === $spam_master_signature_registration ) { 1222 $select_true = 'selected'; 1223 } else { 1224 $select_true = ''; 1225 } 1226 if ( 'false' === $spam_master_signature_registration ) { 1227 $select_false = 'selected'; 1228 } else { 1229 $select_false = ''; 1230 } 1231 ?> 1232 <option value="true" <?php echo esc_attr( $select_true ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'On' ) ); ?></option> 1233 <option value="false" <?php echo esc_attr( $select_false ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'Off' ) ); ?></option> 1234 </select> 1235 </td> 1236 </tr> 1237 <tr class="alternate"> 1238 <td class="spam-master-middle-20"><?php echo esc_attr( __( 'Activate Login Signature', 'spam-master' ) ); ?></td> 1239 <td class="spam-master-middle"> 1240 <select class="spam-master-100" id="spam_master_signature_login" name="spam_master_signature_login"> 1241 <?php 1242 $select_attribute = ''; 1243 if ( 'true' === $spam_master_signature_login ) { 1244 $select_true = 'selected'; 1245 } else { 1246 $select_true = ''; 1247 } 1248 if ( 'false' === $spam_master_signature_login ) { 1249 $select_false = 'selected'; 1250 } else { 1251 $select_false = ''; 1252 } 1253 ?> 1254 <option value="true" <?php echo esc_attr( $select_true ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'On' ) ); ?></option> 1255 <option value="false" <?php echo esc_attr( $select_false ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'Off' ) ); ?></option> 1256 </select> 1257 </td> 1258 </tr> 1259 <tr class="alternate"> 1260 <td class="spam-master-middle-20"><?php echo esc_attr( __( 'Activate Comments Signature', 'spam-master' ) ); ?></td> 1261 <td class="spam-master-middle"> 1262 <select class="spam-master-100" id="spam_master_signature_comments" name="spam_master_signature_comments"> 1263 <?php 1264 $select_attribute = ''; 1265 if ( 'true' === $spam_master_signature_comments ) { 1266 $select_true = 'selected'; 1267 } else { 1268 $select_true = ''; 1269 } 1270 if ( 'false' === $spam_master_signature_comments ) { 1271 $select_false = 'selected'; 1272 } else { 1273 $select_false = ''; 1274 } 1275 ?> 1276 <option value="true" <?php echo esc_attr( $select_true ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'On' ) ); ?></option> 1277 <option value="false" <?php echo esc_attr( $select_false ); ?> <?php echo esc_attr( $is_full ); ?>><?php echo esc_attr( __( 'Off' ) ); ?></option> 1278 </select> 1279 </td> 1280 </tr> 1281 <tr class="alternate"> 1282 <td class="spam-master-middle-20"><?php echo esc_attr( __( 'Activate Email Signature ', 'spam-master' ) ); ?></td> 1283 <td class="spam-master-middle"> 1284 <select class="spam-master-100" id="spam_master_signature_email" name="spam_master_signature_email"> 1285 <?php 1286 $select_attribute = ''; 1287 if ( 'true' === $spam_master_signature_email ) { 1288 $select_true = 'selected'; 1289 } else { 1290 $select_true = ''; 1291 } 1292 if ( 'false' === $spam_master_signature_email ) { 1180 <td class="spam-master-middle-20"><?php echo esc_attr( __( 'Activate Signatures', 'spam-master' ) ); ?></td> 1181 <td class="spam-master-middle"> 1182 <select class="spam-master-100" id="spam_master_signature" name="spam_master_signature"> 1183 <?php 1184 $select_attribute = ''; 1185 if ( 'true' === $spam_master_signature ) { 1186 $select_true = 'selected'; 1187 } else { 1188 $select_true = ''; 1189 } 1190 if ( 'false' === $spam_master_signature ) { 1293 1191 $select_false = 'selected'; 1294 1192 } else { -
spam-master/trunk/includes/admin/spam-master-tasks.php
r3045149 r3046356 76 76 $spamsenddbdatepre = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_disc_not_date'" ); 77 77 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 78 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" ); 79 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 80 $spam_master_signature_login = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_login'" ); 81 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 82 $spam_master_signature_comments = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_comments'" ); 83 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 84 $spam_master_signature_email = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_email'" ); 78 $spam_master_signature = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature'" ); 85 79 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 86 80 $spam_master_is_cloudflare = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_is_cloudflare'" ); … … 389 383 $where_address = array( 390 384 'spamkey' => 'Option', 391 'spamtype' => 'spam_master_signature_registration', 392 ); 393 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 394 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 395 $data_address = array( 'spamvalue' => 'true' ); 396 $where_address = array( 397 'spamkey' => 'Option', 398 'spamtype' => 'spam_master_signature_login', 399 ); 400 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 401 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 402 $data_address = array( 'spamvalue' => 'true' ); 403 $where_address = array( 404 'spamkey' => 'Option', 405 'spamtype' => 'spam_master_signature_comments', 406 ); 407 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 408 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 409 $data_address = array( 'spamvalue' => 'true' ); 410 $where_address = array( 411 'spamkey' => 'Option', 412 'spamtype' => 'spam_master_signature_email', 385 'spamtype' => 'spam_master_signature', 413 386 ); 414 387 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching … … 422 395 $wpdb->update( $spam_master_keys, $data_address, $where_address ); 423 396 } 424 425 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared426 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" );427 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared428 $spam_master_signature_login = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_login'" );429 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared430 $spam_master_signature_comments = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_comments'" );431 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared432 $spam_master_signature_email = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_email'" );433 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared434 $spam_master_is_cloudflare = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_is_cloudflare'" );435 397 436 398 // Log inup controller. -
spam-master/trunk/includes/controllers/class-spammasteradminmenutablecontroller.php
r3045149 r3046356 52 52 // Display buffer size or protection total number. 53 53 if ( $spam_master_block_count >= $spam_master_buffer ) { 54 $protection_text = 'Spam Master protected you with <strong><span class="spam-master-top-admin-shadow-red">' . number_format( $spam_master_block_count ) . '</span></strong> blocks.'; 55 } else { 56 $protection_text = 'Spam Master buffer contains <strong><span class="spam-master-top-admin-shadow-red">' . number_format( $spam_master_buffer ) . '</span></strong> entries.'; 54 $protection_text = 'Spam Master protected you with <strong><span class="spam-master-admin-red spam-master-top-admin-shadow-offline">' . number_format( $spam_master_block_count ) . '</span></strong> dangerous blocks.'; 55 $protection_text_small = 'Firewall Triggers <strong><span class="spam-master-admin-red spam-master-top-admin-shadow-offline">' . number_format( $spam_master_block_count ) . '</span></strong> dangerous blocks'; 56 } else { 57 $protection_text = 'Spam Master buffer contains <strong><span class="spam-master-admin-red spam-master-top-admin-shadow-offline">' . number_format( $spam_master_buffer ) . '</span></strong> entries.'; 58 $protection_text_small = 'Firewall Buffer <strong><span class="spam-master-admin-red spam-master-top-admin-shadow-offline">' . number_format( $spam_master_buffer ) . '</span></strong> entries'; 57 59 } 58 60 … … 184 186 <td> 185 187 <div class="spam-master-menu-table spam-master-center"> 186 <p><span class="dashicons dashicons-heart spam-master-admin-f48 spam-master-admin-red spam-master-top-admin-shadow-offline spam-master-middle"></span> <span class="spam-master-middle"><?php echo esc_attr( __( 'Spam Master real-time firewall scanning is ', 'spam-master' ) ); ?> <strong><span class="spam-master-top-admin-shadow-green"><?php echo esc_attr( __( 'On, ', 'spam-master' ) ); ?></span></strong> <?php echo esc_attr( __( 'you are protected against ', 'spam-master' ) ); ?><strong><span class="spam-master-top-admin-shadow-offline"><?php echo esc_attr( number_format( $spam_master_protection_total_number ) ); ?></span></strong> <?php echo esc_attr( __( ' million threats and growing daily.', 'spam-master' ) ); ?><span class="dashicons dashicons-shield spam-master-admin-f48 spam-master-admin-green spam-master-top-admin-shadow-o fflinespam-master-middle"></span> <?php echo $protection_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </span></p>188 <p><span class="dashicons dashicons-heart spam-master-admin-f48 spam-master-admin-red spam-master-top-admin-shadow-offline spam-master-middle"></span> <span class="spam-master-middle"><?php echo esc_attr( __( 'Spam Master real-time firewall scanning is ', 'spam-master' ) ); ?> <strong><span class="spam-master-top-admin-shadow-green"><?php echo esc_attr( __( 'On, ', 'spam-master' ) ); ?></span></strong> <?php echo esc_attr( __( 'you are protected against ', 'spam-master' ) ); ?><strong><span class="spam-master-top-admin-shadow-offline"><?php echo esc_attr( number_format( $spam_master_protection_total_number ) ); ?></span></strong> <?php echo esc_attr( __( ' million threats and growing daily.', 'spam-master' ) ); ?><span class="dashicons dashicons-shield spam-master-admin-f48 spam-master-admin-green spam-master-top-admin-shadow-orangina spam-master-middle"></span> <?php echo $protection_text; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </span></p> 187 189 </div> 188 190 </td> … … 218 220 // Prepare pop up. 219 221 add_thickbox(); 220 if ( empty( $spam_master_type ) || 'INACTIVE' === $spam_master_type || ' TRIAL' === $spam_master_type || 'FREE' === $spam_master_type ) {222 if ( empty( $spam_master_type ) || 'INACTIVE' === $spam_master_type || 'FREE' === $spam_master_type ) { 221 223 ?> 222 224 <table class="wp-list-table widefat fixed table-view-list" cellspacing="0"> 223 225 <thead> 224 226 <tr> 225 <th colspan="4"><strong><?php echo esc_html( __( 'Firewall Logs', 'spam-master' ) ); ?></strong> <a class="btn-spammaster small green roundedspam" href="https://www.techgasp.com/downloads/spam-master-license/" target="_blank" title="<?php echo esc_html( __( 'Premium Server Connection for peanuts', 'spam-master' ) ); ?>"><?php echo esc_html( __( 'Upgrade to Pro', 'spam-master' ) ); ?></a> </th>227 <th colspan="4"><strong><?php echo esc_html( __( 'Firewall Logs', 'spam-master' ) ); ?></strong> <a class="btn-spammaster small green roundedspam" href="https://www.techgasp.com/downloads/spam-master-license/" target="_blank" title="<?php echo esc_html( __( 'Premium Server Connection for peanuts', 'spam-master' ) ); ?>"><?php echo esc_html( __( 'Upgrade to Pro', 'spam-master' ) ); ?></a> <strong><?php echo $protection_text_small; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></strong></th> 226 228 </tr> 227 229 </thead> … … 277 279 </td> 278 280 <td class="spam-master-read-font spam-master-top-admin-yellow"> 279 <span class="dashicons dashicons-thumbs-up spam-master-admin-green spam-master-top-admin-shadow-blue"></span> <a href="https://www.techgasp.com/downloads/spam-master-license/" target="_blank" title="<?php echo esc_html( __( 'Premium Server Connection for peanuts', 'spam-master' ) ); ?>">< ?php echo esc_html( __( 'Upgrade to Pro', 'spam-master' ) ); ?></a>281 <span class="dashicons dashicons-thumbs-up spam-master-admin-green spam-master-top-admin-shadow-blue"></span> <a href="https://www.techgasp.com/downloads/spam-master-license/" target="_blank" title="<?php echo esc_html( __( 'Premium Server Connection for peanuts', 'spam-master' ) ); ?>"><strong><?php echo esc_html( __( 'Upgrade to Pro', 'spam-master' ) ); ?></strong></a> 280 282 </td> 281 283 </tr> -
spam-master/trunk/includes/controllers/class-spammasteradmintablelogscontroller.php
r3014610 r3046356 216 216 $current_page = $this->get_pagenum(); 217 217 $total_items = self::record_count(); 218 $data = self::get_records( $per_page, $current_page , $orderby, $order);218 $data = self::get_records( $per_page, $current_page ); 219 219 $this->set_pagination_args( 220 220 array( -
spam-master/trunk/includes/protection/spam-master-honeypot.php
r3039125 r3046356 31 31 add_filter( 'registration_errors', 'spam_master_honeypot_register_single_errors', 10, 3 ); 32 32 add_filter( 'login_errors', 'spam_master_honeypot_login_single_errors', 11, 1 ); 33 add_filter( 'lostpassword_form', 'spam_master_honeypot_register_field', 11, 1 ); 34 add_filter( 'lostpassword_post', 'spam_master_honeypot_login_single_errors', 11, 1 ); 33 35 add_action( 'comment_form_before_fields', 'spam_master_honeypot_register_field', 1 ); 34 36 add_filter( 'preprocess_comment', 'spam_master_verify_honey_comment_data', 10, 3 ); … … 42 44 add_filter( 'registration_errors', 'spam_master_honeypot_register_single_errors', 10, 3 ); 43 45 add_filter( 'login_errors', 'spam_master_honeypot_login_single_errors', 11, 1 ); 46 add_filter( 'lostpassword_form', 'spam_master_honeypot_register_field', 11, 1 ); 47 add_filter( 'lostpassword_post', 'spam_master_honeypot_login_single_errors', 11, 1 ); 44 48 add_filter( 'preprocess_comment', 'spam_master_verify_honey_comment_data', 10, 3 ); 45 49 add_filter( 'wpcf7_form_elements', 'spam_master_add_honeypot_to_form', 10, 1 ); -
spam-master/trunk/includes/protection/spam-master-signatures.php
r3035688 r3046356 14 14 } 15 15 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 16 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" ); 17 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 18 $spam_master_signature_login = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_login'" ); 19 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 20 $spam_master_signature_comments = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_comments'" ); 21 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 22 $spam_master_signature_email = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_email'" ); 16 $spam_master_signature = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature'" ); 23 17 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 24 18 $spam_master_status = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_status'" ); 25 19 26 if ( 'true' === $spam_master_signature _registration) {20 if ( 'true' === $spam_master_signature ) { 27 21 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) { 28 22 if ( is_multisite() ) { 29 23 add_action( 'signup_extra_fields', 'spam_master_signature_registration_field' ); 24 add_action( 'login_form', 'spam_master_signature_login_field' ); 25 add_action( 'lostpassword_form', 'spam_master_signature_login_field' ); 26 add_action( 'comment_form_after_fields', 'spam_master_signature_comments_field', 99 ); 30 27 } else { 31 28 // Single site. 32 29 add_action( 'register_form', 'spam_master_signature_registration_field' ); 30 add_action( 'login_form', 'spam_master_signature_login_field' ); 31 add_action( 'lostpassword_form', 'spam_master_signature_login_field' ); 32 add_action( 'comment_form_after_fields', 'spam_master_signature_comments_field', 99 ); 33 33 } 34 34 … … 40 40 ?> 41 41 <p> 42 <?php echo esc_attr( __( 'Protected by ', 'spam_master' ) ); ?> 43 <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a> 42 <a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a> 44 43 </p> 45 44 <br> 46 45 <?php 47 }48 }49 }50 if ( 'true' === $spam_master_signature_login ) {51 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) {52 if ( is_multisite() ) {53 add_action( 'login_form', 'spam_master_signature_login_field' );54 } else {55 // Single site.56 add_action( 'login_form', 'spam_master_signature_login_field' );57 46 } 58 47 … … 62 51 function spam_master_signature_login_field() { 63 52 global $wpdb, $blog_id; 64 echo '<p> Protected by <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a></p><br>';53 echo '<p><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></p><br>'; 65 54 } 66 }67 }68 55 69 if ( 'true' === $spam_master_signature_comments ) { 70 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) { 71 if ( is_multisite() ) { 72 add_action( 'comment_form_after_fields', 'spam_master_signature_comments_field', 1 ); 73 } else { 74 // Single site. 75 add_action( 'comment_form_after_fields', 'spam_master_signature_comments_field', 1 ); 56 /** 57 * Signatures reset field. 58 */ 59 function spam_master_signature_reset_field() { 60 global $wpdb, $blog_id; 61 echo '<p><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></p><br>'; 76 62 } 77 63 … … 81 67 function spam_master_signature_comments_field() { 82 68 global $wpdb, $blog_id; 83 echo '<p> Protected by <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a></p><br>';69 echo '<p><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></p><br>'; 84 70 } 85 } 86 } 87 if ( 'true' === $spam_master_signature_email ) { 88 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) { 71 89 72 if ( is_multisite() ) { 90 73 $notdoneyet = true; … … 119 102 } 120 103 } 121 endif;104 endif; 122 105 // New Registrations email. 123 106 if ( ! function_exists( 'wp_new_user_notification' ) ) : … … 178 161 // End function. 179 162 } 180 endif;163 endif; 181 164 } 182 165 } -
spam-master/trunk/includes/protection/spam-master-woocommerce-sig.php
r3021940 r3046356 14 14 } 15 15 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 16 $spam_master_signature = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature'" ); 17 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared 16 18 $spam_master_status = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_status'" ); 17 19 18 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) { 20 if ( 'true' === $spam_master_signature ) { 21 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) { 19 22 20 /**21 * Spam master registration signature.22 *23 * @return void24 */25 function spam_master_woo_extra_register_field() {26 global $wpdb, $blog_id;23 /** 24 * Spam master registration signature. 25 * 26 * @return void 27 */ 28 function spam_master_woo_extra_register_field() { 29 global $wpdb, $blog_id; 27 30 28 // Add Table & Load Spam Master Options.29 if ( is_multisite() ) {30 $spam_master_keys = $wpdb->get_blog_prefix( $blog_id ) . 'spam_master_keys';31 } else {32 $spam_master_keys = $wpdb->prefix . 'spam_master_keys';33 }34 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared35 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" );36 if ( 'true' === $spam_master_signature_registration ) {37 31 ?> 38 <div class="clear"></div>39 <p class="form-row form-row-wide">40 <label for="spam_master">Website Protected by <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a></label>41 </p>32 <div class="clear"></div> 33 <p class="form-row form-row-wide"> 34 <label for="spam_master"><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></label> 35 </p> 42 36 <?php 43 37 } 44 } 45 add_filter( 'woocommerce_register_form_end', 'spam_master_woo_extra_register_field' ); 38 add_filter( 'woocommerce_register_form_end', 'spam_master_woo_extra_register_field' ); 46 39 47 /**48 * Spam master login signature.49 *50 * @return void51 */52 function spam_master_woo_extra_login_field() {53 global $wpdb, $blog_id;40 /** 41 * Spam master login signature. 42 * 43 * @return void 44 */ 45 function spam_master_woo_extra_login_field() { 46 global $wpdb, $blog_id; 54 47 55 // Add Table & Load Spam Master Options.56 if ( is_multisite() ) {57 $spam_master_keys = $wpdb->get_blog_prefix( $blog_id ) . 'spam_master_keys';58 } else {59 $spam_master_keys = $wpdb->prefix . 'spam_master_keys';60 }61 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared62 $spam_master_signature_login = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_login'" );63 if ( 'true' === $spam_master_signature_login ) {64 48 ?> 65 <div class="clear"></div>66 <p class="form-row form-row-wide">67 <label for="spam_master">Website Protected by <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a></label>68 </p>49 <div class="clear"></div> 50 <p class="form-row form-row-wide"> 51 <label for="spam_master"><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></label> 52 </p> 69 53 <?php 70 54 } 71 } 72 add_filter( 'woocommerce_login_form_end', 'spam_master_woo_extra_login_field' ); 55 add_filter( 'woocommerce_login_form_end', 'spam_master_woo_extra_login_field' ); 73 56 74 /**75 * Spam master checkout signature.76 *77 * @return void78 */79 function spam_master_woo_extra_checkout_field() {80 global $wpdb, $blog_id;57 /** 58 * Spam master reset signature. 59 * 60 * @return void 61 */ 62 function spam_master_woo_extra_reset_field() { 63 global $wpdb, $blog_id; 81 64 82 // Add Table & Load Spam Master Options.83 if ( is_multisite() ) {84 $spam_master_keys = $wpdb->get_blog_prefix( $blog_id ) . 'spam_master_keys';85 } else {86 $spam_master_keys = $wpdb->prefix . 'spam_master_keys';87 }88 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared89 $spam_master_signature_registration = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_registration'" );90 if ( 'true' === $spam_master_signature_registration ) {91 65 ?> 92 <div class="clear"></div>93 <p class="form-row form-row-wide">94 <label for="spam_master">Website Protected by <a href="https://www.spammaster.org/" target="_blank" title="Spam Master"><em>Spam Master</em></a></label>95 </p>66 <div class="clear"></div> 67 <p class="form-row form-row-wide"> 68 <label for="spam_master"><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></label> 69 </p> 96 70 <?php 97 71 } 98 } 99 add_action( 'woocommerce_after_checkout_form', 'spam_master_woo_extra_checkout_field' ); 72 add_filter( 'woocommerce_after_lost_password_form', 'spam_master_woo_extra_reset_field' ); 100 73 101 /** 102 * Spam master email signature. 103 * 104 * @param email $email for validation. 105 * 106 * @return void 107 */ 108 function spam_master_woo_extra_email_field( $email ) { 109 global $wpdb, $blog_id; 74 /** 75 * Spam master checkout signature. 76 * 77 * @return void 78 */ 79 function spam_master_woo_extra_checkout_field() { 80 global $wpdb, $blog_id; 110 81 111 // Add Table & Load Spam Master Options.112 if ( is_multisite() ) {113 $spam_master_keys = $wpdb->get_blog_prefix( $blog_id ) . 'spam_master_keys';114 } else {115 $spam_master_keys = $wpdb->prefix . 'spam_master_keys';116 }117 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared118 $spam_master_signature_email = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_signature_email'" );119 if ( 'true' === $spam_master_signature_email ) {120 82 ?> 121 <p></p> 122 <p><?php printf( esc_attr( __( 'Website Protected by <b>Spam Master</b>', 'spam_master' ) ) ); ?></p> 83 <div class="clear"></div> 84 <p class="form-row form-row-wide"> 85 <label for="spam_master"><a href="https://www.spammaster.org/" target="_blank" title="Protected by Spam Master">Protected by Spam Master</a></label> 86 </p> 123 87 <?php 124 88 } 89 add_action( 'woocommerce_after_checkout_form', 'spam_master_woo_extra_checkout_field' ); 90 91 /** 92 * Spam master email signature. 93 * 94 * @param email $email for validation. 95 * 96 * @return void 97 */ 98 function spam_master_woo_extra_email_field( $email ) { 99 global $wpdb, $blog_id; 100 101 ?> 102 <p></p> 103 <p><?php printf( esc_attr( __( 'Protected by <b>Spam Master</b>', 'spam_master' ) ) ); ?></p> 104 <?php 105 } 106 add_action( 'woocommerce_email_footer', 'spam_master_woo_extra_email_field' ); 125 107 } 126 add_action( 'woocommerce_email_footer', 'spam_master_woo_extra_email_field' );127 108 } 128 ?> -
spam-master/trunk/readme.txt
r3045786 r3046356 4 4 Requires at least: 5.0 5 5 Tested up to: 6.4.3 6 Stable tag: 7.3. 56 Stable tag: 7.3.6 7 7 License: GPLv2 or later 8 8 … … 179 179 180 180 = Can I disable the Protected by Spam Master signatures = 181 The "Protected by Spam Master" signature text on login, registration, comment forms and emails can be individually turned off in [www.spammaster.org](https://www.spammaster.org/) Licenses page, Tools, Configure button. Make sure to login or register with your attached email, to check your attached email please visit your website Spam Master Settings page.181 The "Protected by Spam Master" signature text on login, registration, comment forms , contact forms and emails can be turned off in Spam Master Settings page, Protection Tools tab. 182 182 183 183 = Can I disable the daily or weekly report emails = … … 215 215 216 216 == Changelog == 217 218 = 7.3.6 = 219 * Fixing get records in logs table 220 * Adding honeypot fields to native reset password form 221 * Adding sigs to native reset password form 222 * Adding generator to wp admin 223 * Unifying signatures under one option in Spam Master Settings, Protection Tools tab 224 * Changing woocommerce signatures legacy text 225 * Fixing woocommerce sigs disable input 226 * Adding woocommerce sigs to reset password form 227 * Fixing contact form 7 signatures, can be turned of in Spam Master Settings, Protection Tools tab 228 * Adding new auto tasks 229 * Css tweaks 230 * New uninstall options 217 231 218 232 = 7.3.5 = -
spam-master/trunk/uninstall.php
r3045149 r3046356 44 44 delete_blog_option( $idb, 'spam_master_upgrade_to_7_3_1' ); 45 45 delete_blog_option( $idb, 'spam_master_upgrade_to_7_3_2' ); 46 delete_blog_option( $idb, 'spam_master_upgrade_to_7_3_6' ); 46 47 delete_blog_option( $idb, 'spam_master_db_version' ); 47 48 delete_blog_option( $idb, 'spam_master_keys_db_version' ); … … 75 76 delete_option( 'spam_master_upgrade_to_7_3_1' ); 76 77 delete_option( 'spam_master_upgrade_to_7_3_2' ); 78 delete_option( 'spam_master_upgrade_to_7_3_6' ); 77 79 delete_option( 'spam_master_db_version' ); 78 80 delete_option( 'spam_master_keys_db_version' );
Note: See TracChangeset
for help on using the changeset viewer.