Projet

Général

Profil

« Précédent | Suivant » 

Révision fe0430f7

Ajouté par Ermal il y a plus de 9 ans

Put some more statistics and the user that gets connected now that we can

Voir les différences:

usr/local/www/diag_ipsec.php
106 106
				<th class="listhdrr nowrap"><?php echo gettext("Remote ID");?></th>
107 107
				<th class="listhdrr nowrap"><?php echo gettext("Remote IP");?></th>
108 108
				<th class="listhdrr nowrap"><?php echo gettext("Role");?></th>
109
				<th class="listhdrr nowrap"><?php echo gettext("Reauth");?></th>
109 110
				<th class="listhdrr nowrap"><?php echo gettext("Status");?></th>
110 111
				<td class="list nowrap"></td>
111 112
		</tr>
......
168 169
							echo htmlspecialchars($ikesa['remote']['identification']);
169 170
					} else
170 171
						echo 'Unknown';
172

  
173
					if (is_array($ikesa['remote']['auth']) && !empty($ikesa['remote']['auth']['identity'])) {
174
						echo "<br/> {$ikesa['remote']['auth']['identity']}";
175
					}
171 176
				}
172 177
			?>
173 178
				</td>
......
187 192
				<td class="listr">
188 193
					<?php echo htmlspecialchars($ikesa['role']);?>
189 194
				</td>
195
				<td class="listr">
196
					<?php echo htmlspecialchars($ikesa['reauth']);?>
197
				</td>
190 198
				<td class="listr">
191 199
					<center>
192 200
						<img src ="/themes/<?php echo $g['theme']; ?>/images/icons/icon_<?php echo $icon; ?>.gif" title="<?php echo $ikesa['status']; ?>" alt=""/>
......
215 223
			</tr>
216 224
			<?php if (is_array($ikesa['childsalist'])): ?>
217 225
			<tr>
218
				<td class="listrborder" colspan="7">
226
				<td class="listrborder" colspan="8">
219 227
				<div id="btnchildsa-<?=$ikeid;?>">
220 228
					<input  type="button" onclick="show_childsa('childsa-<?=$ikeid;?>','btnchildsa-<?=$ikeid;?>');" value="+" /> - Show child SA entries
221 229
				</div>
......
226 234
						<th class="listhdrr nowrap"><?php echo gettext("Local SPI");?></th>
227 235
						<th class="listhdrr nowrap"><?php echo gettext("Remote SPI");?></th>
228 236
						<th class="listhdrr nowrap"><?php echo gettext("Remote subnets");?></th>
237
						<th class="listhdrr nowrap"><?php echo gettext("Rekey");?></th>
238
						<th class="listhdrr nowrap"><?php echo gettext("Algo");?></th>
239
						<th class="listhdrr nowrap"><?php echo gettext("Stats");?></th>
229 240
					</tr>
230 241
				</thead>
231 242
				<tbody>
......
261 272
					} else
262 273
						echo "Unknown";
263 274
				?>
275
						</td>
276
						<td class="listr nowrap">
277
							<?php echo htmlspecialchars($childsa['rekey']); ?>
278
						</td>
279
						<td class="listr nowrap">
280
						<?php
281
							echo htmlspecialchars($childsa['encalg']);
282
							echo "<br/>";
283
							echo htmlspecialchars($childsa['intalg']);
284
							echo "<br/>";
285
							if (!empty($childsa['esn']))
286
								echo htmlspecialchars($childsa['rekey']);
287
						?>
288
						</td>
289
						<td class="listr nowrap">
290
						<?php
291
							echo "IPComp: " . htmlspecialchars($childsa['ipcomp']);
292
							echo "<br/>";
293
							echo "Bytes-In: " . htmlspecialchars($childsa['bytesin']) . "/Packets-In: " . htmlspecialchars($childsa['packetsin']);;
294
							echo "<br/>";
295
							echo "Bytes-Out: " . htmlspecialchars($childsa['bytesout']) . "/Packets-Out: " . htmlspecialchars($childsa['packetsout']);;
296
						?>
264 297
						</td>
265 298
						<td class="list nowrap">
266 299
							&nbsp;

Formats disponibles : Unified diff