Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x
Author Message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Wed Sep 07, 2005 12:08 pm Reply with quote

Hi

I didn't see this version before release, so I never validated fixes for compliance.

Please find the below changes to fix compliance issues with 2.4.1

1) /language/nukesentinel/lang-english.php
Find the
Code:
&

symbol on lines: 107, 131, 132, 133, 136, 169, 170 and 220 and replace with:
Code:
&


2) /admin/modules/nukesentinel/ABTrackedPages.php
Find the below code at lines 35 through 56:
Code:
// Page Sorting

echo "<form method='post' action='".$admin_file.".php?op=ABTrackedPages'>\n";
echo "<input type='hidden' name='min' value='$min'>\n";
echo "<input type='hidden' name='user_id' value='$user_id'>\n";
echo "<input type='hidden' name='ip_addr' value='$ip_addr'>\n";
echo "<td align='left' bgcolor='$bgcolor2' colspan='3'><b>"._AB_SORT.":</b> ";
echo "<select name='column'>\n";
if($column == "page") $selcolumn1 = "selected";
echo "<option value='page' $selcolumn1>"._AB_PAGEVIEWED."</option>\n";
if($column == "date") $selcolumn2 = "selected";
echo "<option value='date' $selcolumn2>"._AB_HITDATE."</option>\n";
echo "</select> ";
echo "<select name='direction'>\n";
if($direction == "asc") $seldirection1 = "selected";
echo "<option value='asc' $seldirection1>"._AB_ASC."</option>\n";
if($direction == "desc") $seldirection2 = "selected";
echo "<option value='desc' $seldirection2>"._AB_DESC."</option>\n";
echo "</select> ";
echo "<input type='submit' value='"._AB_SORT."'>\n";
echo "</td></form>";
echo "</tr>";
// Page Sorting


Replace with:
Code:
// Page Sorting

echo "<td align='left' bgcolor='$bgcolor2' colspan='3'><b>"._AB_SORT.":</b> ";
echo "<form method='post' action='".$admin_file.".php?op=ABTrackedPages'>\n";
echo "<select name='column'>\n";
if($column == "page") $selcolumn1 = "selected";
echo "<option value='page' $selcolumn1>"._AB_PAGEVIEWED."</option>\n";
if($column == "date") $selcolumn2 = "selected";
echo "<option value='date' $selcolumn2>"._AB_HITDATE."</option>\n";
echo "</select> ";
echo "<select name='direction'>\n";
if($direction == "asc") $seldirection1 = "selected";
echo "<option value='asc' $seldirection1>"._AB_ASC."</option>\n";
if($direction == "desc") $seldirection2 = "selected";
echo "<option value='desc' $seldirection2>"._AB_DESC."</option>\n";
echo "</select> ";
echo "<input type='hidden' name='min' value='$min'>\n";
echo "<input type='hidden' name='user_id' value='$user_id'>\n";
echo "<input type='hidden' name='ip_addr' value='$ip_addr'>\n";
echo "<input type='submit' value='"._AB_SORT."'>\n";
echo "</form></td>";
echo "</tr>";
// Page Sorting


3) /admin/modules/nukesentinel/ABIP2CountryDelete.php
Find the below code on lines 21 though 38:
Code:
OpenTable();

echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n";
echo "<form action='".$admin_file.".php' method='post'>\n";
echo "<tr bgcolor='$bgcolor1'><td align='center' class='content'>"._AB_IP2CDELETES." ".long2ip($ip_lo)." to ".long2ip($ip_hi)."?</td></tr>\n";
echo "<input type='hidden' name='op' value='ABIP2CountryDeleteSave'>\n";
echo "<input type='hidden' name='ip_lo' value='$ip_lo'>\n";
echo "<input type='hidden' name='ip_hi' value='$ip_hi'>\n";
echo "<input type='hidden' name='xop' value='$xop'>\n";
echo "<input type='hidden' name='min' value='$min'>\n";
echo "<input type='hidden' name='sip' value='$sip'>\n";
echo "<input type='hidden' name='column' value='$column'>\n";
echo "<input type='hidden' name='direction' value='$direction'>\n";
echo "<input type='hidden' name='showcountry' value='$showcountry'>\n";
echo "<tr><td align='center'><input type=submit value='"._AB_IP2CDELETE."'></td></tr>\n";
echo "<tr><td align='center'>"._GOBACK."</td></tr>\n";
echo "</form>";
echo "</table>\n";
CloseTable();


Replace with:
Code:
OpenTable();

echo "<form action='".$admin_file.".php' method='post'>\n";
echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n";
echo "<tr><td align='center'>"._AB_IP2CDELETES." ".long2ip($ip_lo)." to ".long2ip($ip_hi)."?</td></tr>\n";
echo "<tr><td>\n";
echo "<input type='hidden' name='op' value='ABIP2CountryDeleteSave'>\n";
echo "<input type='hidden' name='ip_lo' value='$ip_lo'>\n";
echo "<input type='hidden' name='ip_hi' value='$ip_hi'>\n";
echo "<input type='hidden' name='xop' value='$xop'>\n";
echo "<input type='hidden' name='min' value='$min'>\n";
echo "<input type='hidden' name='sip' value='$sip'>\n";
echo "<input type='hidden' name='column' value='$column'>\n";
echo "<input type='hidden' name='direction' value='$direction'>\n";
echo "<input type='hidden' name='showcountry' value='$showcountry'></td></tr>\n";
echo "<tr><td align='center'><input type=submit value='"._AB_IP2CDELETE."'></td></tr>\n";
echo "<tr><td align='center'>"._GOBACK."</td></tr>\n";
echo "</table>\n";
echo "</form>";
CloseTable();


4) /admin/modules/nukesentinel/ABAuthEdit.php
Find the below code on lines 23 through 41:
Code:
  OpenTable();

  $admin_row = abget_admin($a_aid);
  echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n";
  echo "<form action='".$admin_file.".php' method='post'>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_ADMIN.":</b></td><td><b>$a_aid</b></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_AUTHLOGIN.":</b></td>";
  echo "<td><input type='text' name='xlogin' size='20' maxlength='25' value='".$admin_row['login']."'></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_PASSWORD.":</b></td>";
  echo "<td><input type='text' name='xpassword' size='20' maxlength='20' value='".$admin_row['password']."'></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_PROTECTED.":</b></td>";
  if($admin_row['protected']==0) { $sel1 = " selected"; } else { $sel2 = " selected"; }
  echo "<td><select name='xprotected'>\n";
  echo "<option value='0'$sel1>"._AB_NOTPROTECTED."</option>\n<option value='1'$sel2>"._AB_ISPROTECTED."</option>\n";
  echo "</td></tr>\n";
  echo "<input type='hidden' name='op' value='ABAuthEditSave'>\n";
  echo "<input type='hidden' name='a_aid' value='$a_aid'>\n";
  echo "<tr><td align='center' colspan='2'><input type=submit value='"._AB_SAVECHANGES."'></td></tr>\n";
  echo "</form></table>\n";
  CloseTable();


Replace with:
Code:
  OpenTable();

  $admin_row = abget_admin($a_aid);
  echo "<form action='".$admin_file.".php' method='post'>\n";
  echo "<table align='center' border='0' cellpadding='2' cellspacing='2'>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_ADMIN.":</b></td><td><b>$a_aid</b></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_AUTHLOGIN.":</b></td>";
  echo "<td><input type='text' name='xlogin' size='20' maxlength='25' value='".$admin_row['login']."'></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_PASSWORD.":</b></td>";
  echo "<td><input type='text' name='xpassword' size='20' maxlength='20' value='".$admin_row['password']."'></td></tr>\n";
  echo "<tr><td bgcolor='$bgcolor2'><b>"._AB_PROTECTED.":</b></td>";
  if($admin_row['protected']==0) { $sel1 = " selected"; } else { $sel2 = " selected"; }
  echo "<td><select name='xprotected'>\n";
  echo "<option value='0'$sel1>"._AB_NOTPROTECTED."</option>\n<option value='1'$sel2>"._AB_ISPROTECTED."</option>\n";
  echo "</select></td></tr>\n";
  echo "<tr><td align='center' colspan='2'><input type='hidden' name='op' value='ABAuthEditSave'>\n";
  echo "<input type='hidden' name='a_aid' value='$a_aid'>\n";
  echo "<input type=submit value='"._AB_SAVECHANGES."'></td></tr>\n";
  echo "</table></form>\n";
  CloseTable();


Implementing these fixes will ensure that all Administration Screens are fixed and 100% HTML Compliant.

Steph

_________________
Steph Benoit Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly) 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©