Fix: hide "Actions" and php warning message if this script isn't in the allowed_admin_path setting
This commit is contained in:
parent
67377f7729
commit
7ade9c0236
@ -247,47 +247,52 @@ $var=true;
|
|||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
?>
|
$res = @eaccelerator_cached_scripts(); // If success return an array
|
||||||
<br>
|
if (is_array($res))
|
||||||
<form name="ea_control" method="post">
|
{
|
||||||
<table class="noborder">
|
print "<br>";
|
||||||
<tr class="liste_titre"><td colspan="2">Actions</td></tr>
|
print '<form name="ea_control" method="post">';
|
||||||
<tr <?php $var = ! $var; print $bc[$var]; ?>>
|
print '<table class="noborder">';
|
||||||
<td>Caching</td>
|
print '<tr class="liste_titre"><td colspan="2">Actions</td></tr>';
|
||||||
<td align="right"><input type="submit" class="butAction" name="caching" value="<?php print $info['cache']?'disable':'enable'; ?>" /></td>
|
$var = ! $var;
|
||||||
</tr>
|
print "<tr ".$bc[$var].">";
|
||||||
<tr <?php $var = ! $var; print $bc[$var]; ?>>
|
print "<td>Caching</td>";
|
||||||
<td>Optimizer</td>
|
print '<td align="right"><input type="submit" class="butAction" name="caching" value="'. ($info['cache']?'disable':'enable') .'" /></td>';
|
||||||
<td align="right"><input type="submit" class="butAction" name="optimizer" value="<?php print $info['optimizer']?'disable':'enable'; ?>" /></td>
|
print "</tr>";
|
||||||
</tr>
|
$var = ! $var;
|
||||||
<tr <?php $var = ! $var; print $bc[$var]; ?>>
|
print "<tr ".$bc[$var].">";
|
||||||
<td>Clear cache</td>
|
print "<td>Optimizer</td>";
|
||||||
<td align="right"><input type="submit" class="butAction" name="clear" value="clear" title="remove all unused scripts and data from shared memory and disk cache" /></td>
|
print '<td align="right"><input type="submit" class="butAction" name="optimizer" value="'. ($info['optimizer']?'disable':'enable') .'" /></td>';
|
||||||
</tr>
|
print "</tr>";
|
||||||
<tr <?php $var = ! $var; print $bc[$var]; ?>>
|
$var = ! $var;
|
||||||
<td>Clean cache</td>
|
print "<tr ".$bc[$var].">";
|
||||||
<td align="right"><input type="submit" class="butAction" name="clean" value="clean" title=" remove all expired scripts and data from shared memory and disk cache" /></td>
|
print "<td>Clear cache</td>";
|
||||||
</tr>
|
print '<td align="right"><input type="submit" class="butAction" name="clear" value="clear" title="remove all unused scripts and data from shared memory and disk cache" /></td>';
|
||||||
<tr <?php $var = ! $var; print $bc[$var]; ?>>
|
print "</tr>";
|
||||||
<td>Purge cache</td>
|
$var = ! $var;
|
||||||
<td align="right"><input type="submit" class="butAction" name="purge" value="purge" title="remove all 'removed' scripts from shared memory" /></td>
|
print "<tr ".$bc[$var].">";
|
||||||
</tr>
|
print "<td>Clean cache</td>";
|
||||||
</table>
|
print '<td align="right"><input type="submit" class="butAction" name="clean" value="clean" title=" remove all expired scripts and data from shared memory and disk cache" /></td>';
|
||||||
</form>
|
print "</tr>";
|
||||||
<!-- }}} -->
|
$var = ! $var;
|
||||||
|
print "<tr ".$bc[$var].">";
|
||||||
|
print "<td>Purge cache</td>";
|
||||||
|
print '<td align="right"><input type="submit" class="butAction" name="purge" value="purge" title="remove all \'removed\' scripts from shared memory" /></td>';
|
||||||
|
print "</tr></table></form>";
|
||||||
|
}
|
||||||
|
|
||||||
<br><br>
|
print "<br><br>";
|
||||||
<b>Cached scripts</b><br>
|
print "<b>Cached scripts</b><br>";
|
||||||
<table>
|
print "<table>";
|
||||||
<?php
|
|
||||||
$res=eaccelerator_cached_scripts(); // If success return an array
|
$res = @eaccelerator_cached_scripts(); // If success return an array
|
||||||
if (is_array($res)) create_script_table($res);
|
if (is_array($res)) create_script_table($res);
|
||||||
else print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is "._FILE;
|
else print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is "._FILE;
|
||||||
|
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
print '<b>Removed scripts</b><br>';
|
print '<b>Removed scripts</b><br>';
|
||||||
|
|
||||||
$res=eaccelerator_removed_scripts();
|
$res = @eaccelerator_removed_scripts();
|
||||||
if (is_array($res)) create_script_table($res);
|
if (is_array($res)) create_script_table($res);
|
||||||
else print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is "._FILE;
|
else print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is "._FILE;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user