示例#1
0
function popup()
{
    $sock = new sockets();
    $sock->getfile('ServiceAutofsRestart');
    $logs = showlogs();
    $html = "<H1>{restart_autofs}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/service-restart-64.png'></td>\n\t\t<td valign='top'><p class=caption>{restart_autofs_text}</p>\n\t\t" . RoundedLightWhite("<div style='width:100%;height:150px;overflow:auto' id='AutofsDiv159'>{$logs}</div>") . "<td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
示例#2
0
文件: index.php 项目: nooper/nlogview
function logsubmitlocal()
{
    global $thispage;
    $path = $_POST['fullpath'];
    if (file_exists($path)) {
        echo $thispage->readLogFile($path, $path, 'irssi', $_POST['friendlyname'], $_POST['serverid']);
        showlogs();
    } else {
        echo "{$path}: File does not exist";
    }
}