Example #1
0
 public function __construct($exceptions = false)
 {
     parent::__construct($exceptions);
     //Tell PHPMailer to use SMTP
     $this->isSMTP();
     //Enable SMTP debugging
     // 0 = off (for production use)
     // 1 = client messages
     // 2 = client and server messages
     $this->SMTPDebug = 0;
     //Ask for HTML-friendly debug output
     $this->Debugoutput = 'html';
     //Set the hostname of the mail server
     $this->Host = "smtp.gmail.com";
     //Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
     $this->Port = 587;
     //Set the encryption system to use - ssl (deprecated) or tls
     $this->SMTPSecure = 'tls';
     //Whether to use SMTP authentication
     $this->SMTPAuth = true;
     //Username to use for SMTP authentication
     $this->Username = Config::get('gmail.smtp.username', '*****@*****.**');
     //Password to use for SMTP authentication
     $enPassword = Config::get('gmail.smtp.password', ':e:sWQlpSVotD8PGXxS5kAuHlq0gMH522qtQkCYCQ0DVBI=');
     $cr = new Cryptography(Cryptography::RAND_KEY);
     $this->Password = $cr->decrypt($enPassword);
 }
Example #2
0
 public function reload()
 {
     Config::clearCache();
     Widget::popupWrapper('Sucessfully reloaded the config', 1000, 'Reload') . $this->index();
 }
Example #3
0
 public function setVar()
 {
     global $argv;
     echo Config::put($argv[2], $argv[3]);
 }