<?php include_once( "../../spider.inc.php" ); header('Content-Type: application/xml; charset=UTF-8'); ?>{charset:UTF-8}{module:system.login.Require}{module:content.LoadList}
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<contents>
{foreach:content.fileInformationHash name fileInformation}
{set:iconImage 'others.gif'}
{if:'pdf'==fileInformation['type']}
{set:iconImage 'pdf.gif'}
{else-if:preg_match('/\.htm(|l)$/',name)>0}
{set:iconImage 'html.gif'}
{else-if:preg_match('/\.xml$/',name)>0 || preg_match('/\.xsl$/',name)>0}
{set:iconImage 'xml.gif'}
{else-if:preg_match('/\.txt$/',name)>0}
{set:iconImage 'text.gif'}
{else-if:preg_match('/\.js$/',name)>0}
{set:iconImage 'js.gif'}
{else-if:preg_match('/\.css$/',name)>0}
{set:iconImage 'css.gif'}
{else-if:preg_match('/\.(swf|flv)/',name)>0}
{set:iconImage 'flash.gif'}
{/if}<content type="{write:fileInformation['type']}"
		name="{write:name}"
		folder="{write:content.currentFoloder}"
		thumbnail="{if:'image'==fileInformation['type']}<?php echo preg_replace('/\\/$/','',SPIDER_URI_BASE); ?>{if:strlen(fileInformation['thumb'])>0}{write:fileInformation['thumb_uri']}{else}{write:fileInformation['uri']}{/if}{else}<?php echo SPIDER_URI_BASE.SYSTEM_DIR_NAME_ADMIN_PANEL; ?>/content/images/icon/{write:iconImage}{/if}"
		width="{if:isset(fileInformation['width'])}{write:fileInformation['width']}{else}{/if}"
		height="{if:isset(fileInformation['height'])}{write:fileInformation['height']}{else}{/if}"
		size="{if:isset(fileInformation['size'])}{write:fileInformation['size']}{else}{/if}"
		title="{if:isset(fileInformation['page_title'])}{write:fileInformation['page_title']}{else}{/if}"
		template="{if:isset(fileInformation['template_file_name'])}{write:fileInformation['template_file_name']}{else}{/if}"
		/>
{/foreach}
</contents>