Uppercase HTML tags to lowercase Uppercase HTML tags to lowercase
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Uppercase HTML tags to lowercase

Started by kaptainkory, August 05, 2005, 10:42:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaptainkory

Bringing some of the tags into XHTML compliance.  CVS from today.

In addfav.php, FIND (line 76):

pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$location\">");

REPLACE WITH (and also notice a change to the end bracket...):

pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url=$location\" />");

In db_input.php, FIND (line 93):

            pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$redirect\">");

REPLACE WITH (and also notice a change to the end bracket...):

            pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url=$redirect\" />");

In forgot_passwd.php, FIND (line 65):

        pageheader($lang_forgot_passwd_php['forgot_passwd'], "<META http-equiv=\"refresh\" content=\"3;url=login.php\">");

REPLACE WITH (and also notice a change to the end bracket...):

        pageheader($lang_forgot_passwd_php['forgot_passwd'], "<meta http-equiv=\"refresh\" content=\"3;url=login.php\" />");

In login.php, FIND (line 39):

        pageheader($lang_login_php['login'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

REPLACE WITH (and also notice a change to the end bracket...):

        pageheader($lang_login_php['login'], "<meta http-equiv=\"refresh\" content=\"3;url=$referer\" />");

In logout.php, FIND (line 36):

pageheader($lang_logout_php['logout'], "<META http-equiv=\"refresh\" content=\"3;url=$referer\">");

REPLACE WITH (and also notice a change to the end bracket...):

pageheader($lang_logout_php['logout'], "<meta http-equiv=\"refresh\" content=\"3;url=$referer\" />");

In mode.php, FIND (line 46):

pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$referer\">");

REPLACE WITH (and also notice a change to the end bracket...):

pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url=$referer\" />");

In ratepic.php, FIND (line 120):

pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$location\">");

REPLACE WITH (and also notice a change to the end bracket...):

pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url=$location\" />");

In init.inc.php, FIND (line 402):

    pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$referer\">");

REPLACE WITH (and also notice a change to the end bracket...):

    pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url=$referer\" />");

In catmgr.php, FIND (line 456):

                        <textarea name="description" ROWS="5" COLS="40" SIZE="9"  WRAP="virtual" STYLE="WIDTH: 100%;" class="textinput">{$current_category['description']}</textarea>

REPLACE WITH:

                        <textarea name="description" rows="5" cols="40" size="9" wrap="virtual" style="width: 100%;" class="textinput">{$current_category['description']}</textarea>

In ecard.php, FIND (line 273):

                        <textarea name="message" class="textinput" ROWS="8" COLS="40" WRAP="virtual" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" STYLE="WIDTH: 100%;">$message</textarea><br /><br />

REPLACE WITH:

                        <textarea name="message" class="textinput" rows="8" cols="40" wrap="virtual" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" style="width: 100%;">$message</textarea><br /><br />

In editpics.php, FIND (line 356):

                        <textarea name="$name" ROWS="5" COLS="40" WRAP="virtual"  class="textinput" STYLE="WIDTH: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);">$value</textarea>

REPLACE WITH:

                        <textarea name="$name" rows="5" cols="40" wrap="virtual"  class="textinput" style="width: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);">$value</textarea>

In report_file.php, FIND (line 297):

<textarea name="message" class="textinput" ROWS="8" COLS="40" WRAP="virtual" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" STYLE="WIDTH: 100%;">$message</textarea><br /><br />

REPLACE WITH:

<textarea name="message" class="textinput" rows="8" cols="40" wrap="virtual" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" style="width: 100%;">$message</textarea><br /><br />

In usermgr.php, FIND (line 614):

                <textarea name="{$element[1]}" ROWS="7" WRAP="virtual"  class="textinput" STYLE="WIDTH: 100%">$value</textarea>

REPLACE WITH:

                <textarea name="{$element[1]}" rows="7" wrap="virtual"  class="textinput" style="width: 100%">$value</textarea>

Thanks.

kaptainkory

More...

There are a few more places in ecard.php and report_file.php that I didn't catch before.  Just search these files for "WIDTH" (case sensitive) to find them.

Thanks.

kaptainkory

I guess while some of the <textarea> tags are being looked at anyway...

These are proprietary attributes for that tag:

size
wrap

Maybe a style should be used instead?

Thanks.

Joachim Müller