includes/sessions.php
changeset 311 a007145a0ff6
parent 292 b3cfaf0a505c
child 313 854eecfada20
child 317 f8356d9c3481
equal deleted inserted replaced
309:a1ccf990db6b 311:a007145a0ff6
  1637       $this->sid_super = $sidbak;
  1637       $this->sid_super = $sidbak;
  1638     unset($sidbak);
  1638     unset($sidbak);
  1639     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1639     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1640       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1640       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1641     error_reporting(E_ALL);
  1641     error_reporting(E_ALL);
  1642     dc_dump($r, 'session: about to send activation e-mail to '.$r['email']);
       
  1643     if(getConfig('smtp_enabled') == '1')
  1642     if(getConfig('smtp_enabled') == '1')
  1644     {
  1643     {
  1645       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1644       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1646       if($result == 'success') $result = true;
  1645       if($result == 'success') $result = true;
  1647       else { echo $result; $result = false; }
  1646       else { echo $result; $result = false; }
  1712 -------------------------------- Cut here --------------------------------';
  1711 -------------------------------- Cut here --------------------------------';
  1713     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1712     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1714     
  1713     
  1715     error_reporting(E_ALL);
  1714     error_reporting(E_ALL);
  1716     
  1715     
  1717     dc_dump($r, 'session: about to send COPPA e-mail to '.$r['email']);
       
  1718     if(getConfig('smtp_enabled') == '1')
  1716     if(getConfig('smtp_enabled') == '1')
  1719     {
  1717     {
  1720       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1718       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1721       if($result == 'success') 
  1719       if($result == 'success') 
  1722       {
  1720       {