I've missed adding the threads configuration array to the function. A couple of lines above the last change (around line 56) you should change the following lines:
Code
function sendNewPass( $option ) {<br /> global $database, $Itemid;<br /> global $mosConfig_live_site, $mosConfig_sitename;<br /> global $w3tuser;<br />
To this:
Code
function sendNewPass( $option ) {<br /> global $database, $Itemid;<br /> global $mosConfig_live_site, $mosConfig_sitename;<br /> global $w3tuser, $w3tconfig;<br />
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.