Files
librenms-librenms/includes/html/pages/customers.inc.php
Tony Murray 36431dd296 Security fix: unauthorized access (#10091)
* Security fix: unauthorized access
Affects nginx users:
Moved php files outside of public html directory (Apache was protected by .htaccess)

Affects all users:
Some files did not check for authentication and could disclose some info.
Better checks before including files from user input

* git mv html/includes/ includes/html
git mv html/pages/ includes/html/
2019-04-11 23:26:42 -05:00

36 lines
1001 B
PHP

<?php
$pagetitle[] = 'Customers';
$no_refresh = true;
?>
<div class="table-responsive">
<table id="customers" class="table table-hover table-condensed">
<thead>
<tr>
<th data-column-id="port_descr_descr" data-order="asc" data-formatter="customer">Customer</th>
<th data-column-id="hostname">Device</th>
<th data-column-id="ifDescr">Interface</th>
<th data-column-id="port_descr_speed">Speed</th>
<th data-column-id="port_descr_circuit">Circuit</th>
<th data-column-id="port_descr_notes">Notes</th>
</tr>
</thead>
</table>
</div>
<script>
var grid = $("#customers").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
url: "ajax/table/customers",
formatters: {
customer: function (column, row) {
return '<strong>' + row[column.id] + '</strong>';
}
}
});
</script>