Allow access to webserver logs via weinterface, if activated for customer; todo: view more content dynamically; fixes #603
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'edit', 'id' => $row['id']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" title="{$lng['panel']['edit']}" />
|
||||
</a>
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'logfiles', 'domain_id' => $row['id']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/view.png" alt="{$lng['panel']['viewlogs']}" title="{$lng['panel']['viewlogs']}" />
|
||||
</a>
|
||||
<if $row['isbinddomain'] == '1' && Settings::Get('system.bind_enable') == '1' && Settings::Get('system.dnsenabled') == '1'>
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domaindnseditor', 'domain_id' => $row['id']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/dns_edit.png" alt="{$lng['dnseditor']['edit']}" title="{$lng['dnseditor']['edit']}" />
|
||||
|
||||
2
templates/Sparkle/assets/css/main.css
vendored
2
templates/Sparkle/assets/css/main.css
vendored
@@ -1640,7 +1640,7 @@ table thead th.tablesorter-headerDesc {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.shell, .filecontent {
|
||||
.shell, .filecontent .logcontent {
|
||||
font-family: Consolas, Monaco, Lucida Console, Liberation Mono,
|
||||
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
||||
border: 1px solid #d1d5d8;
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" title="{$lng['panel']['edit']}" />
|
||||
</a>
|
||||
</if>
|
||||
<if $userinfo['logviewenabled'] == '1'>
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'logfiles', 'domain_id' => $row['id']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/view.png" alt="{$lng['panel']['viewlogs']}" title="{$lng['panel']['viewlogs']}" />
|
||||
</a>
|
||||
</if>
|
||||
<if $row['parentdomainid'] != '0' && !(isset($row['domainaliasid']) && $row['domainaliasid'] != 0)>
|
||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'delete', 'id' => $row['id']))}">
|
||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" title="{$lng['panel']['delete']}" />
|
||||
|
||||
19
templates/Sparkle/logfiles_viewer/index.tpl
vendored
Normal file
19
templates/Sparkle/logfiles_viewer/index.tpl
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
$header
|
||||
<article>
|
||||
<header>
|
||||
<h2>
|
||||
<img src="templates/{$theme}/assets/img/icons/view.png" alt="" />
|
||||
{$lng['panel']['viewlogs']} (<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'edit', 'id' => $domain_id))}">{$domain['domain']}</a>) [<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains'))}">{$lng['menue']['domains']['domains']}</a>]
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<h3>Error-Log</h3>
|
||||
<textarea rows="20" class="logcontent" readonly>{$error_log_content}</textarea>
|
||||
<h3>Access-Log</h3>
|
||||
<textarea rows="20" class="logcontent" readonly>{$access_log_content}</textarea>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
$footer
|
||||
Reference in New Issue
Block a user