@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | return $x; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | -function pm_team_form($user, $teamid, $error=null) { |
|
| 54 | +function pm_team_form($user, $teamid, $error = null) { |
|
| 55 | 55 | global $bbcode_html, $bbcode_js; |
| 56 | 56 | $team = BoincTeam::lookup_id($teamid); |
| 57 | 57 | if (!$team) { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | error_page("not admin"); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - page_head(tra("Send message to team"),'','','', $bbcode_js); |
|
| 64 | + page_head(tra("Send message to team"), '', '', '', $bbcode_js); |
|
| 65 | 65 | |
| 66 | 66 | $subject = post_str("subject", true); |
| 67 | 67 | $content = post_str("content", true); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | function pm_form_page($replyto, $userid, $error = null) { |
| 114 | 114 | global $bbcode_html, $bbcode_js; |
| 115 | 115 | global $g_logged_in_user; |
| 116 | - page_head(tra("Send private message"),'','','', $bbcode_js); |
|
| 116 | + page_head(tra("Send private message"), '', '', '', $bbcode_js); |
|
| 117 | 117 | |
| 118 | 118 | if (post_str("preview", true) == tra("Preview")) { |
| 119 | 119 | $content = post_str("content", true); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | if (!$user) { |
| 138 | 138 | error_page("Sender no longer exists"); |
| 139 | 139 | } |
| 140 | - $writeto = UNIQUE_USER_NAME?$user->name:$userid." (".$user->name.")"; |
|
| 140 | + $writeto = UNIQUE_USER_NAME ? $user->name : $userid." (".$user->name.")"; |
|
| 141 | 141 | $subject = $message->subject; |
| 142 | 142 | if (substr($subject, 0, 3) != "re:") { |
| 143 | 143 | $subject = "re: ".$subject; |
@@ -147,15 +147,15 @@ discard block |
||
| 147 | 147 | if (!$user) { |
| 148 | 148 | error_page("Sender no longer exists"); |
| 149 | 149 | } |
| 150 | - $writeto = UNIQUE_USER_NAME?$user->name:$userid." (".$user->name.")"; |
|
| 150 | + $writeto = UNIQUE_USER_NAME ? $user->name : $userid." (".$user->name.")"; |
|
| 151 | 151 | } else { |
| 152 | 152 | $writeto = sanitize_tags(post_str("to", true)); |
| 153 | 153 | $subject = post_str("subject", true); |
| 154 | 154 | $content = post_str("content", true); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - $content = $content?htmlspecialchars($content):''; |
|
| 158 | - $subject = $subject?htmlspecialchars($subject):''; |
|
| 157 | + $content = $content ?htmlspecialchars($content) : ''; |
|
| 158 | + $subject = $subject ?htmlspecialchars($subject) : ''; |
|
| 159 | 159 | |
| 160 | 160 | if ($error != null) { |
| 161 | 161 | echo "<p class=\"text-danger\">".$error."</p>\n"; |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | function send_pm_notification_email( |
| 212 | 212 | $logged_in_user, $to_user, $subject, $content |
| 213 | 213 | ) { |
| 214 | - $message = " |
|
| 214 | + $message = " |
|
| 215 | 215 | You have received a new private message at ".PROJECT.". |
| 216 | 216 | |
| 217 | 217 | From: $logged_in_user->name (ID $logged_in_user->id) |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $pm = BoincPrivateMessage::lookup_id($notify->opaque); |
| 242 | 242 | $from_user = BoincUser::lookup_id($pm->senderid); |
| 243 | 243 | if (!$pm || !$from_user) return null; |
| 244 | - return "<a href=pm.php>".tra("Private message%1 from %2, subject:" , "</a>", $from_user->name )." $pm->subject"; |
|
| 244 | + return "<a href=pm.php>".tra("Private message%1 from %2, subject:", "</a>", $from_user->name)." $pm->subject"; |
|
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | function pm_send_msg($from_user, $to_user, $subject, $content, $send_email) { |
@@ -305,11 +305,11 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | function pm_email_remind($user) { |
| 307 | 307 | if (!$user->prefs->pm_notification) { |
| 308 | - return "<br><small>" . |
|
| 308 | + return "<br><small>". |
|
| 309 | 309 | tra( |
| 310 | 310 | "For email notification, %1 edit community prefs %2", |
| 311 | 311 | '<a href="edit_forum_preferences_form.php">', '</a>' |
| 312 | - ) . |
|
| 312 | + ). |
|
| 313 | 313 | "</small>" |
| 314 | 314 | ; |
| 315 | 315 | } |
@@ -335,5 +335,5 @@ discard block |
||
| 335 | 335 | } |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | -$cvs_version_tracker[]="\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $"; |
|
| 338 | +$cvs_version_tracker[] = "\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $"; |
|
| 339 | 339 | ?> |