Code: Alles auswählen
$pwd = substr(md5(rand()),0,8); // Generating password
$frontenduser->set("password", $pwd);
$frontenduser->store();
// Neu eingefügt
$db2 = new DB_Contenido;
$sql = "SELECT a.last_ku FROM {$cfg['tab']['kult_last_ku']} AS a";
$db2->query($sql);
while ($db2->next_record())
{
$kunum = $db2->f('last_ku');
}
/*
Wenn ich
$kunum ="123456";
ausgebe funzt die geschichte
*/
$strMessage .= mi18n("<br><br>Additionally, your website account has been activated. You can now use the following username and password to log in to access special areas on our website:<br>");
$strMessage .= mi18n("Username: ").$recipient->get("email").mi18n("<br>Password: ").$pwd.mi18n("<br>Kundennummer: ").$kunum;
$body = mi18n("txtMailPassword")."\n\n".mi18n("Username: ").$recipient->get("email")."\n".mi18n("Password: ").$pwd."\n\n".mi18n("Kundennummer: ").$kunum."\n\n".mi18n("Click here to login: ").$cfgClient[$client]["path"]["htmlpath"]."front_content.php?changelang=".$lang;