Đây là code filelist wapgame xtgem chưa nâng cấp,filelist có dấu.cấu trúc gồm 2 file:
index
view
và 4 thư mục:
name/
desc/
jar/
img/
game sẽ được up theo id.
Ví dụ: game với id là 1 thì ta sẽ up như sau:
name/1.txt đây là tên game
desc/1.txt giới thiệu về game
img/1/ hình minh họa,ko giới hạn số lượng và định dạng
jar/1/chứa các phiên bản jar hay khác của game
Đây là file index
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml xml; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<xt:code>
<!--parser:xtscript-->
get theme
assign $themeurl=/theme/$theme/style.css
assign $check=call source $file=$themeurl;$html_safe=0;$nl2br=1;$space2nbsp=0
if not $theme or not $check
assign $theme=default
endif
print <link rel="stylesheet" href="/theme/$theme/style.css" type="text/css" />
<!--/parser:xtscript--> </xt:code>
<title>XtGem.com</title>
</head>
<body>
<div data-xtcontainer="container" class="xt_container">
</div>
<xt:code>
<!--parser:xtscript-->
assign $dir=/name/
assign $list=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dir" template="<div class="list2"> <a href=".file_url."><b>•~start~.file_name_parsed.~end~</a></b> </div>" filter=""/>
assign $html=$list
@start
if not $text
assign $text=$list
endif
assign $end=call strrpos $haystack=$text;$needle=~end~; $offset=0
assign $start=call strrpos $haystack=$text;$needle=~start~; $offset=0
assign $startt=($start 7)
assign $length=0
assign $replace = call substr $val=$html;$start=$startt;$length=$length
assign $text = call substr $val=$text;$start=0;$length=$start
assign $file=/name/$replace
assign $rep=call source $file=$file;$html_safe=0;$nl2br=0;$space2nbsp=0
assign $need=~start~$replace~end~
assign $html = call str_replace $subject=$html; $search=$need;$replace=$rep
if $start > 20
goto @start
endif
assign $html = call str_replace $subject=$html; $search=$dir;$replace=/view?article=
assign $html = call str_replace $subject=$html; $search=.txt;$replace=&page=1
assign $html = call str_replace $subject=$html; $search=>...</a>;$replace=></a>
assign $html = call str_replace $subject=$html; $search=<span>;$replace=<span class="currentpage">
print <div class="maintxt">
print $html
print </div>
print <div class="footer">Load:
call execution_time
print </div>
<!--/parser:xtscript-->
</xt:code>
Đây là file view
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml xml; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<xt:code>
<!--parser:xtscript-->
get theme
assign $themeurl=/theme/$theme/style.css
assign $check=call source $file=$themeurl;$html_safe=0;$nl2br=1;$space2nbsp=0
if not $theme or not $check
assign $theme=default
endif
print <link rel="stylesheet" href="/theme/$theme/style.css" type="text/css" />
get page
if not $page or $page==0
assign $page=1
endif
get article
if not $article or $article==0
assign $article=1
endif
assign $textl=name/$article.txt
assign $title=call source $file=$textl;$html_safe=0;$nl2br=1;$space2nbsp=0
assign $output = call strip_tags $val=$title;$allowable_tags=
print <title>$output</title>
<!--/parser:xtscript-->
</xt:code>
</head>
<body>
<div data-xtcontainer="container" class="xt_container">
</div>
<xt:code>
<!--parser:xtscript-->
get page
if not $page or $page==0
assign $page=1
endif
get article
if not $article or $article==0
assign $article=1
endif
assign $nameurl=name/$article.txt
assign $descurl=desc/$article.txt
assign $dirjar=jar/$article/
assign $dirimg=img/$article/
assign $img=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dirimg" template="<img src=".file_url." width="80%"><br />" filter=""/>
assign $jar=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dirjar" template="<div class="gmenu"><b>» <a href=".file_url." >.file_name.</a>(.file_size.)</b></div>" filter=""/>
assign $name=call source $file=$nameurl;$html_safe=0;$nl2br=1;$space2nbsp=0
assign $name = call strip_tags $val=$name;$allowable_tags=
assign $text=call source $file=$descurl;$html_safe=1;$nl2br=1;$space2nbsp=0
assign $bstart =
assign $bend =
assign $imgstart =₪ Tập tin đính kèm :
index
view
và 4 thư mục:
name/
desc/
jar/
img/
game sẽ được up theo id.
Ví dụ: game với id là 1 thì ta sẽ up như sau:
name/1.txt đây là tên game
desc/1.txt giới thiệu về game
img/1/ hình minh họa,ko giới hạn số lượng và định dạng
jar/1/chứa các phiên bản jar hay khác của game
Đây là file index
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml xml; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<xt:code>
<!--parser:xtscript-->
get theme
assign $themeurl=/theme/$theme/style.css
assign $check=call source $file=$themeurl;$html_safe=0;$nl2br=1;$space2nbsp=0
if not $theme or not $check
assign $theme=default
endif
print <link rel="stylesheet" href="/theme/$theme/style.css" type="text/css" />
<!--/parser:xtscript--> </xt:code>
<title>XtGem.com</title>
</head>
<body>
<div data-xtcontainer="container" class="xt_container">
</div>
<xt:code>
<!--parser:xtscript-->
assign $dir=/name/
assign $list=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dir" template="<div class="list2"> <a href=".file_url."><b>•~start~.file_name_parsed.~end~</a></b> </div>" filter=""/>
assign $html=$list
@start
if not $text
assign $text=$list
endif
assign $end=call strrpos $haystack=$text;$needle=~end~; $offset=0
assign $start=call strrpos $haystack=$text;$needle=~start~; $offset=0
assign $startt=($start 7)
assign $length=0
assign $replace = call substr $val=$html;$start=$startt;$length=$length
assign $text = call substr $val=$text;$start=0;$length=$start
assign $file=/name/$replace
assign $rep=call source $file=$file;$html_safe=0;$nl2br=0;$space2nbsp=0
assign $need=~start~$replace~end~
assign $html = call str_replace $subject=$html; $search=$need;$replace=$rep
if $start > 20
goto @start
endif
assign $html = call str_replace $subject=$html; $search=$dir;$replace=/view?article=
assign $html = call str_replace $subject=$html; $search=.txt;$replace=&page=1
assign $html = call str_replace $subject=$html; $search=>...</a>;$replace=></a>
assign $html = call str_replace $subject=$html; $search=<span>;$replace=<span class="currentpage">
print <div class="maintxt">
print $html
print </div>
print <div class="footer">Load:
call execution_time
print </div>
<!--/parser:xtscript-->
</xt:code>
Đây là file view
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml xml; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<xt:code>
<!--parser:xtscript-->
get theme
assign $themeurl=/theme/$theme/style.css
assign $check=call source $file=$themeurl;$html_safe=0;$nl2br=1;$space2nbsp=0
if not $theme or not $check
assign $theme=default
endif
print <link rel="stylesheet" href="/theme/$theme/style.css" type="text/css" />
get page
if not $page or $page==0
assign $page=1
endif
get article
if not $article or $article==0
assign $article=1
endif
assign $textl=name/$article.txt
assign $title=call source $file=$textl;$html_safe=0;$nl2br=1;$space2nbsp=0
assign $output = call strip_tags $val=$title;$allowable_tags=
print <title>$output</title>
<!--/parser:xtscript-->
</xt:code>
</head>
<body>
<div data-xtcontainer="container" class="xt_container">
</div>
<xt:code>
<!--parser:xtscript-->
get page
if not $page or $page==0
assign $page=1
endif
get article
if not $article or $article==0
assign $article=1
endif
assign $nameurl=name/$article.txt
assign $descurl=desc/$article.txt
assign $dirjar=jar/$article/
assign $dirimg=img/$article/
assign $img=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dirimg" template="<img src=".file_url." width="80%"><br />" filter=""/>
assign $jar=<xt:filelist sort_type="updated" sort_dir="desc" per_page="10" folder="$dirjar" template="<div class="gmenu"><b>» <a href=".file_url." >.file_name.</a>(.file_size.)</b></div>" filter=""/>
assign $name=call source $file=$nameurl;$html_safe=0;$nl2br=1;$space2nbsp=0
assign $name = call strip_tags $val=$name;$allowable_tags=
assign $text=call source $file=$descurl;$html_safe=1;$nl2br=1;$space2nbsp=0
assign $bstart =
assign $bend =
assign $imgstart =₪ Tập tin đính kèm :
₪ Xem thêm