Plugin Directory

Changeset 2793645


Ignore:
Timestamp:
10/03/2022 07:27:24 PM (3 years ago)
Author:
tlago
Message:

twp-login version 1.3.5

Location:
twp-email
Files:
10 added
3 edited

Legend:

Unmodified
Added
Removed
  • twp-email/trunk/adm/email.php

    r2786680 r2793645  
    99}
    1010if(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));
    1212  array_push($success,[__("Email settings saved","twpeditor"),1]);
    1313}
     
    5757  <div class="twpmailsetup">
    5858    <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>
    6060  </div>
    6161  <div class="twpmailsetup">
  • twp-email/trunk/readme.txt

    r2786685 r2793645  
    55Requires at least: 5.5
    66Tested up to: 6.0.2
    7 Stable tag: 1.3.4
     7Stable tag: 1.3.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    1818
    1919It 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
     21The email password is store encrypted on wordpress database.
    2022
    2123This 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  
    55  Author: Tiago Anastácio
    66  Author URI: ittca.eu
    7   Version: 1.3.4
     7  Version: 1.3.5
    88  Tags: twp, email, smtp
    99  Requires at least: 5.5
     
    1414*/
    1515if(!defined('ABSPATH'))exit;
    16 define('TWPemailV',"1.3.4");
     16define('TWPemailV',"1.3.5");
    1717if(!function_exists('twpEmailFiles')){
    1818  function twpEmailFiles() {wp_enqueue_style('twpe_style', plugins_url('style.css',__FILE__ ));}
     
    4949    $chck = $wpdb->query('select id from '.$wpdb->prefix.'twpEmail where id = 1');
    5050    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)');
    5252      $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));
    5353    }
Note: See TracChangeset for help on using the changeset viewer.