Domain Data 's CHANGE

Do you have suggestions how to improve myLounge Redirection? Want to give a feedback? Or even found a bug? Then please post in here.

Moderator: Scooby

Domain Data 's CHANGE

Postby Spark » Sun Apr 25, 2004 9:04 pm

Hello ,

i noticed something in the script and i would like to ask how i can do this, because i beleive that is Importand for all admin users of the script!

A member that allready has registered a subdomain can change the target url from members area, uh?

The point is that admin doesn't receive a mail to tell him about that change.

I think that it could be better if admin takes mail for every change a member does.

What do you think about?



Thanks :)
Spark
 

Postby Spark » Wed Apr 28, 2004 4:52 pm

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";
Spark
 


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 5 guests

cron