{php}$check = false;{/php} {if empty($info['addon']) && empty($info['database']) && empty($info['dir']) && empty($info['demodata']) && !isset($addonInfo)}

{:__('Test passed')}

{/if} {if isset($addonInfo)}

{:__('Version update')}

{:__('Installed version')} | {:__('Upgrade to version')}
--- | ---
{$addonInfo['version']} | {$info['version']}

{/if} {if isset($info['addon']) && !empty($info['addon']) && is_array($info['addon'])}

{:__('Dependent plugin')}

{:__('Addon')} | {:__('Installed version')} | {:__('Required version')} | {:__('Test results')}
--- | --- | --- | ---
{volist name="info['addon']" id="vo"}
{$vo['name']} | {$vo['version']} | {$vo['need_ver']} | {if $vo['status']==1} {if (version_compare($vo['version'],$vo['need_ver'],'>='))} {else } {php}$check = true;{/php} {:__('Version too low')} {/if} {elseif $vo['status']==-1} {php}$check = true;{/php} {:__('Disabled')} {else /} {php}$check = true;{/php} {:__('Not Installed')} {/if}
{/volist}

{/if} {if isset($info['database']) && !empty($info['database']) && is_array($info['database'])}

{:__('Database table detection')}

{:__('Database Table')} | {:__('Test results')}
--- | ---
{volist name="info['database']" id="vo"}
{$vo['table']} | {if $vo['status']==1} {else /} {:__('%s existed',[''])} {/if}
{/volist}

{/if} {if isset($info['dir']) && !empty($info['dir']) && is_array($info['dir'])}

{:__('Directory file permissions')}

{:__('Directory file listing')} | {:__('Test results')}
--- | ---
{volist name="info['dir']" id="vo"} {if $vo['status']!=1}
{$vo['path']} | {if $vo['status']==1} {elseif ($vo['status']==-1)} {if isset($update) && $update==1} {:__('Upgrade will overwrite')} {else /} {php}$check = true;{/php} {:__('%s existed',[''])} {/if} {else /} {php}$check = true;{/php} {:__('%s no permission to write',[''])} {/if}
{/if} {/volist}

{:__('Force override')}
{/if} {if isset($info['demodata']) && $info['demodata']==1}

{:__('Demo data')}

{:__('Import demo data')}

{:__('Note: This operation will overwrite the data, please do not operate in the online project!')}

{/if}
{block:script}
{/block:script}