Changeset 2793645
- Timestamp:
- 10/03/2022 07:27:24 PM (3 years ago)
- Location:
- twp-email
- Files:
-
- 10 added
- 3 edited
-
tags/1.3.5 (added)
-
tags/1.3.5/adm (added)
-
tags/1.3.5/adm/about.php (added)
-
tags/1.3.5/adm/abouttwp.php (added)
-
tags/1.3.5/adm/email.php (added)
-
tags/1.3.5/adm/index.php (added)
-
tags/1.3.5/index.php (added)
-
tags/1.3.5/readme.txt (added)
-
tags/1.3.5/style.css (added)
-
tags/1.3.5/twp-email.php (added)
-
trunk/adm/email.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/twp-email.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
twp-email/trunk/adm/email.php
r2786680 r2793645 9 9 } 10 10 if(isset($_POST['twpemailsubmit'])){ 11 $wpdb->query($wpdb->prepare( 'update '.$wpdb->prefix.'twpEmail set email = %s, pass = %s,fromname=%s, host = %s, port = %f, secure = %s where id = %f',sanitize_email($_POST['email']),twpencr(sanitize_text_field($_POST['password'])),sanitize_text_field($_POST['from']),sanitize_text_field($_POST['host']),$_POST['port'],sanitize_text_field($_POST['secure']), 1));11 $wpdb->query($wpdb->prepare("update ".$wpdb->prefix."twpEmail set email = '%s', pass = '%s',fromname= '%s', host = '%s', port = %f, secure = '%s' where id = %f",sanitize_email($_POST['email']),twpencr(stripslashes_deep($_POST['password'])),stripslashes_deep($_POST['from']),stripslashes_deep($_POST['host']),$_POST['port'],stripslashes_deep($_POST['secure']), 1)); 12 12 array_push($success,[__("Email settings saved","twpeditor"),1]); 13 13 } … … 57 57 <div class="twpmailsetup"> 58 58 <label class="twplabel"><?php echo __("Password","twpeditor") ?>:</label> 59 <input type=" password" name="password" placeholder="**************" maxlength="25" required>59 <input type="text" name="password" placeholder="*********" maxlength="25" required> 60 60 </div> 61 61 <div class="twpmailsetup"> -
twp-email/trunk/readme.txt
r2786685 r2793645 5 5 Requires at least: 5.5 6 6 Tested up to: 6.0.2 7 Stable tag: 1.3. 47 Stable tag: 1.3.5 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 18 18 19 19 It is meant to be easy to use to any user, just need to know the SMTP configurations of the email that is being configure. 20 21 The email password is store encrypted on wordpress database. 20 22 21 23 This plugin it's based on the php smtp email and "forces" Wordpress to use it instead of anything else. -
twp-email/trunk/twp-email.php
r2786680 r2793645 5 5 Author: Tiago Anastácio 6 6 Author URI: ittca.eu 7 Version: 1.3. 47 Version: 1.3.5 8 8 Tags: twp, email, smtp 9 9 Requires at least: 5.5 … … 14 14 */ 15 15 if(!defined('ABSPATH'))exit; 16 define('TWPemailV',"1.3. 4");16 define('TWPemailV',"1.3.5"); 17 17 if(!function_exists('twpEmailFiles')){ 18 18 function twpEmailFiles() {wp_enqueue_style('twpe_style', plugins_url('style.css',__FILE__ ));} … … 49 49 $chck = $wpdb->query('select id from '.$wpdb->prefix.'twpEmail where id = 1'); 50 50 if(!$chck){ 51 $wpdb->query('create table if not exists '.$wpdb->prefix.'twpEmail (id tinyint, email varchar(55), pass varchar( 30), fromname varchar(30), host varchar(55), port int, secure varchar(10), b varchar(15), c varchar(15), d tinyint)');51 $wpdb->query('create table if not exists '.$wpdb->prefix.'twpEmail (id tinyint, email varchar(55), pass varchar(60), fromname varchar(30), host varchar(55), port int, secure varchar(10), b varchar(15), c varchar(15), d tinyint)'); 52 52 $wpdb->query($wpdb->prepare("insert into ".$wpdb->prefix."twpEmail values(%f,%s,%s,%s,%s,%f,%s,%s,%s,%f)",1,"","","","",587,"","AES-128-ECB","TwP3m41l!%%$",0)); 53 53 }
Note: See TracChangeset
for help on using the changeset viewer.