bartvb avatar bartvb committed 3702a4d

* add some more isset for e_all error reporting

Comments (0)

Files changed (2)

+2006-11-08  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be>
+
+        * Enable disassembler links again in the control panel
+        * Add some more isset for E_ALL error reporting
+
 2006-11-04  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be>
 
         * It seems I'm longer able to do simple comparisons, this 
 <tr>
     <form action="<?php echo $_SERVER['PHP_SELF']?>" method="get"><input type="hidden" name="sec" value="1"/>
     <td class="el">Match filename:</td> 
-    <td class="fl"><input type="text" name="str" size="40" value="<?php echo $_GET['str']?>"/>&nbsp;<input type="submit" value=" Find "/></td>
+    <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>
     </form>
 </tr>
 </table>
     <td class="h"><?php echo colheadstr('Hits', 4)?></td>
 </tr>
 <?php
+            $disassembler = function_exists('eaccelerator_dasm_file');
             for ($i = 0; $i < $numres; $i++) {
- 
+                $removed = (isset($scripts[$i]['removed']) && $scripts[$i]['removed']);
+                if ($disassembler && !$removed) {
+                    $file_col = sprintf('<a href="dasm.php?file=%s">%s</a>', $scripts[$i]['file'], $scripts[$i]['file']);
+                } elseif ($removed) {
+                    $file_col = sprintf('<span class="s">%s</span>', $scripts[$i]['file']);   
+                } else {
+                    $file_col = $scripts[$i]['file'];
+                }
 ?>
 <tr>
-    <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>
+    <td class="el"><small><?php echo $file_col ?></small></td>
     <td class="fl"><small><?php echo date('Y-m-d H:i:s', $scripts[$i]['mtime'])?></small></td>
     <td class="fr"><small><?php echo format_size($scripts[$i]['size'])?></small></td>
     <td class="fr"><small><?php echo $scripts[$i]['reloads']?> (<?php echo $scripts[$i]['usecount']?>)</small></td>
 <tr>
     <form name="srch" action="<?php echo $_SERVER['PHP_SELF']?>" method="get"><input type="hidden" name="sec" value="2"/>
     <td class="el">Match key name:</td> 
-    <td class="fl"><input type="text" name="str" size="40" value="<?php echo $_GET['str']?>"/>&nbsp;<input type="submit" value=" Find "/></td>
+    <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>
     </form>
 </tr>
 </table>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.