Changeset 285

Show
Ignore:
Timestamp:
11/14/06 16:39:11 (2 years ago)
Author:
bart
Message:

* add some more isset for e_all error reporting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r283 r285  
     12006-11-08  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Enable disassembler links again in the control panel 
     4        * Add some more isset for E_ALL error reporting 
     5 
    162006-11-04  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    27 
  • eaccelerator/trunk/control.php

    r282 r285  
    444444    <form action="<?php echo $_SERVER['PHP_SELF']?>" method="get"><input type="hidden" name="sec" value="1"/> 
    445445    <td class="el">Match filename:</td>  
    446     <td class="fl"><input type="text" name="str" size="40" value="<?php echo $_GET['str']?>"/>&nbsp;<input type="submit" value=" Find "/></td> 
     446    <td class="fl"><input type="text" name="str" size="40" value="<?php echo isset($_GET['str']) ? $_GET['str'] : '' ?>"/>&nbsp;<input type="submit" value=" Find "/></td> 
    447447    </form> 
    448448</tr> 
     
    469469</tr> 
    470470<?php 
     471            $disassembler = function_exists('eaccelerator_dasm_file'); 
    471472            for ($i = 0; $i < $numres; $i++) { 
    472   
    473 ?> 
    474 <tr> 
    475     <td class="el"><small><?php echo ((isset($scripts[$i]['removed']) && $scripts[$i]['removed'])?'<span class="s">':'').$scripts[$i]['file'].((isset($scripts[$i]['removed']) && $scripts[$i]['removed'])?'</span>':'')?></small></td> 
     473                $removed = (isset($scripts[$i]['removed']) && $scripts[$i]['removed']); 
     474                if ($disassembler && !$removed) { 
     475                    $file_col = sprintf('<a href="dasm.php?file=%s">%s</a>', $scripts[$i]['file'], $scripts[$i]['file']); 
     476                } elseif ($removed) { 
     477                    $file_col = sprintf('<span class="s">%s</span>', $scripts[$i]['file']);    
     478                } else { 
     479                    $file_col = $scripts[$i]['file']; 
     480                } 
     481?> 
     482<tr> 
     483    <td class="el"><small><?php echo $file_col ?></small></td> 
    476484    <td class="fl"><small><?php echo date('Y-m-d H:i:s', $scripts[$i]['mtime'])?></small></td> 
    477485    <td class="fr"><small><?php echo format_size($scripts[$i]['size'])?></small></td> 
     
    539547    <form name="srch" action="<?php echo $_SERVER['PHP_SELF']?>" method="get"><input type="hidden" name="sec" value="2"/> 
    540548    <td class="el">Match key name:</td>  
    541     <td class="fl"><input type="text" name="str" size="40" value="<?php echo $_GET['str']?>"/>&nbsp;<input type="submit" value=" Find "/></td> 
     549    <td class="fl"><input type="text" name="str" size="40" value="<?php echo isset($_GET['str']) ? $_GET['str'] : '' ?>"/>&nbsp;<input type="submit" value=" Find "/></td> 
    542550    </form> 
    543551</tr>