X7ROOT File Manager
Current Path:
/usr/local/lsws/admin/html.6.3.2/service
usr
/
local
/
lsws
/
admin
/
html.6.3.2
/
service
/
??
..
??
blockip_html.php
(648 B)
??
graph_html.php
(7.04 KB)
??
graph_xml.php
(3.21 KB)
??
homeCont.php
(5.3 KB)
??
logViewer.php
(2.1 KB)
??
realtimeReport.php
(11.44 KB)
??
realtimeReqReport.php
(6.89 KB)
??
restart.html
(634 B)
??
serviceMgr.php
(2.07 KB)
??
verMgrCont.php
(3.42 KB)
??
verMgrDownload.php
(525 B)
Editing: logViewer.php
<?php function genOptions($options, $selValue) { $output = ''; foreach ( $options as $key => $value ) { $output .= '<option value="' . $key .'"'; if ( $key === $selValue ) $output .= ' selected'; $output .= ">Display Level: $value</option>\n"; } return $output; } $options = array('E'=>'ERROR', 'W'=>'WARNING', 'N'=>'NOTICE', 'I'=>'INFO', 'D'=>'DEBUG'); $service = new Service(); $data = $service->getLogData(); if ($data == NULL) return; ?> <h2 class="bottom_bar">Server Log Viewer</h2> <form name="logform" method='post'> <input type="hidden" name="vl" value="1"> <div class="log_filter"> <span><select name="sel_level" class="th-clr"> <?php echo( genOptions($options, $data['level']) ); ?> </select></span> <span>Log Size: <?php echo $data['logSize'];?> KB</span> <span>Search from <input name="searchFrom" type="text" size="6" value="<?php echo $data['searchFrom'];?>">KB</span> <span>Length <input name="searchSize" type="text" size="6" value="<?php echo $data['searchSize'];?>">KB</span> </div> <div style="text-align:center; margin-bottom:15px"> <input type="submit" name="begin" value="<<" title="Begin"> <input type="submit" name="prev" value="<" title="Prev"> <input type="submit" name="refresh" value="Refresh"> <input type="submit" name="next" value=">" title="Next"> <input type="submit" name="end" value=">>" title="End"> </div> <table class="xtbl log_tbl" border="0" cellpadding="5" cellspacing="1"> <?php $res = $service->getLog($data); echo '<caption>Retrieved '. number_format($res[0]) . ' of total ' . number_format($res[1]) . ' log entries.</caption>'; echo '<tr class="xtbl_title"><td class="col_time">Time</td><td class="col_level">Level</td><td class="col_mesg">Message</td></tr>'; echo $res[2]; ?> </table> <div style="text-align:center; margin:20px auto"> <input type="submit" name="begin" value="<<" title="Begin"> <input type="submit" name="prev" value="<" title="Prev"> <input type="submit" name="refresh" value="Refresh"> <input type="submit" name="next" value=">" title="Next"> <input type="submit" name="end" value=">>" title="End"> </div> </form>
Upload File
Create Folder