Changeset 181

Show
Ignore:
Timestamp:
03/07/06 22:23:31 (3 years ago)
Author:
bart
Message:

Removed the shorttags in control.php and dasm.php to fix bug #8.

Files:

Legend:

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

    r180 r181  
    66        * In restore_zval the zval length could be something else then 0 when  
    77          an empty string was set. 
     8        * Removed the shorttags in control.php and dasm.php to fix bug #8. 
    89 
    9102006-03-06  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/control.php

    • Property svn:keywords set to svn:eol-style
    r178 r181  
    7474        <tr> 
    7575    <?php   if (function_exists('eaccelerator_dasm_file')) { ?> 
    76             <td class="e"><a href="dasm.php?file=<?= $script['file']; ?>"><?= $script['file']; ?></a></td> 
     76            <td class="e"><a href="dasm.php?file=<?php echo $script['file']; ?>"><?php echo $script['file']; ?></a></td> 
    7777    <?php   } else { ?> 
    78             <td class="e"><?= $script['file']; ?></td> 
     78            <td class="e"><?php echo $script['file']; ?></td> 
    7979    <?php   } ?> 
    80             <td class="vr"><?= date('Y-m-d H:i', $script['mtime']); ?></td> 
    81             <td class="vr"><?= number_format($script['size'] / 1024, 2); ?>KB</td> 
    82             <td class="vr"><?= $script['reloads']; ?> (<?= $script['usecount']; ?>)</td> 
    83             <td class="vr"><?= $script['hits']; ?></td> 
     80            <td class="vr"><?php echo date('Y-m-d H:i', $script['mtime']); ?></td> 
     81            <td class="vr"><?php echo number_format($script['size'] / 1024, 2); ?>KB</td> 
     82            <td class="vr"><?php echo $script['reloads']; ?> (<?php echo $script['usecount']; ?>)</td> 
     83            <td class="vr"><?php echo $script['hits']; ?></td> 
    8484        </tr> 
    8585    <?php } ?> 
     
    103103?> 
    104104        <tr> 
    105             <td class="e"><?= $key['name']; ?></td> 
    106             <td class="vr"><?= date('Y-m-d H:i', $key['created']); ?></td> 
    107             <td class="vr"><?= number_format($key['size']/1024, 3); ?>KB</td> 
     105            <td class="e"><?php echo $key['name']; ?></td> 
     106            <td class="vr"><?php echo date('Y-m-d H:i', $key['created']); ?></td> 
     107            <td class="vr"><?php echo number_format($key['size']/1024, 3); ?>KB</td> 
    108108            <td class="vr"><?php  
    109109                if ($key['ttl'] == -1) { 
     
    165165<?php print_header(); ?> 
    166166<body class="center"> 
    167 <h1>eAccelerator <?= $info['version']; ?> control panel</h1> 
     167<h1>eAccelerator <?php echo $info['version']; ?> control panel</h1> 
    168168 
    169169<!-- {{{ information --> 
     
    172172<tr> 
    173173    <td class="e">Caching enabled</td>  
    174     <td><?= $info['cache'] ? 'yes':'no' ?></td> 
     174    <td><?php echo $info['cache'] ? 'yes':'no' ?></td> 
    175175</tr> 
    176176<tr> 
    177177    <td class="e">Optimizer enabled</td> 
    178     <td><?= $info['optimizer'] ? 'yes':'no' ?></td> 
     178    <td><?php echo $info['optimizer'] ? 'yes':'no' ?></td> 
    179179</tr> 
    180180<tr> 
    181181    <td class="e">Memory usage</td> 
    182     <td><?= number_format(100 * $info['memoryAllocated'] / $info['memorySize'], 2); ?>%  
    183         (<?= number_format($info['memoryAllocated'] / (1024*1024), 2); ?>MB/ 
    184         <?= number_format($info['memorySize'] / (1024*1024), 2); ?>MB)</td> 
     182    <td><?php echo number_format(100 * $info['memoryAllocated'] / $info['memorySize'], 2); ?>%  
     183        (<?php echo number_format($info['memoryAllocated'] / (1024*1024), 2); ?>MB/ 
     184        <?php echo number_format($info['memorySize'] / (1024*1024), 2); ?>MB)</td> 
    185185</tr> 
    186186<tr> 
    187187    <td class="e">Free memory</td> 
    188     <td><?= number_format($info['memoryAvailable'] / (1024*1024), 2); ?>MB</td> 
     188    <td><?php echo number_format($info['memoryAvailable'] / (1024*1024), 2); ?>MB</td> 
    189189</tr> 
    190190<tr> 
    191191    <td class="e">Cached scripts</td> 
    192     <td><?= $info['cachedScripts']; ?></td> 
     192    <td><?php echo $info['cachedScripts']; ?></td> 
    193193</tr> 
    194194<tr> 
    195195    <td class="e">Removed scripts</td>  
    196     <td><?= $info['removedScripts']; ?></td> 
     196    <td><?php echo $info['removedScripts']; ?></td> 
    197197</tr> 
    198198<tr> 
    199199    <td class="e">Cached keys</td> 
    200     <td><?= $info['cachedKeys']; ?></td> 
     200    <td><?php echo $info['cachedKeys']; ?></td> 
    201201</tr> 
    202202</table> 
     
    209209        <tr> 
    210210            <td class="e">Caching</td> 
    211             <td><input type="submit" name="caching" value="<?= $info['cache']?'disable':'enable'; ?>" /></td> 
     211            <td><input type="submit" name="caching" value="<?php echo $info['cache']?'disable':'enable'; ?>" /></td> 
    212212        </tr> 
    213213        <tr> 
    214214            <td class="e">Optimizer</td> 
    215             <td><input type="submit" name="optimizer" value="<?= $info['optimizer']?'disable':'enable'; ?>" /></td> 
     215            <td><input type="submit" name="optimizer" value="<?php echo $info['optimizer']?'disable':'enable'; ?>" /></td> 
    216216        </tr> 
    217217        <tr> 
     
    248248<table> 
    249249    <tr><td class="center"> 
    250     <a href="http://eaccelerator.net"><img src="?=<?= $info['logo']; ?>" alt="eA logo" /></a> 
     250    <a href="http://eaccelerator.net"><img src="?=<?php echo $info['logo']; ?>" alt="eA logo" /></a> 
    251251    <strong>Created by the eAccelerator team, <a href="http://eaccelerator.net">http://eaccelerator.net</a></strong><br /><br /> 
    252     <nobr>eAccelerator <?= $info['version']; ?> [shm:<?= $info['shm_type']?> sem:<?= $info['sem_type']; ?>]</nobr><br /> 
    253     <nobr>PHP <?= phpversion();?> [ZE <?= zend_version(); ?>]</nobr><br /> 
    254     <nobr>Using <?= php_sapi_name();?> on <?= php_uname(); ?></nobr><br /> 
     252    <nobr>eAccelerator <?php echo $info['version']; ?> [shm:<?php echo $info['shm_type']?> sem:<?php echo $info['sem_type']; ?>]</nobr><br /> 
     253    <nobr>PHP <?php echo phpversion();?> [ZE <?php echo zend_version(); ?>]</nobr><br /> 
     254    <nobr>Using <?php echo php_sapi_name();?> on <?php echo php_uname(); ?></nobr><br /> 
    255255    </td></tr> 
    256256</table> 
  • eaccelerator/trunk/dasm.php

    • Property svn:keywords set to svn:eol-style
    r178 r181  
    8686    <?php foreach($op_array as $n => $opline) { ?> 
    8787            <tr> 
    88                 <td class="e"><?= $n; ?></td> 
    89                 <td><nobr><?= $opline['opcode']; ?></nobr></td> 
    90                 <td><nobr><?= $opline['extended_value']; ?></nobr></td> 
    91                 <td><nobr><?= convert_string($opline['op1'], 50); ?></nobr></td> 
    92                 <td><nobr><?= convert_string($opline['op2'], 50); ?></nobr></td> 
    93                 <td><nobr><?= convert_string($opline['result'], 50); ?></nobr></td> 
     88                <td class="e"><?php echo $n; ?></td> 
     89                <td><nobr><?php echo $opline['opcode']; ?></nobr></td> 
     90                <td><nobr><?php echo $opline['extended_value']; ?></nobr></td> 
     91                <td><nobr><?php echo convert_string($opline['op1'], 50); ?></nobr></td> 
     92                <td><nobr><?php echo convert_string($opline['op2'], 50); ?></nobr></td> 
     93                <td><nobr><?php echo convert_string($opline['result'], 50); ?></nobr></td> 
    9494            </tr> 
    9595    <?php } ?>