Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: PM užsireginus

Parašė ex-it· 2008 Rugp. 8 19:08:38
#1

Užsireginus narys gauna pm, o adminas informaciją apie jį į pm.


Register.php žemiau include LOCALE.LOCALESET."user_fields.php";
Dedame...
$pm_asubject = "A New User Have Been Registered.";
$pm_amessage = "Details:<br />
User Name: ".(isset($_POST['username']) ? $_POST['username'] : "")."<br />
Email Address: ".$email."<br />
IP: ".USER_IP."<br />";
$pm_nsubject = "Welcome ".$settings['sitename'];
$pm_nmessage = "Dear ".(isset($_POST['username']) ? $_POST['username'] : "").".<br />
Welcome ".$settings['sitename']."<br />
Hope You Enjoy.<br />
Regards, Site Admin.";




Randame: echo "<center><br>\n".$locale['455']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";

Dedame po juo:
 // PM On New User To Admin & New User
$data = dbarray(dbquery("SELECT user_id, user_joined FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
$pm_admin = dbquery("INSERT INTO ".$db_prefix."messages (message_id, message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('0', '1', '1', '$pm_asubject', '$pm_amessage', 'n', '0', '".time()."', '0')");
$pm_nuser = dbquery("INSERT INTO ".$db_prefix."messages (message_id, message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('0', '".$data['user_id']."', '1', '$pm_nsubject', '$pm_nmessage', 'n', '0', '".time()."', '0')");
// Finish





Randame: echo "<center><br>\n".$locale['451']."<br><br>\n".$locale['452']."<br><br>\n</center>\n";


Dedame po juo:

 // PM On New User To Admin & New User
$data = dbarray(dbquery("SELECT user_id, user_joined FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
$pm_admin = dbquery("INSERT INTO ".$db_prefix."messages (message_id, message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('0', '1', '1', '$pm_asubject', '$pm_amessage', 'n', '0', '".time()."', '0')");
$pm_nuser = dbquery("INSERT INTO ".$db_prefix."messages (message_id, message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('0', '".$data['user_id']."', '1', '$pm_nsubject', '$pm_nmessage', 'n', '0', '".time()."', '0')");
// Finish




Man viskas veikia, todėl nerėkit, kad neveik ;)