root/modules/branches/2.3/logfiles/page.logfiles.php

Revision 6035, 0.9 kB (checked in by p_lindheimer, 4 years ago)

Merged revisions 6032-6033 via svnmerge from
http://svn.freepbx.org/modules/branches/2.4

................

r6032 | p_lindheimer | 2008-07-16 08:08:44 -0700 (Wed, 16 Jul 2008) | 13 lines


Merged revisions 6030-6031 via svnmerge from
http://svn.freepbx.org/modules/branches/2.5


........

r6030 | p_lindheimer | 2008-07-16 08:06:40 -0700 (Wed, 16 Jul 2008) | 1 line


#2776: filter out potentially bad html tags from log file

........

r6031 | p_lindheimer | 2008-07-16 08:07:23 -0700 (Wed, 16 Jul 2008) | 1 line


Module Publish Script: logfiles 2.5.0

........

................

r6033 | p_lindheimer | 2008-07-16 08:08:56 -0700 (Wed, 16 Jul 2008) | 1 line


Module Publish Script: logfiles 2.5.0

................

  • Property svn:mime-type set to text/html
  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 <?php
2
3 $display = $_REQUEST['display'];
4 $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'tool';
5 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
6
7 ?>
8 </div>
9 <div class="content">
10 <?php
11
12 switch($action) {
13   case 'showlog':
14 ?>
15     <h2>
16       <?php echo sprintf(_('%s - last 2000 lines'),$amp_conf['ASTLOGDIR']."/full") ?>
17     </h2>
18     <a href="config.php?<?php echo "display=$display&type=$type&action=showlog"?>"><?php echo _("Redisplay Asterisk Full debug log (last 2000 lines)") ?></a><br>
19     <hr><br>
20     <?php
21     system ('tail --line=2000 '.$amp_conf['ASTLOGDIR'].'/full | sed -e "s,<,\&lt;,g;s,>,\&gt;,g;s/$/<br>/"');
22     break;
23
24   default:
25     echo "<h2>"._("Asterisk Log Files")."</h2>";
26 ?>
27         <a href="config.php?<?php echo "display=$display&type=$type&action=showlog"?>"><?php echo _("Display Asterisk Full debug log (last 2000 lines)") ?></a><br>
28         <br><br><br><br><br><br><br><br><br><br><br><br>
29 <?php
30     break;
31 }
32 ?>
33 </div>
Note: See TracBrowser for help on using the browser.