1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Update table raw html markup

This commit is contained in:
Benjamin LEBLOND 2019-03-17 13:33:24 +01:00 committed by GitHub
parent fb003a9e29
commit 2bcee2145f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,20 +237,17 @@ function DisplayDHCPConfig() {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<?php <?php
exec( 'cat ' . RASPI_DNSMASQ_LEASES, $leases ); exec( 'cat ' . RASPI_DNSMASQ_LEASES, $leases );
foreach( $leases as $lease ) { foreach( $leases as $lease ) {
echo ' <tr>'.PHP_EOL;
$lease_items = explode(' ', $lease); $lease_items = explode(' ', $lease);
foreach( $lease_items as $lease_item ) { foreach( $lease_items as $lease_item ) {
echo ' <td>'.htmlspecialchars($lease_item, ENT_QUOTES).'</td>'.PHP_EOL; echo ' <td>'.htmlspecialchars($lease_item, ENT_QUOTES).'</td>'.PHP_EOL;
} }
echo ' </tr>'.PHP_EOL;
echo ' </tr>'.PHP_EOL;
}; };
?> ?>
</tr>
</tbody> </tbody>
</table> </table>
</div><!-- /.table-responsive --> </div><!-- /.table-responsive -->