* hacklord * Waplocus <!--parser:xtscript-->
var $sharer=<xt:url noquery="1" />
var $file_type=http://xtgem.com/images/icons/mimes
get_or_default __filelist_page;1
get detail
if $detail
goto @landing_page
endif

var $template=<table border="0" width="100%" cellspacing="1"><tbody><tr valign="top"><td width="16px" class="icon"><img src="http://xtgem.com/images/icons/mimes/.file_type..png" alt="*" /></td><td width="auto" class="title"><b><a href="?detail=.file_name.&amp;__filelist_page=1">.file_name_parsed.</a></b></td></tr><tr valign="top"><td colspan="2" class="list1">Size file: .file_size.<br>Date file: .file_date.</td></tr></tbody></table>
var $template=call htmlspecialchars $val=$template
var $list =<xt:filelist sort_type="name" sort_dir="asc" folder="/folder" template="$template" per_page="5" filter="*.*"/>
print $list
print <div class="jump"><form action="" method="get"><input type="text" name="__filelist_page" format="*N" value="" size="3" /><input type="submit" value="Jump Page" class="button" /></form></div>
goto @end
@landing_page
# landing page
# Template must be all on one line
var $query_url = call urlencode $val=$detail
var $template_detail=<div class="title"><img src="$file_type/.file_type..png" alt="*" /> <b>.file_name_parsed.</b></div><div class="list1"><div class="subtitle"><img src="http://kubang.mobie.in/images/download_package.png" class="list1" alt="*" /></div>Type File: .file_mime.<br />Date Update: .file_datetime.</div><div class="list2"><img src="http://kubang.mobie.in/images/icons/download.png" alt="*" /> <b><a href=".file_url.?__xt_download=1">Download File</a></b> (.file_size.)</div><div class="title"><b>Share Link</b></div><div class="list1">Social share: <a href="http://facebook.com/sharer.php?u=$sharer?detail=$query_url"><img src="http://kubang.mobie.in/images/icons/facebook.png" alt="*" /></a> <a href="http://twitter.com/share?url=$sharer?detail=$query_url"><img src="http://kubang.mobie.in/images/icons/twitter.png" alt="*" /></a> <a href="http://plus.google.com/share?url=$sharer?detail=$query_url"><img src="http://kubang.mobie.in/images/icons/google_plus.png" alt="*" /></a></div><div class="list1">File Address:<br><input type="text" value="$sharer?detail=$query_url" /><br>BB Code:<br><input type="text" value="[url=$sharer?detail=$query_url].file_name_parsed. (.file_size.)[/url]" /> <br>HTML Code:<br><input type="text" value="&lt;a href=&amp;quot;$sharer?detail=$query_url&amp;quot;&gt;.file_name_parsed. (.file_size.)&lt;/a&gt;" /></div>
var $template_detail=call htmlspecialchars $val=$template_detail
var $list=<xt:filelist folder="/folder" template="$template_detail" filter="$detail"/>
print $list
print <div class="list2">« <a href="?__filelist_page=$__filelist_page"/>Back to list</a></div>
endif
@end
<!--/parser:xtscript-->
2017-02-04 22:24 · (0)

Online: Guests: 1