Changeset 4549

Show
Ignore:
Timestamp:
07/26/07 17:34:04 (1 year ago)
Author:
p_lindheimer
Message:

#1442 remove access problem and put logfile in content div instead of new window

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/logfiles/module.xml

    r4542 r4549  
    22        <rawname>logfiles</rawname> 
    33        <name>Asterisk Logfiles</name> 
    4         <version>1.0.2</version> 
     4        <version>1.1.0</version> 
    55        <changelog> 
     6                *1.1.0* #1442 remove access problem and have log display in same window 
    67                *1.0.2* #2070 fix proper use of script tags 
     8        </changelog> 
    79        <type>tool</type> 
    810        <category>Support</category> 
  • modules/branches/2.3/logfiles/page.logfiles.php

    r2882 r4549  
    11<?php 
    22 
    3 $display=$_REQUEST['display']; 
     3$display = $_REQUEST['display']; 
     4$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'tool'; 
     5$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; 
    46 
    5 switch($display) { 
     7?> 
     8</div> 
     9<div class="content"> 
     10<?php 
     11 
     12switch($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 
    624        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 
    1130    break; 
    12              
    1331} 
    1432?> 
    15  
     33</div>