Changeset 4549
- Timestamp:
- 07/26/07 17:34:04 (1 year ago)
- Files:
-
- modules/branches/2.3/logfiles/asterisk-full-log.php (deleted)
- modules/branches/2.3/logfiles/logfiles.php (deleted)
- modules/branches/2.3/logfiles/module.xml (modified) (1 diff)
- modules/branches/2.3/logfiles/page.logfiles.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/logfiles/module.xml
r4542 r4549 2 2 <rawname>logfiles</rawname> 3 3 <name>Asterisk Logfiles</name> 4 <version>1. 0.2</version>4 <version>1.1.0</version> 5 5 <changelog> 6 *1.1.0* #1442 remove access problem and have log display in same window 6 7 *1.0.2* #2070 fix proper use of script tags 8 </changelog> 7 9 <type>tool</type> 8 10 <category>Support</category> modules/branches/2.3/logfiles/page.logfiles.php
r2882 r4549 1 1 <?php 2 2 3 $display=$_REQUEST['display']; 3 $display = $_REQUEST['display']; 4 $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'tool'; 5 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; 4 6 5 switch($display) { 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 echo system ('tail --line=2000 '.$amp_conf['ASTLOGDIR'].'/full | sed -e "s/$/<br>/"'); 22 break; 23 6 24 default: 7 8 echo "<h2>Asterisk Log Files</h2>"; 9 include 'logfiles.php'; 10 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 11 30 break; 12 13 31 } 14 32 ?> 15 33 </div>
