includes/sessions.php
changeset 313 854eecfada20
parent 304 e2cb5f1432c8
parent 311 a007145a0ff6
child 326 ab66d6d1f1f4
equal deleted inserted replaced
310:199b9708f4a2 313:854eecfada20
  1847       $this->sid_super = $sidbak;
  1847       $this->sid_super = $sidbak;
  1848     unset($sidbak);
  1848     unset($sidbak);
  1849     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1849     $message .= "$prot://".$_SERVER['HTTP_HOST'].$p.$aklink;
  1850       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1850       $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1851     error_reporting(E_ALL);
  1851     error_reporting(E_ALL);
  1852     dc_dump($r, 'session: about to send activation e-mail to '.$r['email']);
       
  1853     if(getConfig('smtp_enabled') == '1')
  1852     if(getConfig('smtp_enabled') == '1')
  1854     {
  1853     {
  1855       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1854       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1856       if($result == 'success') $result = true;
  1855       if($result == 'success') $result = true;
  1857       else { echo $result; $result = false; }
  1856       else { echo $result; $result = false; }
  1922 -------------------------------- Cut here --------------------------------';
  1921 -------------------------------- Cut here --------------------------------';
  1923     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1922     $message .= "\n\nSincerely yours, \n$admin_user and the ".$_SERVER['HTTP_HOST']." administration team";
  1924     
  1923     
  1925     error_reporting(E_ALL);
  1924     error_reporting(E_ALL);
  1926     
  1925     
  1927     dc_dump($r, 'session: about to send COPPA e-mail to '.$r['email']);
       
  1928     if(getConfig('smtp_enabled') == '1')
  1926     if(getConfig('smtp_enabled') == '1')
  1929     {
  1927     {
  1930       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1928       $result = smtp_send_email($r['email'], getConfig('site_name').' website account activation', preg_replace("#(?<!\r)\n#s", "\n", $message), getConfig('contact_email'));
  1931       if($result == 'success') 
  1929       if($result == 'success') 
  1932       {
  1930       {