Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blank page under 'Log files management'
#11
The readlink function is available on windows system starting from php 5.3.0.

to let things works on your system you can symply replace the:

if (isset($_GET["logname"])) $logname=$_GET["logname"];
else if (@readlink($settings->_contentDir."current.log")){
$logname=basename(@readlink($settings->_contentDir."current.log"));
}else $logname=NULL;

with:

if (isset($_GET["logname"])) $logname=$_GET["logname"];
else $logname=NULL;

let me know,
Matteo
Reply
#12
Thanks!!

It is working now.

I can not delete log files because of

if (@readlink($settings->_contentDir."current.log")!=$settings->_contentDir.$entry)
print "<li><a href=\"out.RemoveLog.php?logname=".$entry."\">".getMLText("rm_file")."</a></li>";


but I can see them.
Reply
#13
Again:
comment the line using the "readlink".

Before:
if (@readlink($settings->_contentDir."current.log")!=$settings->_contentDir.$entry)
print "<li><a href=\"out.RemoveLog.php?logname=".$entry."\">".getMLText("rm_file")."</a></li>";

after:
//if (@readlink($settings->_contentDir."current.log")!=$settings->_contentDir.$entry)
print "<li><a href=\"out.RemoveLog.php?logname=".$entry."\">".getMLText("rm_file")."</a></li>";
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)