SqlRow("SELECT * FROM $table_global_config"); if(empty($row_config_globale['language']))$row_config_globale['language']="english"; include("include/lang/".$row_config_globale['language'].".php"); $tPath = ($row_config_globale['path'] == '/' ? $row_config_globale['path'] : '/' . $row_config_globale['path']); if ($h=='fake_hash') { $msg = get_message_preview($cnx, $row_config_globale['table_sauvegarde'], $l); $messageTemp = stripslashes($msg['textarea']); $trac = ""; } else { $msg = get_message($cnx, $row_config_globale['table_archives'], $i); $messageTemp = stripslashes($msg['message']); $trac = ""; } $newsletter = getConfig($cnx, $l, $row_config_globale['table_listsconfig']); $tPath = ($row_config_globale['path'] == '' ? '/' : $row_config_globale['path']); $body = ""; $body .= ""; $body .= "
"; $body .= tr("READ_ON_LINE", "")."
"; $body .= tr("ADD_ADRESS_BOOK", $newsletter['from_addr'] )."
"; $body .= "
"; $new_url = 'href="' . $row_config_globale['base_url'] . $tPath .'r.php?m='.$i.'&h='.$h.'&l='.$l.'&r='; $message = preg_replace_callback( '/href="(http:\/\/)?([^"]+)"/', function($matches) { global $new_url; return $new_url.(urlencode(@$matches[1].$matches[2])).'"'; },$messageTemp); $unsubLink = "

" .tr("UNSUBSCRIBE_LINK","
") ."
"; $body .= $trac . $message . $unsubLink; echo $body; }