diff --git a/mozilla/webtools/update/developers/usermanager.php b/mozilla/webtools/update/developers/usermanager.php index 83f5d5022b3..4926bff35d7 100755 --- a/mozilla/webtools/update/developers/usermanager.php +++ b/mozilla/webtools/update/developers/usermanager.php @@ -345,6 +345,7 @@ if ($usermode=="A") {$a="TRUE"; $e="TRUE"; } echo"\n"; ?> +Warning: Setting E-Mail Public to Visible will show your e-mail address in plaintext on your profile. Do not enable this if you wish to keep your e-mail address hidden.     ?');"> @@ -507,6 +508,10 @@ if (!$userid) { $userid = $_POST["userid"]; } } else {} ?> + + + + diff --git a/mozilla/webtools/update/extensions/authorprofiles.php b/mozilla/webtools/update/extensions/authorprofiles.php index 83df35651f7..3b7d18da99f 100644 --- a/mozilla/webtools/update/extensions/authorprofiles.php +++ b/mozilla/webtools/update/extensions/authorprofiles.php @@ -39,13 +39,10 @@ - - - - - - + + + -Mozilla Update :: Extensions - Author Profile: <?php echo"$row[UserName]"; ?> + Mozilla Update :: Extensions - Author Profile: <?php echo"$row[UserName]"; ?> + - - - -
+ +
+ + +
+ -

Author Profile »

+

Author Profile »

Homepage: $userwebsite"; +if ($userwebsite) {echo"$userwebsite"; } else { echo"Not Available for this Author"; } @@ -96,12 +95,12 @@ echo"Not Available for this Author"; E-Mail: E-Mail form below"; +echo"$useremail"; } ?>  
-

All Extensions and Themes by

+

All Extensions and Themes by

$name"; + if ($type=="E") { + $typename = "extensions"; + } else if ($type=="T") { + $typename = "themes"; + } + +echo"

$name

"; echo"$description
\n"; } } @@ -149,37 +154,7 @@ echo"No Extensions or Themes in the Database for $username"; ?>
 
- - -

Send an E-Mail to

- -"; -if ($mail=="successful") { -echo"Your message has been sent successfully..."; -} else if ($mail=="unsuccessful") { -echo"An error occured, your message was not sent... Please try again..."; -} -echo"
\n"; -} -?> -
-"> -Your Name:
-Email:
-Subject:
-Message:
-

-  
-
-
-

- -// -// Alternatively, the contents of this file may be used under the terms of -// either the GNU General Public License Version 2 or later (the "GPL"), or -// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -// in which case the provisions of the GPL or the LGPL are applicable instead -// of those above. If you wish to allow use of your version of this file only -// under the terms of either the GPL or the LGPL, and not to allow others to -// use your version of this file under the terms of the MPL, indicate your -// decision by deleting the provisions above and replace them with the notice -// and other provisions required by the GPL or the LGPL. If you do not delete -// the provisions above, a recipient may use your version of this file under -// the terms of any one of the MPL, the GPL or the LGPL. -// -// ***** END LICENSE BLOCK ***** -?> -Error: no valid user to e-mail, possible attempt to spam detected..."); -} - -//Get E-Mail Address from DB based on passed data.. - $sql = "SELECT `UserEmail` FROM `t_userprofiles` WHERE `UserID` = '$_POST[senduserid]' AND `UserEmailHide`='0' LIMIT 1"; - $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); - $row = mysql_fetch_array($sql_result); - $to_address=$row["UserEmail"]; - - -//All From_, To_, and subject variables are passed from the form -// and do not need to be defined here.. unless debugging.. - -$from_name = $_POST["fromname"]; -$from_address = $_POST["fromemail"]; -$subject = $_POST["subject"]; - -//Anti-Abuse -$findme = '@'; -$pos = strpos($to_address, $findme); - -if ($pos === false) { -//This isn't a valid e-mail address being passed... -//Send the e-mail message to the $from_address, just for fun.. -$to_address = $from_address; -} - -$message = $_POST["body"]; - -//Message Footer (Auto-Appended to Messages sent using this form. -$message .= "\n\n"; -$message .= "____________________________________\n"; -$message .= "Message sent through the Mozilla Update Message system.\n -The system allows visitors to send you e-mail without revealing your e-mail address to them. -If you no longer wish to receive e-mail from visitors, you may change your preferences online at http;//update.mozilla.org.\n"; - - -$headers .= "MIME-Version: 1.0\r\n"; -$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; -$headers .= "From: ".$from_name." <".$from_address.">\r\n"; -$headers .= "Reply-To: ".$from_name." <".$from_address.">\r\n"; -$headers .= "X-Priority: 3\r\n"; -$headers .= "X-MSMail-Priority: Normal\r\n"; -$headers .= "X-Mailer: Mozilla Update Message System 1.0"; - -$mailstatus = mail($to_address, $subject, $message, $headers); - - - -if ($mailstatus===FALSE) { -//Message Unsuccessful -$return_path="extensions/authorprofiles.php?id=$_POST[senduserid]&mail=unsuccessful"; - -} else if ($mailstatus===TRUE) { -//Message Successful -$return_path="extensions/authorprofiles.php?id=$_POST[senduserid]&mail=successful"; - -} -header("Location: http://$_SERVER[HTTP_HOST]/$return_path#email"); -exit; - -?> \ No newline at end of file diff --git a/mozilla/webtools/update/themes/authorprofiles.php b/mozilla/webtools/update/themes/authorprofiles.php index 3a52512e271..3ee089bcdd9 100644 --- a/mozilla/webtools/update/themes/authorprofiles.php +++ b/mozilla/webtools/update/themes/authorprofiles.php @@ -39,13 +39,10 @@ - - - - - - + + + -Mozilla Update :: Themes - Author Profile: <?php echo"$row[UserName]"; ?> + Mozilla Update :: Themes - Author Profile: <?php echo"$row[UserName]"; ?> + - - - -
+ +
+ + +
+ -

Author Profile »

+

Author Profile »

Homepage: $userwebsite"; +if ($userwebsite) {echo"$userwebsite"; } else { echo"Not Available for this Author"; } @@ -96,12 +95,12 @@ echo"Not Available for this Author"; E-Mail: E-Mail form below"; +echo"$useremail\n"; } ?>  
-

All Extensions and Themes by

+

All Extensions and Themes by

$name"; + if ($type=="E") { + $typename = "extensions"; + } else if ($type=="T") { + $typename = "themes"; + } + +echo"

$name

"; echo"$description
\n"; } } @@ -150,37 +154,7 @@ echo"No Extensions or Themes in the Database for $username"; ?>
 
- - -

Send an E-Mail to

- -"; -if ($mail=="successful") { -echo"Your message has been sent successfully..."; -} else if ($mail=="unsuccessful") { -echo"An error occured, your message was not sent... Please try again..."; -} -echo"
\n"; -} -?> -
-"> -Your Name:
-Email:
-Subject:
-Message:
-

-  
-
-
-

- -// -// Alternatively, the contents of this file may be used under the terms of -// either the GNU General Public License Version 2 or later (the "GPL"), or -// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -// in which case the provisions of the GPL or the LGPL are applicable instead -// of those above. If you wish to allow use of your version of this file only -// under the terms of either the GPL or the LGPL, and not to allow others to -// use your version of this file under the terms of the MPL, indicate your -// decision by deleting the provisions above and replace them with the notice -// and other provisions required by the GPL or the LGPL. If you do not delete -// the provisions above, a recipient may use your version of this file under -// the terms of any one of the MPL, the GPL or the LGPL. -// -// ***** END LICENSE BLOCK ***** -?> -Error: no valid user to e-mail, possible attempt to spam detected..."); -} - -//Get E-Mail Address from DB based on passed data.. - $sql = "SELECT `UserEmail` FROM `t_userprofiles` WHERE `UserID` = '$_POST[senduserid]' AND `UserEmailHide`='0' LIMIT 1"; - $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); - $row = mysql_fetch_array($sql_result); - $to_address=$row["UserEmail"]; - - -//All From_, To_, and subject variables are passed from the form -// and do not need to be defined here.. unless debugging.. - -$from_name = $_POST["fromname"]; -$from_address = $_POST["fromemail"]; -$subject = $_POST["subject"]; - -//Anti-Abuse -$findme = '@'; -$pos = strpos($to_address, $findme); - -if ($pos === false) { -//This isn't a valid e-mail address being passed... -//Send the e-mail message to the $from_address, just for fun.. -$to_address = $from_address; -} - -$message = $_POST["body"]; - -//Message Footer (Auto-Appended to Messages sent using this form. -$message .= "\n\n"; -$message .= "____________________________________\n"; -$message .= "Message sent through the Mozilla Update Message system.\n -The system allows visitors to send you e-mail without revealing your e-mail address to them. -If you no longer wish to receive e-mail from visitors, you may change your preferences online at http;//update.mozilla.org.\n"; - - -$headers .= "MIME-Version: 1.0\r\n"; -$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; -$headers .= "From: ".$from_name." <".$from_address.">\r\n"; -$headers .= "Reply-To: ".$from_name." <".$from_address.">\r\n"; -$headers .= "X-Priority: 3\r\n"; -$headers .= "X-MSMail-Priority: Normal\r\n"; -$headers .= "X-Mailer: Mozilla Update Message System 1.0"; - -$mailstatus = mail($to_address, $subject, $message, $headers); - - - -if ($mailstatus===FALSE) { -//Message Unsuccessful -$return_path="extensions/authorprofiles.php?id=$_POST[senduserid]&mail=unsuccessful"; - -} else if ($mailstatus===TRUE) { -//Message Successful -$return_path="extensions/authorprofiles.php?id=$_POST[senduserid]&mail=successful"; - -} -header("Location: http://$_SERVER[HTTP_HOST]/$return_path#email"); -exit; - -?> \ No newline at end of file