Mailer New Your Account Admin Edits

From MontegoScriptsWiki
Jump to: navigation, search

Home>Mailer>New Installation>Core File Edits>modules/Your_Account/admin/index.php

Given the vast number of *nuke-based forks and versions across all of these, we cannot possibly provide updates to all of them. In fact, the bulk of the updates will be based upon PHP-Nuke 7.6 just like the instructions for new installations. However, where possible, a few RavenNukeā„¢ specific notes will be added as helpful hints along the way.

Here are the required edits for this script:

Open File

Open the following file to edit:

modules/Your_Acount/admin/index.php

Modify updateUser() Function Code

FIND THIS CODE BLOCK (THREE INSTANCES) WITHIN FUNCTION updateUser():

mail($row2[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE) {
  $to = array(array($row2['user_email'], $row2['username']));
  $mailsuccess = tnml_fMailer($to, $subject, $body, $adminmail, $sitename);
} else {
  $mailsuccess = mail($row2['user_email'], $subject, $body, "From: $from\r\nX-Mailer: PHP/" . phpversion());
}
//mail($row2[user_email], $subject, $body, "From: $from\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */
Personal tools