Server IP : 66.29.132.122 / Your IP : 18.218.180.238 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/usr/local/lsws/admin/html/service/ |
Upload File : |
<?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>