Fix: phpize this page
This commit is contained in:
parent
7ade9c0236
commit
07a06e8ef9
@ -247,13 +247,18 @@ $var=true;
|
|||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
$res = @eaccelerator_cached_scripts(); // If success return an array
|
$resCached = @eaccelerator_cached_scripts(); // If success return an array
|
||||||
if (is_array($res))
|
$resRemoved = @eaccelerator_removed_scripts();
|
||||||
|
|
||||||
|
if (is_array($resCached) || is_array($resRemoved))
|
||||||
{
|
{
|
||||||
print "<br>";
|
print "<br>";
|
||||||
print '<form name="ea_control" method="post">';
|
print '<form name="ea_control" method="post">';
|
||||||
print '<table class="noborder">';
|
print '<table class="noborder">';
|
||||||
print '<tr class="liste_titre"><td colspan="2">Actions</td></tr>';
|
print '<tr class="liste_titre"><td colspan="2">Actions</td></tr>';
|
||||||
|
|
||||||
|
if (is_array($resCached))
|
||||||
|
{
|
||||||
$var = ! $var;
|
$var = ! $var;
|
||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
print "<td>Caching</td>";
|
print "<td>Caching</td>";
|
||||||
@ -264,6 +269,10 @@ if (is_array($res))
|
|||||||
print "<td>Optimizer</td>";
|
print "<td>Optimizer</td>";
|
||||||
print '<td align="right"><input type="submit" class="butAction" name="optimizer" value="'. ($info['optimizer']?'disable':'enable') .'" /></td>';
|
print '<td align="right"><input type="submit" class="butAction" name="optimizer" value="'. ($info['optimizer']?'disable':'enable') .'" /></td>';
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($resRemoved))
|
||||||
|
{
|
||||||
$var = ! $var;
|
$var = ! $var;
|
||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
print "<td>Clear cache</td>";
|
print "<td>Clear cache</td>";
|
||||||
@ -279,23 +288,28 @@ if (is_array($res))
|
|||||||
print "<td>Purge cache</td>";
|
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 '<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>";
|
print "</tr></table></form>";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($resCached))
|
||||||
|
{
|
||||||
|
print "<br><br>";
|
||||||
|
print "<b>Cached scripts</b><br>";
|
||||||
|
create_script_table($resCached);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($resRemoved))
|
||||||
|
{
|
||||||
|
print "<br><br>";
|
||||||
|
print "<b>Removed scripts</b><br>";
|
||||||
|
create_script_table($resRemoved);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is :";
|
||||||
|
print "<br>";
|
||||||
|
print $_SERVER["SCRIPT_FILENAME"];
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<br><br>";
|
|
||||||
print "<b>Cached scripts</b><br>";
|
|
||||||
print "<table>";
|
|
||||||
|
|
||||||
$res = @eaccelerator_cached_scripts(); // If success return an array
|
|
||||||
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;
|
|
||||||
|
|
||||||
print '<br><br>';
|
|
||||||
print '<b>Removed scripts</b><br>';
|
|
||||||
|
|
||||||
$res = @eaccelerator_removed_scripts();
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
if (function_exists('eaccelerator_get'))
|
if (function_exists('eaccelerator_get'))
|
||||||
{
|
{
|
||||||
@ -304,17 +318,13 @@ if (function_exists('eaccelerator_get'))
|
|||||||
$res=eaccelerator_list_keys();
|
$res=eaccelerator_list_keys();
|
||||||
create_key_table($res);
|
create_key_table($res);
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
||||||
<br /><br />
|
print "<br /><br />";
|
||||||
<hr />
|
print "<hr />";
|
||||||
<table>
|
print '<table><tr><td class="center">';
|
||||||
<tr><td class="center">
|
print '<strong>Eaccelerator is created by the eAccelerator team, <a href="http://eaccelerator.net">http://eaccelerator.net</a></strong><br /><br />';
|
||||||
<strong>Eaccelerator is created by the eAccelerator team, <a href="http://eaccelerator.net">http://eaccelerator.net</a></strong><br /><br />
|
print "</td></tr></table>";
|
||||||
</td></tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
llxfooter('$Date$ - $Revision$');
|
llxfooter('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user