From 56552d1e2b1a8191b38449a763787c0743316c1f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 31 Jul 2001 21:34:06 +0000 Subject: [PATCH] More compliance ... it never ends git-svn-id: file:///svn/phpbb/trunk@773 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 18 ++++---- phpBB/profile.php | 2 +- phpBB/templates/PSO/profile_add_body.tpl | 56 ++++++++++++------------ 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ee87251a6d..a5125c4913 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -207,7 +207,7 @@ function make_forum_box($box_name, $default_forum = -1) $boxstring .= "\n"; } } @@ -664,7 +664,7 @@ function template_select($default, $dirname = "templates") { if($file == $default) { - $selected = " selected"; + $selected = " selected=\"selected\""; } $template_select .= "\n"; } @@ -695,7 +695,7 @@ function theme_select($default) { if(stripslashes($rowset[$i]['themes_name']) == $default || $rowset[$i]['themes_id'] == $default) { - $selected = " selected"; + $selected = " selected=\"selected\""; } else { @@ -730,10 +730,10 @@ function tz_select($default) "-11" => "(GMT -11:00 hours) Midway Island, Samoa", "-10" => "(GMT -10:00 hours) Hawaii", "-9" => "(GMT -9:00 hours) Alaska", - "-8" => "(GMT -8:00 hours) Pacific Time (US & Canada)", - "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)", - "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City", - "-5" => "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito", + "-8" => "(GMT -8:00 hours) Pacific Time (US & Canada)", + "-7" => "(GMT -7:00 hours) Mountain Time (US & Canada)", + "-6" => "(GMT -6:00 hours) Central Time (US & Canada), Mexico City", + "-5" => "(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito", "-4" => "(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz", "-3.5" => "(GMT -3:30 hours) Newfoundland", "-3" => "(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown", @@ -759,7 +759,7 @@ function tz_select($default) while(list($offset, $zone) = each($tz_array)) { - $selected = ($offset == $default) ? " selected" : ""; + $selected = ($offset == $default) ? " selected=\"selected\"" : ""; $tz_select .= "\t\n"; } $tz_select .= "\n"; diff --git a/phpBB/profile.php b/phpBB/profile.php index eeba6a7221..22b05e4705 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -645,7 +645,7 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) { if($mode == "editprofile") { - $sql = "UPDATE " . USERS_TABLE . " + echo $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = '$email', user_icq = '$icq', user_website = '$website', user_occ = '$occupation', user_from = '$location', user_interests = '$interests', user_sig = '$signature', user_viewemail = $viewemail, user_aim = '$aim', user_yim = '$yim', user_msnm = '$msn', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify_pm = $notifypm, user_timezone = $user_timezone, user_dateformat = '$user_dateformat', user_lang = '$user_lang', user_template = '$user_template', user_theme = $user_theme" . $avatar_sql . " WHERE user_id = $user_id"; diff --git a/phpBB/templates/PSO/profile_add_body.tpl b/phpBB/templates/PSO/profile_add_body.tpl index 2c5b30afd8..8dadf4fe3d 100644 --- a/phpBB/templates/PSO/profile_add_body.tpl +++ b/phpBB/templates/PSO/profile_add_body.tpl @@ -12,55 +12,55 @@ {L_REGISTRATION_INFO}
{L_ITEMS_REQUIRED} - {L_USERNAME}: *
{L_USER_UNIQ} - + {L_USERNAME}: * + - {L_EMAIL_ADDRESS}: * - + {L_EMAIL_ADDRESS}: * + {L_PASSWORD}: *
{L_PASSWORD_IF_CHANGED} - + {L_CONFIRM} {L_PASSWORD}: *
{L_PASSWORD_CONFIRM_IF_CHANGED} - + {L_PROFILE_INFO}
{L_PROFILE_INFO_NOTICE} {L_ICQ_NUMBER}: - + {L_AIM}: - + {L_MESSENGER}: - + {L_YAHOO}: - + {L_WEBSITE}: - + {L_LOCATION}: - + {L_OCCUPATION}: - + {L_INTERESTS}: - + {L_SIGNATURE}:
{L_SIGNATURE_EXPLAIN}

{L_HTML_IS} {HTML_STATUS}
{L_BBCODE_IS} {BBCODE_STATUS}
{L_SMILIES_ARE} {SMILIES_STATUS}
@@ -71,31 +71,31 @@ {L_PUBLIC_VIEW_EMAIL}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_HIDE_USER}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_NOTIFY_ON_PRIVMSG}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_ALWAYS_ADD_SIGNATURE}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_ALWAYS_ALLOW_BBCODE}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_ALWAYS_ALLOW_HTML}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_ALWAYS_ALLOW_SMILIES}: - {L_YES}   {L_NO} + {L_YES}   {L_NO} {L_BOARD_LANGUAGE}: @@ -115,7 +115,7 @@ {L_DATE_FORMAT}:
{L_DATE_FORMAT_EXPLAIN} - + @@ -125,35 +125,35 @@ - +
{L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
{AVATAR}
 {L_DELETE_AVATAR}
{L_CURRENT_IMAGE}
{AVATAR}
 {L_DELETE_AVATAR}
{L_UPLOAD_AVATAR_FILE}: - + {L_UPLOAD_AVATAR_URL}:
{L_UPLOAD_AVATAR_URL_EXPLAIN} - + {L_LINK_REMOTE_AVATAR}:
{L_LINK_REMOTE_AVATAR_EXPLAIN} - + {L_AVATAR_GALLERY}: - + - {S_HIDDEN_FIELDS}   + {S_HIDDEN_FIELDS}