Permalink
Browse files

html5 fixes

  • Loading branch information...
1 parent e48405d commit 175d7c0ee08628d01c96b52478f6785046690fa6 @rwchhs rwchhs committed Aug 9, 2014
Showing with 38 additions and 37 deletions.
  1. +8 −8 admin_forums.php
  2. +1 −1 admin_icons.php
  3. +6 −6 admin_members.php
  4. +1 −1 admin_smilies.php
  5. +5 −5 ajax.php
  6. +1 −0 complete_update.php
  7. +1 −1 register.php
  8. +1 −1 skins/default/css/style.css
  9. +1 −1 viewforum.php
  10. +4 −4 viewpm.php
  11. +1 −1 viewpm_simple.php
  12. +8 −8 viewtopic.php
View
@@ -533,14 +533,14 @@
<tr>
<td class='area_1' style='padding:8px;text-align:center;'>";
if ($i>0) {
- echo "<span id='enabled_msg'><a href=\"javascript:forumSort('cat', 'up','".$cRecs[$i]['id']."');\"><img src='./images/up.gif'></a></span>";
- echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=cat&where=up&id=".$cRecs[$i]['id']."'><img src='./images/up.gif'></a></span>";
+ echo "<span id='enabled_msg'><a href=\"javascript:forumSort('cat', 'up','".$cRecs[$i]['id']."');\"><img src='./images/up.gif'/></a></span>";
+ echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=cat&where=up&id=".$cRecs[$i]['id']."'><img src='./images/up.gif'/></a></span>";
}
else
echo "&nbsp;&nbsp;&nbsp;";
if ($i<($c1-1)) {
- echo "<span id='enabled_msg'><a href=\"javascript:forumSort('cat','down','".$cRecs[$i]['id']."');\"><img src='./images/down.gif'></a></span>";
- echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=cat&where=down&id=".$cRecs[$i]['id']."'><img src='./images/down.gif'></a></span>";
+ echo "<span id='enabled_msg'><a href=\"javascript:forumSort('cat','down','".$cRecs[$i]['id']."');\"><img src='./images/down.gif'/></a></span>";
+ echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=cat&where=down&id=".$cRecs[$i]['id']."'><img src='./images/down.gif'/></a></span>";
}
else
echo "";
@@ -571,14 +571,14 @@
<td class='area_2' style='padding:8px;text-align:center;'>";
if ($j>0) {
- echo "<span id='enabled_msg'><a href=\"javascript:forumSort('forum','up','".$fRec[0]['id']."');\"><img src='./images/up.gif'></a></span>";
- echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=forum&where=up&id=".$fRec[0]['id']."'><img src='./images/up.gif'></a></span>";
+ echo "<span id='enabled_msg'><a href=\"javascript:forumSort('forum','up','".$fRec[0]['id']."');\"><img src='./images/up.gif'/></a></span>";
+ echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=forum&where=up&id=".$fRec[0]['id']."'/><img src='./images/up.gif'></a></span>";
}
else echo "&nbsp;&nbsp;&nbsp;";
if ($j<($c2-1)) {
- echo "<span id='enabled_msg'><a href=\"javascript:forumSort('forum','down','".$fRec[0]['id']."');\"><img src='./images/down.gif'></a></span>";
- echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=forum&where=down&id=".$fRec[0]['id']."'><img src='./images/down.gif'></a></span>";
+ echo "<span id='enabled_msg'><a href=\"javascript:forumSort('forum','down','".$fRec[0]['id']."');\"><img src='./images/down.gif'/></a></span>";
+ echo "<span id='disabled_msg'><a href='admin_forums.php?action=shift&what=forum&where=down&id=".$fRec[0]['id']."'><img src='./images/down.gif'/></a></span>";
}
else echo "&nbsp;&nbsp;&nbsp;";
View
@@ -253,7 +253,7 @@
foreach ($icons as $key => $icon)
{
$id = $icon['id'];
- echo "<td class='area_2' style='padding:8px;text-align:center;'><img src='".SKIN_DIR."/icons/post_icons/".$icon['filename']."' border='0'><br>".$icon['filename']."</td>\n";
+ echo "<td class='area_2' style='padding:8px;text-align:center;'><img src='".SKIN_DIR."/icons/post_icons/".$icon['filename']."' /><br>".$icon['filename']."</td>\n";
echo "<td class='area_1' style='padding:8px;text-align:center;'>";
if (count($icons) > 1)
echo "<input type='checkbox' name='{$id}_delete' value='$id'>";
View
@@ -300,27 +300,27 @@
<td class='footer_3' colspan='2'><img src='./skins/default/images/spacer.gif' alt='' title='' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/msn.gif' border='0' align='absmiddle'>&nbsp;<strong>MSN:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/msn.gif' align='absmiddle'/>&nbsp;<strong>MSN:</strong></td>
<td class='area_2'><input type='text' name='msn' size='20' value='".$rec[0]["msn"]."' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/yahoo.gif' border='0' align='absmiddle'>&nbsp;<strong>YIM:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/yahoo.gif' align='absmiddle'/>&nbsp;<strong>YIM:</strong></td>
<td class='area_2'><input type='text' name='yahoo' size='20' value='".$rec[0]["yahoo"]."' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/icq.gif' border='0' align='absmiddle'>&nbsp;<strong>ICQ:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/icq.gif' align='absmiddle'/>&nbsp;<strong>ICQ:</strong></td>
<td class='area_2'><input type='text' name='icq' size='20' value='".$rec[0]["icq"]."' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/aol.gif' border='0' align='absmiddle'>&nbsp;<strong>AOL:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/aol.gif' align='absmiddle'/>&nbsp;<strong>AOL:</strong></td>
<td class='area_2'><input type='text' name='icq' size='20' value='".$rec[0]["aim"]."' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/twitter.png' border='0' align='absmiddle'>&nbsp;<strong>Twitter:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/twitter.png' align='absmiddle'/>&nbsp;<strong>Twitter:</strong></td>
<td class='area_2'><input type='text' name='twitter' size='20' value='".$rec[0]["twitter"]."' /></td>
</tr>
<tr>
- <td class='area_1' style='padding:8px;'><img src='images/skype.gif' border='0' align='absmiddle'>&nbsp;<strong>Skype:</strong></td>
+ <td class='area_1' style='padding:8px;'><img src='images/skype.gif' align='absmiddle'/>&nbsp;<strong>Skype:</strong></td>
<td class='area_2'><input type='text' name='skype' size='20' value='".$rec[0]["skype"]."' /></td>
</tr>
<tr>
View
@@ -86,7 +86,7 @@
if (strlen($_POST['bbcode'][$key]) > 10)
$alt = basename($_FILES['icon_file']['name'][$key]);
- $replace = "<img src='./smilies/".basename($_FILES['icon_file']['name'][$key])."' border='0' alt='$alt'>";
+ $replace = "<img src='./smilies/".basename($_FILES['icon_file']['name'][$key])."' alt='$alt'/>";
$array = array('bbcode'=>$_POST['bbcode'][$key],'replace'=>$replace,'type'=>$_POST['type'][$key]);
$bdb->add('smilies',$array);
$success[$key]['name'] = $_FILES['icon_file']['name'][$key];
View
@@ -250,7 +250,7 @@
if (@$user[0]["avatar"] != "")
{
$resize = MiscFunctions::resize_img($user[0]['avatar'],$_REGIST["avatarupload_dim"]);
- $output .= "<br /><center><img src=\"".$user[0]["avatar"]."\" border='0' $resize alt='' title=''></center><br />";
+ $output .= "<br /><center><img src=\"".$user[0]["avatar"]."\" $resize alt='' title=''/></center><br />";
}
else $output .= "<br /><br />";
$output .= "<div class='post_info'><center><span style='color:#".$statuscolor."'><img src='".$statusrank."'><br><strong>".$status."</strong></span></center></div>";
@@ -265,10 +265,10 @@
</div>
<br />
<div class='post_info_extra'>";
- if ($user[0]["aim"] != "") $output .= "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' border='0' alt='AIM: ".$user[0]["aim"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["msn"] != "") $output .= "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' border='0' alt='MSN: ".$user[0]["msn"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["icq"] != "") $output .= "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' border='0' alt='ICQ: ".$user[0]["icq"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["yahoo"] != "") $output .= "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img border=0 src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'></a>";
+ if ($user[0]["aim"] != "") $output .= "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' alt='AIM: ".$user[0]["aim"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["msn"] != "") $output .= "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' alt='MSN: ".$user[0]["msn"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["icq"] != "") $output .= "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' alt='ICQ: ".$user[0]["icq"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["yahoo"] != "") $output .= "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'/></a>";
$output .= "</div>";
$output .= "</td>
View
@@ -19,6 +19,7 @@
fwrite($f, implode("\n", $lines));
fclose($f);
?>
+<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>UPB v2.2.5 Updater</title>
View
@@ -278,7 +278,7 @@
<a href=\"#\" onclick=\"document.getElementById('captcha').src='./includes/thirdparty/cool-php-captcha-0.3.1/captcha.php?'+Math.random();
document.getElementById('captcha-form').focus();\"
id=\"change-image\">Load new image?</a></td>
- <td class='area_2'><div><img src=\"./includes/thirdparty/cool-php-captcha-0.3.1/captcha.php\" id=\"captcha\"></div>
+ <td class='area_2'><div><img src=\"./includes/thirdparty/cool-php-captcha-0.3.1/captcha.php\" id=\"captcha\"/></div>
<input type=\"text\" name=\"captcha\" id=\"captcha-form\" autocomplete=\"off\" size=\"40\"/></td>
</tr>";
}
@@ -60,7 +60,7 @@ a:hover {
/* This eliminates the border that some browsers place around an image
when it is used as a link */
img {
- border : 0;
+ border : 0; /* delete all border tags in HTML */
display:inline; /*vertical-align:absmiddle is in html, not in css*/
}
View
@@ -171,7 +171,7 @@
echo "
<tr>
<td class='area_2' onmouseover=\"this.className='area_2_over'\" onmouseout=\"this.className='area_2'\">
- <span class='link_1'><a href='xml.php?id=".$_GET["id"]."&amp;t_id=".$tRec["id"]."'><img src='images/rss.png' class='rss' alt='RSS Feed' title='RSS Feed'></a> ".$tRec["subject"].$r_ext."</span>
+ <span class='link_1'><a href='xml.php?id=".$_GET["id"]."&amp;t_id=".$tRec["id"]."'><img src='images/rss.png' class='rss' alt='RSS Feed' title='RSS Feed'/></a> ".$tRec["subject"].$r_ext."</span>
<div class='description'>Started By:&nbsp;<span style='color:#".$statuscolor."'>".$tRec["topic_starter"]."</span></div>
<div class='box_posts'><strong>Views:</strong>&nbsp;".$tRec["views"]."</div>
<div class='box_posts'><strong>Replies:</strong>&nbsp;".$tRec["replies"]."</div></td>
View
@@ -121,10 +121,10 @@
</div>
<br />
<div class='post_info_extra'>";
- if ($user[0]["aim"] != "") echo "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' border='0' alt='AIM: ".$user[0]["aim"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["msn"] != "") echo "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' border='0' alt='MSN: ".$user[0]["msn"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["icq"] != "") echo "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' border='0' alt='ICQ: ".$user[0]["icq"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["yahoo"] != "") echo "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img border=0 src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'></a>";
+ if ($user[0]["aim"] != "") echo "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' border='0' alt='AIM: ".$user[0]["aim"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["msn"] != "") echo "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' border='0' alt='MSN: ".$user[0]["msn"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["icq"] != "") echo "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' border='0' alt='ICQ: ".$user[0]["icq"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["yahoo"] != "") echo "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img border=0 src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'/></a>";
echo "</div></td>
<td class='area_2' valign=top>
<div style='padding:12px;margin-bottom:20px;'>$message</div>
View
@@ -13,7 +13,7 @@
$PrivMsg->setFp("CuBox", ceil($_COOKIE["id_env"]/120));
$pmRec = $PrivMsg->get("CuBox", $_GET["id"]);
echo "
- <div class='simple_head' colspan='2'><div style='float:left;margin-right:4px;'><img src='./skins/default/icons/post_icons/".$pmRec[0]["icon"]."'></div><div style='line-height:15px;'>".$pmRec[0]["subject"]."</div></td>";
+ <div class='simple_head' colspan='2'><div style='float:left;margin-right:4px;'><img src='./skins/default/icons/post_icons/".$pmRec[0]["icon"]."'></div><div style='line-height:15px;'/>".$pmRec[0]["subject"]."</div></td>";
$table_color = "area_1";
$user = $tdb->get("users", $pmRec[0]["from"]);
View
@@ -74,7 +74,7 @@
else $first_post = 0;
$x = +1;
-echo "<div name='current_posts' id='current_posts'>";
+echo "<div id='current_posts'>";
foreach($pRecs as $pRec) {
// display each post in the current topic
@@ -150,18 +150,18 @@
if ($pRec["user_id"] != "0") echo "<a href='profile.php?action=get&amp;id=".$pRec["user_id"]."'>".$pRec["user_name"]."</a>";
else echo $pRec["user_name"];
echo "</div></th>
- <th><div style='float:left;'><img src='".SKIN_DIR."/icons/post_icons/".$pRec["icon"]."' alt=''></div><div style='align:right;'>$delete $edit $quote $reply</div></th>
+ <th><div style='float:left;'><img src='".SKIN_DIR."/icons/post_icons/".$pRec["icon"]."' alt=''/></div><div style='align:right;'>$delete $edit $quote $reply</div></th>
</tr>
<tr>
<td class='$table_color' style='width:15%; vertical-align:top;'>";
if (@$user[0]["avatar"] != "")
{
$resize = MiscFunctions::resize_img($user[0]['avatar'],$_REGIST["avatarupload_dim"]);
- echo "<br /><style='align:center'><img src=\"".$user[0]["avatar"]."\" border='0' $resize alt='' title=''></style><br />";
+ echo "<br /><style='align:center'><img src=\"".$user[0]["avatar"]."\" $resize alt='' title=''/></style><br />";
}
else if ($pRec["user_id"] != "0")
echo "<br /><br />";
- print "<div class='post_info' style='align:center'><span style='color:#".$statuscolor."'><img src='".$statusrank."'><br><strong>".$status."</strong></span></div>";
+ print "<div class='post_info' style='align:center'><span style='color:#".$statuscolor."'><img src='".$statusrank."'/><br><strong>".$status."</strong></span></div>";
if ($pRec["user_id"] != "0") echo "
<div class='post_info'>
<strong>Posts:</strong> ".$user[0]["posts"]."
@@ -172,10 +172,10 @@
</div>
<br />
<div class='post_info_extra'>";
- if ($user[0]["aim"] != "") echo "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' border='0' alt='AIM: ".$user[0]["aim"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["msn"] != "") echo "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' border='0' alt='MSN: ".$user[0]["msn"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["icq"] != "") echo "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' border='0' alt='ICQ: ".$user[0]["icq"]."'></a>&nbsp;&nbsp;";
- if ($user[0]["yahoo"] != "") echo "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img border=0 src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&amp;m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'></a>";
+ if ($user[0]["aim"] != "") echo "&nbsp;<a href='aim:goim?screenname=".$user[0]["aim"]."'><img src='images/aol.gif' alt='AIM: ".$user[0]["aim"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["msn"] != "") echo "&nbsp;<a href='http://members.msn.com/".$user[0]["msn"]."' target='_blank'><img src='images/msn.gif' alt='MSN: ".$user[0]["msn"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["icq"] != "") echo "&nbsp;<a href='http://wwp.icq.com/scripts/contact.dll?msgto=".$user[0]["icq"]."&action=message'><img src='images/icq.gif' alt='ICQ: ".$user[0]["icq"]."'/></a>&nbsp;&nbsp;";
+ if ($user[0]["yahoo"] != "") echo "&nbsp;<a href='http://edit.yahoo.com/config/send_webmesg?.target=".$user[0]["yahoo"]."&.src=pg'><img src='http://opi.yahoo.com/online?u=".$user[0]["yahoo"]."&amp;m=g&t=0' alt='Y!: ".$user[0]["yahoo"]."'/></a>";
echo"</div>";
echo "</td>

0 comments on commit 175d7c0

Please sign in to comment.