function getEditCommentEmailBody($boardid, $username, $boardname, $title, $comment) { $message = file_get_contents('mail_templates/editComment.html'); $message = str_replace('%hostname%', getServerHost(), $message); $message = str_replace('%boardid%', $boardid, $message); $message = str_replace('%username%', $username, $message); $message = str_replace('%boardname%', $boardname, $message); $message = str_replace('%title%', $title, $message); $message = str_replace('%comment%', $comment, $message); return $message; }
$dir = $_SERVER['DOCUMENT_ROOT']; $dir_public = $dir . '/reol/public/'; $img_dir = '/reol/img/'; $img_pub_dir = '/reol/public/img/'; $http_site = '/reol/'; $http_public = '/reol/public/'; $secu = "reol"; //-------------------------------------- Defini��es Iniciais define(site,'http://www2.pucpr.br'); define(http,'http://www2.pucpr.br/reol/'); define(site,'pucpr.br'); define(idioma,"pt_br"); define(path,''.$_SERVER['PATH_INFO']); define(host,getServerHost()); define(secu,'ojsbr'); $path = substr(path,1,100); $charset = "ASCII"; //-------------------------------------- Leituras das Variaveis dd0 a dd99 (POST/GET) $vars = array_merge($_GET, $_POST); for ($k=0;$k < 100;$k++) { $varf='dd'.$k; $varf=$vars[$varf]; //if (isset($varf) and ($k > 1)) { //$varf = str_replace($varf,"A","�"); } $varf = troca($varf,chr(92),''); $dd[$k] = troca($varf,"'","�"); }