plugins/SpecialAdmin.php
changeset 1374 f99b9c5036d4
parent 1352 d97cf005f674
equal deleted inserted replaced
1373:851b91febb85 1374:f99b9c5036d4
  1629 	global $enano_config;
  1629 	global $enano_config;
  1630 	if ( isset($_POST['do_send']) && !defined('ENANO_DEMO_MODE') )
  1630 	if ( isset($_POST['do_send']) && !defined('ENANO_DEMO_MODE') )
  1631 	{
  1631 	{
  1632 		$use_smtp = getConfig('smtp_enabled') == '1';
  1632 		$use_smtp = getConfig('smtp_enabled') == '1';
  1633 		
  1633 		
       
  1634 		// init errors array
       
  1635 		$errors = array();
       
  1636 		
  1634 		//
  1637 		//
  1635 		// Let's do some checking to make sure that mass mail functions
  1638 		// Let's do some checking to make sure that mass mail functions
  1636 		// are working in win32 versions of php. (copied from phpBB)
  1639 		// are working in win32 versions of php. (copied from phpBB)
  1637 		//
  1640 		//
  1638 		if ( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$use_smtp)
  1641 		if ( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$use_smtp)
  1716 				
  1719 				
  1717 				$db->free_result();
  1720 				$db->free_result();
  1718 			}
  1721 			}
  1719 		}
  1722 		}
  1720 		
  1723 		
  1721 		if ( sizeof($errors) < 1 )
  1724 		if ( empty($errors) )
  1722 		{
  1725 		{
  1723 		
  1726 		
  1724 			$mail->from(getConfig('contact_email'));
  1727 			$mail->from(getConfig('contact_email'));
  1725 			$mail->replyto(getConfig('contact_email'));
  1728 			$mail->replyto(getConfig('contact_email'));
  1726 			$mail->set_subject($subject);
  1729 			$mail->set_subject($subject);