For everyone who wants Admin to be notified by mail for every member's change of personal or domain data, here we are
It is not the perfect code, but it works ok and like my needs.
CHANGE DOMAIN DATA
===================
In members.php after line 633
-----------------------------
- Code: Select all
mysql_query("UPDATE $redir_table SET url='$targeturl',title='$targettitle',descr='$targetdescription',keyw='$targetkeywords',robots='$targetrobot',revisit='$targetrevisit',cat='$category' WHERE host='$hostname'") or die ("mysql_error");
ADD
------
- Code: Select all
if ($mailtoadmin == "on") {
$message = "$text_407 $targettitle\n$text_408 $targetdescription\n$text_409 $targetkeywords\n$text_70 $targeturl";
mail($adminmail,$text_406,$message,"From: $adminmail\nReply-To: $adminmail");
}
CHANGE PERSONAL DATA
=====================
In members.php after line 526
-----------------------------
- Code: Select all
}
ADD
------
- Code: Select all
if ($mailtoadmin == "on") {
$message = "$text_410 $lname\n$text_411 $fname\n$text_412 $email";
mail($adminmail,$text_413,$message,"From: $adminmail\nReply-To: $adminmail");
}
Also you have to add in your language file those :
$text_406 = "Someone Changed Domain DATA";
$text_407 = "Title";
$text_408 = "Description";
$text_409 = "Key Words";
$text_410 = "Name";
$text_411 = "Surname";
$text_412 = "Email";
$text_413 = "Someone Changed Personal DATA";