1{* $Id$ *}
2
3		{tab name="{tr}Bytecode Cache{/tr}"}
4			{if $opcode_cache}
5				<p>{tr _0=$opcode_cache}Using <strong>%0</strong>.These stats affect all PHP applications running on the server.{/tr}</p>
6
7				{if $opcode_stats.warning_xcache_blocked}
8					<p>{tr}Configuration setting <em>xcache.admin.enable_auth</em> prevents from accessing statistics. This will also prevent the cache from being cleared when clearing template cache.{/tr}</p>
9				{/if}
10
11				<p>
12					<img src="http://chart.apis.google.com/chart?cht=p3&amp;chs=250x100&amp;chd=t:{$opcode_stats.memory_used},{$opcode_stats.memory_avail}&amp;chl={tr}Used{/tr}|{tr}Available{/tr}&amp;chtt={tr}Memory{/tr}" width="250" height="100"/>
13					<img src="http://chart.apis.google.com/chart?cht=p3&amp;chs=250x100&amp;chd=t:{$opcode_stats.hit_hit},{$opcode_stats.hit_miss}&amp;chl={tr}Hit{/tr}|{tr}Miss{/tr}&amp;chtt={tr}Cache Hits{/tr}" width="250" height="100"/>
14				</p>
15
16				{if $opcode_stats.warning_fresh}
17					<p>{tr}Few hits recorded. Statistics may not be representative.{/tr}</p>
18				{/if}
19
20				{if $opcode_stats.warning_ratio}
21					<p>{tr _0=$opcode_cache}Low hit ratio. %0 may be misconfigured and not used.{/tr}</p>
22				{/if}
23
24			{else}
25				{tr}Bytecode cache is not used. Using a bytecode cache (APC, XCache) is highly recommended for production environments.{/tr}
26			{/if}
27		{/tab}
28		{tr}Errors{/tr}
29		{tr}Errors:{/tr}
30		{foreach from=$ins_fields key=ix item=cur_field}
31			{if ($cur_field.isHidden ne 'y' or $tiki_p_admin_trackers eq 'y') and !($tracker_info.doNotShowEmptyField eq 'y' and empty($cur_field.value) and empty($cur_field.cat) and empty($cur_field.links) and $cur_field.type ne 's' and $cur_field.type ne 'h') and ($cur_field.options_array[0] ne 'password') and (empty($cur_field.visibleBy) or in_array($default_group, $cur_field.visibleBy) or $tiki_p_admin_trackers eq 'y')}
32				<tr class="field{$cur_field.fieldId}">
33					<td class="formlabel" >
34						{$cur_field.name|escape}
35					</td>
36					<td class="formcontent">
37						{trackeroutput field=$cur_field item=$item_info showlinks=n list_mode=n inTable=y}
38					</td>
39				</tr>
40			{/if}
41		{/foreach}
42		{if $tracker_info.showCreatedView eq 'y'}
43			<tr>
44				<td class="formlabel">{tr}Created{/tr}</td>
45				<td colspan="3" class="formcontent">{$info.created|tiki_long_datetime}{if $tracker_info.showCreatedBy eq 'y'}<br />by {if $prefs.user_show_realnames eq 'y'}{if empty($info.createdBy)}Unknown{else}{$info.createdBy|username}{/if}{else}{if empty($info.createdBy)}Unknown{else}{$info.createdBy}{/if}{/if}{/if}</td>
46			</tr>
47		{/if}
48