includes/sessions.php
changeset 267 105457df35e5
parent 265 915d399dfdbf
child 285 e72bf2c24875
equal deleted inserted replaced
266:5d62ef764b0d 267:105457df35e5
  1661     if($sidbak)
  1661     if($sidbak)
  1662       $this->sid_super = $sidbak;
  1662       $this->sid_super = $sidbak;
  1663     unset($sidbak);
  1663     unset($sidbak);
  1664     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1664     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1665       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1665       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1666     error_reporting(E_ALL);
       
  1667     if(getConfig('smtp_enabled') == '1')
  1666     if(getConfig('smtp_enabled') == '1')
  1668     {
  1667     {
  1669       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1668       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1670       if($result == 'success') $result = true;
  1669       if($result == 'success') $result = true;
  1671       else { echo $result; $result = false; }
  1670       else { echo $result; $result = false; }
  1733 
  1732 
  1734 Date (YYYY-MM-DD): ______ / _____ / _____
  1733 Date (YYYY-MM-DD): ______ / _____ / _____
  1735 
  1734 
  1736 -------------------------------- Cut here --------------------------------';
  1735 -------------------------------- Cut here --------------------------------';
  1737     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1736     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1738     
       
  1739     error_reporting(E_ALL);
       
  1740     
  1737     
  1741     if(getConfig('smtp_enabled') == '1')
  1738     if(getConfig('smtp_enabled') == '1')
  1742     {
  1739     {
  1743       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1740       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1744       if($result == 'success') 
  1741       if($result == 'success')