Projet

Général

Profil

« Précédent | Suivant » 

Révision 0fab7eb1

Ajouté par Michael Newton il y a presque 10 ans

Fix broken HTML elements and unescaped entities

Voir les différences:

usr/local/www/status_captiveportal.php
120 120
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
121 121
  <tr>
122 122
	<td width="20%" class="vncell" valign="top"> 
123
               <br /><?=gettext("Captive Portal Zone"); ?><br/<br />
123
               <br /><?=gettext("Captive Portal Zone"); ?><br/><br />
124 124
	</td>
125
	<td "class="vncell" width="30%" align="center"> 
125
	<td class="vncell" width="30%" align="center"> 
126 126
	<form action="status_captiveportal.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
127 127
		<select name="zone" class="formselect" onchange="document.form1.submit()">
128 128
		echo "<option value="">none</option>\n";
......
169 169
		}
170 170
		?>&nbsp;
171 171
	</td>
172
    <td class="listr"><?=$cpent[4];?>&nbsp;</td>
172
    <td class="listr"><?=htmlspecialchars($cpent[4]);?>&nbsp;</td>
173 173
    <td class="listr"><?=htmlspecialchars(date("m/d/Y H:i:s", $cpent[0]));?></td>
174 174
	<?php if ($_GET['showact']):
175 175
	$last_act = captiveportal_get_last_activity($cpent[2], $cpent[3]); ?>
176 176
    <td class="listr"><?php if ($last_act != 0) echo htmlspecialchars(date("m/d/Y H:i:s", $last_act));?></td>
177 177
	<?php endif; ?>
178
	<td valign="middle" class="list" nowrap>
179
	<a href="?zone=<?=$cpzone;?>&order=<?=$_GET['order'];?>&showact=<?=htmlspecialchars($_GET['showact']);?>&act=del&id=<?=$cpent[5];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a></td>
178
    <td valign="middle" class="list" nowrap>
179
      <a href="?zone=<?=$cpzone;?>&amp;order=<?=$_GET['order'];?>&amp;showact=<?=htmlspecialchars($_GET['showact']);?>&amp;act=del&amp;id=<?=$cpent[5];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a>
180
    </td>
180 181
  </tr>
181 182
<?php endforeach; endif; ?>
182 183
</table>

Formats disponibles : Unified diff