Файл: Source/admin/error_log.php
Строк: 62
<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
include "common.php";
head();
?>
<div class="body content rows scroll-y">
<!-- Page header -->
<div class="page-heading">
<h1><b>Error</b> log..</h1>
</div>
<!-- End page header -->
<!-- Begin info box -->
<div class="row">
<div class="col-md-12">
<div class="box-info">
<h2>Error log</h2>
<?php
$root = getenv('DOCUMENT_ROOT');
$rootf1 = '' . $root . '/error.log';
$rootf2 = '' . $root . '/error_log';
@$admin_errorlog = file_get_contents('error_log');
@$admin_errorlog2 = file_get_contents('error.log');
if ($admin_errorlog == NULL and $admin_errorlog2 == NULL) {
echo '
<div class="alert alert-success" style="margin-left: 5px; margin-right: 5px;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">?</button>
<p><i class="fa fa-check-circle-o" style="font-size: 20px;"></i> There are no errors here.</p>
</div>
';
} else {
echo $admin_errorlog . "<br />n";
echo $admin_errorlog2 . "<br />n";
}
@$site_errorlog = file_get_contents('../error_log');
@$site_errorlog2 = file_get_contents('../error.log');
@$site_errorlog3 = file_get_contents($rootf1);
@$site_errorlog4 = file_get_contents($rootf2);
echo '</div> <div class="box-info"><h2>Site Error Log</h2>';
if ($site_errorlog == NULL and $site_errorlog2 == NULL and $site_errorlog3 == NULL and $site_errorlog4 == NULL) {
echo '<br />
<div class="alert alert-success" style="margin-left: 5px; margin-right: 5px;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">?</button>
<p><i class="fa fa-check-circle-o" style="font-size: 20px;"></i> There are no errors here.</p>
</div>
';
} else {
echo $site_errorlog . "<br />n";
echo $site_errorlog2 . "<br />n";
echo $site_errorlog3 . "<br />n";
echo $site_errorlog4 . "<br />n";
}
?>
</div>
<?php
footer();
?>
</div>
</div>