Vergleich inc/functions_massmail.php - 1.8.5 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
/**
* Build the mass email SQL query for the specified conditions.
*

/**
* Build the mass email SQL query for the specified conditions.
*

 * @param array Array of conditions to match users against.

 * @param array $conditions Array of conditions to match users against.

 * @return string The generated search SQL
*/
function build_mass_mail_query($conditions)

 * @return string The generated search SQL
*/
function build_mass_mail_query($conditions)

Zeile 111Zeile 111

$conditions['usergroup'] = array_map('intval', $conditions['usergroup']);



$conditions['usergroup'] = array_map('intval', $conditions['usergroup']);


 
		$additional_sql = '';

		foreach($conditions['usergroup'] as $usergroup)
{
switch($db->type)

		foreach($conditions['usergroup'] as $usergroup)
{
switch($db->type)

Zeile 132Zeile 133
/**
* Create a text based version of a HTML mass email.
*

/**
* Create a text based version of a HTML mass email.
*

 * @param string The HTML version.

 * @param string $message The HTML version.

 * @return string The generated text based version.
*/
function create_text_message($message)

 * @return string The generated text based version.
*/
function create_text_message($message)

Zeile 168Zeile 169
/**
* Generates friendly links for a text based version of a mass email from the HTML version.
*

/**
* Generates friendly links for a text based version of a mass email from the HTML version.
*

 * @param string The HTML version.

 * @param string $message_html The HTML version.

 * @return string The version with the friendly links and all <a> tags stripped.
*/
function make_pretty_links($message_html)
{
do
{

 * @return string The version with the friendly links and all <a> tags stripped.
*/
function make_pretty_links($message_html)
{
do
{

		$start = stripos($message_html, "<a", $offset);

		$start = stripos($message_html, "<a");

		if($start === false)
{
break;

		if($start === false)
{
break;