Projet

Général

Profil

« Précédent | Suivant » 

Révision 45dbc75f

Ajouté par Ermal il y a plus de 9 ans

Try to make the ipsec widget usable again

Voir les différences:

usr/local/www/widgets/widgets/ipsec.widget.php
163 163
<div id="ipsec-mobile" style="display:none;background-color:#EEEEEE;">
164 164
	<div style="padding: 10px">
165 165
		<div style="display:table-row;">
166
			<div class="widgetsubheader" style="display:table-cell;width:140px">User/Time</div>
167
			<div class="widgetsubheader" style="display:table-cell;width:130px">Local/Remote</div>
168
			<div class="widgetsubheader" style="display:table-cell;width:30px">&nbsp;</div>
166
			<div class="widgetsubheader" style="display:table-cell;width:140px">User</div>
167
			<div class="widgetsubheader" style="display:table-cell;width:130px">IP</div>
168
			<div class="widgetsubheader" style="display:table-cell;width:30px">Status;</div>
169 169
		</div>
170 170
		<div style="max-height:105px;overflow:auto;">
171
<?php	foreach ($mobile as $muser) : ?>
171
<?php
172
	if (is_array($mobile['pool'])):
173
	foreach ($mobile['pool'] as $pool):
174
		if (is_array($pool['lease'])): 
175
			foreach ($pool['lease'] as $muser) : ?>
172 176
		<div style="display:table-row;">
173 177
			<div class="listlr" style="display:table-cell;width:139px">
174
				<?php echo htmlspecialchars($muser['username']);?><br />
175
				<?php echo htmlspecialchars($muser['logintime']);?>
178
				<?php echo htmlspecialchars($muser['id']);?><br />
176 179
			</div>
177 180
			<div class="listr"  style="display:table-cell;width:130px">
178
				<?php echo htmlspecialchars($muser['local']);?><br />
179
				<?php echo htmlspecialchars($muser['remote']);?>
181
				<?php echo htmlspecialchars($muser['host']);?><br />
180 182
			</div>
181
			<div class="listr"  style="display:table-cell;width:30px" align="center">
182
				<a href="diag_ipsec.php?act=disconnect&amp;user=<?php echo $muser['username']; ?>"><img src='/themes/<?php echo $g['theme']; ?>/images/icons/icon_x.gif' height='17' width='17' border='0' alt='x' /></a>
183
			<div class="listr"  style="display:table-cell;width:30px">
184
				<?php echo htmlspecialchars($muser['status']);?><br/>
183 185
			</div>
184 186
		</div>
185
<?php	endforeach; ?>
187
<?php
188
			endforeach;
189
		endif;
190
	endforeach;
191
	endif;
192
?>
186 193
		</div>
187 194
	</div>
188 195
</div>

Formats disponibles : Unified diff