Example #1
0
//function_exists('apc_cache_info') || function_exists('eaccelerator_info') || function_exists('xcache_info'))
if (!function_exists('xcache_info'))
{
    print 'XCache seems to be not installed. Function xcache_info not found.';
	llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.2 $');
	exit;
}


print 'Opcode cache XCache is on<br>'."\n";

/*
$cacheinfos = array();
for ($i = 0; $i < 10; $i ++)
{
    $data = xcache_info(XC_TYPE_PHP, $i);
    $data['cacheid'] = $i;
    $cacheinfos[] = $data;
}

var_dump($cacheinfos);

if ($action == 'clear')
{
    xcache_clear_cache();
}
*/

llxfooter('$Date: 2011/07/31 22:23:14 $ - $Revision: 1.2 $');
?>
Example #2
0
		print "<b>Removed scripts</b><br>";
		create_script_table($resRemoved);
	}
}
else
{
	print "<br><br>";
	print "Check in your <b>php.ini</b> that <b>eaccelerator.allowed_admin_path</b> parameter is : ";
	print "<br><br>";
	print "<b>".$_SERVER["SCRIPT_FILENAME"]."</b>";
	print "<br><br>";
}

if (function_exists('eaccelerator_get'))
{
	print '<br><br>';
	print '<b>Cached keys</b><br>';
	$res=eaccelerator_list_keys();
	create_key_table($res);
}

print "<br><br>";
print "<hr />";
print '<table><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>';
print "</td></tr></table>";


llxfooter('$Date: 2011/08/03 00:45:43 $ - $Revision: 1.18 $');
?>
			</div>';
            echo '</div>';
        }
    } else {
        echo '<div class="tabsAction">';
        echo '
			<div class="inline-block divButAction">
				<input type="submit" class="butAction" value="Payer les récurrences sélectionnées" />
			</div>';
        echo '<div class="inline-block divButAction"><a class="butAction" href="gestion.php?action=add">Ajouter une récurrence</a></div>';
        echo '</div>';
    }
}
echo '</form>';
echo '<div style="clear: both;"></div>';
llxfooter();
?>

<script>
	$(document).ready(function() {
		$(".date").datepicker({
			dateFormat: 'dd/mm/yy',
			defaultDate: null
		}).val();
	
		$('.update-recurrence, .delete-recurrence').click(function(e) {
			e.preventDefault();
			
			var type 		 = $(this).attr('class');
			var id_charge 	 = $(this).data('chargesociale');
			var periode		 = $('#periode_' + id_charge + ' option:selected').val();
Example #4
0
	if (empty($conf->memcached->host)) {
		print '<tr><td colspan="2">' . $langs->trans("ConfigureParametersFirst") . '</td></tr>';
	} else if (is_array($arraycache)) {
		$newarraycache = array();
		if (class_exists("Memcached"))
			$newarraycache = $arraycache;
		else if (class_exists("Memcache"))
			$newarraycache[$conf->memcached->host] = $arraycache;
		else
			dol_print_error('', 'Should not happen');

		foreach ($newarraycache as $key => $val) {
			print '<tr ' . $bc[0] . '><td>' . $langs->trans("MemcachedServer") . '</td>';
			print '<td>' . $key . '</td></tr>';

			print '<tr ' . $bc[1] . '><td>' . $langs->trans("Version") . '</td>';
			print '<td>' . $val['version'] . '</td></tr>';

			print '<tr ' . $bc[0] . '><td>' . $langs->trans("Status") . '</td>';
			print '<td>' . $langs->trans("On") . '</td></tr>';
		}
	} else {
		print '<tr><td colspan="2">' . $langs->trans("FailedToReadServer") . ' - Result code = ' . $resultcode . '</td></tr>';
	}

	print '</table>';
}
dol_fiche_end();

llxfooter('$Date: 2011/03/29 23:17:21 $ - $Revision: 1.17 $');
?>