Add info if PHP is enabled on the admin pages

This commit is contained in:
slawkens 2020-02-11 00:37:42 +01:00
parent 259cda150d
commit 8345b839e7
2 changed files with 4 additions and 1 deletions

View File

@ -87,6 +87,7 @@ foreach ($query as $_page) {
$pages[] = array(
'link' => getFullLink($_page['name'], $_page['name'], true),
'title' => substr($_page['title'], 0, 20),
'php' => $_page['php'] == '1',
'id' => $_page['id'],
'hidden' => $_page['hidden']
);

View File

@ -13,6 +13,7 @@
<tr>
<th>Name</th>
<th>Title</th>
<th>PHP</th>
<th style="width: 150px;">Options</th>
</tr>
</thead>
@ -21,6 +22,7 @@
<tr>
<td>{{ page.link|raw }}</td>
<td><i>{{ page.title }}</i></td>
<td>{% if page.php %}Yes{% else %}No{% endif %}</td>
<td>
<a href="?p=pages&action=edit&id={{ page.id }}" class="ico" title="Edit"><span
class="btn btn-success btn-sm edit btn-flat"><i
@ -52,4 +54,4 @@
$(function () {
$('#tb_pages').DataTable()
})
</script>
</script>