Niushop电商系统 v1.0怎么样seo超级伪静态 v3.5.2

ewebeditor
slidebar.gif
slidemover.gif
wl_mmsdiy_b4.gif
wl_mmsdiy_b5.gif
wl_mmsdiy_b6.gif
01_offline.gif
01_online.gif
02_offline.gif
02_online.gif
03_offline.gif
03_online.gif
04_offline.gif
04_online.gif
05_offline.gif
05_online.gif
10_offline.gif
10_online.gif
11_offline.gif
11_online.gif
12_offline.gif
12_online.gif
13_offline.gif
13_online.gif
6_offline.gif
6_online.gif
7_offline.gif
7_online.gif
8_offline.gif
8_online.gif
9_offline.gif
9_online.gif
index_right_new01.gif
index_right_new02.gif
index_right_new04.gif
index_right_new04_01.gif
index_right_new04_02.gif
index_right_new04_03.gif
index_right_new04_04.gif
index_right_new04_05.gif
index_right_new05.gif
index_right_newbg01.gif
indexbg.gif
index_hz01.gif
index_hz02.gif
index_hz03.gif
index_hz04.gif
index_hz05.gif
scriptaculous
bg_header.gif
bg_logo.gif
bg_menu.gif
bg_menu2.gif
button_a.gif
button_b.gif
check_no.gif
check_yes.gif
dir_icon.gif
file_icon.gif
help_icon.gif
icon_editstyle.gif
icon_updatalabel.gif
lineheight.gif
menu_add.gif
menu_reduce.gif
more_l1.gif
more_l2.gif
more_r1.gif
more_r2.gif
mpbasebg.gif
post_bt.gif
selcolor.htm
adminguidemenu
sysmenu.htm
addpic.htm
article_menu.htm
choose_sort.htm
listartic.htm
myarticle.htm
article_group
article_module
editfield.htm
editmodule.htm
editsort.htm
article_more
avoidgather.htm
config.htm
other2this.htm
cc_attack.htm
config.htm
gd_img.htm
limitip.htm
user_reg.htm
vistlimit.htm
autoadd.htm
choose.htm
list_ch.htm
list_fid.htm
addmember.htm
editmember.htm
cutimg.htm
friendlink
friendlink.htm
friendlink_sort
friendlink.htm
addpic.htm
article_menu.htm
choose_sort.htm
listartic.htm
myarticle.htm
addsort.htm
batch_edit.htm
choose_sort.htm
creat_channel.htm
editsort.htm
editsort2.htm
edit_channel.htm
admin_gr.htm
list_admin.htm
autoadd.htm
sortsp.htm
article.htm
blog_c.htm
blog_member.htm
comment.htm
guestbook.htm
hack_code.htm
hack_rollnews.htm
hack_vote.htm
member.htm
rollpic.htm
special.htm
specialsort.htm
addmember.htm
editmember.htm
memberguidemenu
sysmenu.htm
automake.htm
outaction.htm
choose_sort.htm
post_set.htm
editfield.htm
editsort.htm
addsort.htm
batch_edit.htm
choose_sort.htm
creat_channel.htm
editsort.htm
editsort2.htm
edit_channel.htm
editsp.htm
edit_atc.htm
edit_bbs.htm
list_label.htm
list_style.htm
editsort.htm
header.htm
location.htm
showmsg.htm
config.htm
addplace.htm
listad.htm
listuser.htm
addplace.htm
edituserad.htm
listad.htm
listuserad.htm
mylist.htm
config.htm
settable.htm
editsort.htm
config.htm
editfield.htm
editmodule.htm
editsort.htm
config.htm
editfield.htm
editsort.htm
listfield.htm
goshop.gif
shopbuy.gif
mylist.htm
collection.htm
post_choose.htm
bencandy_0.htm
bencandy_1.htm
bencandy_2.htm
comment_ajax.htm
joinshow.htm
listall.htm
list_0.htm
list_1.htm
post_0.htm
post_1.htm
post_2.htm
report.htm
search_0.htm
search_1.htm
search_2.htm
show_img.htm
listall.htm
listmore.htm
editsort.htm
post_100.htm
post_101.htm
post_102.htm
member_tpl
post_100.htm
post_101.htm
post_102.htm
ewebeditor
etc_01.gif
etc_02.gif
etc_03.gif
etc_04.gif
etc_05.gif
etc_06.gif
etc_07.gif
etc_08.gif
etc_09.gif
etc_10.gif
etc_11.gif
etc_12.gif
etc_13.gif
etc_14.gif
etc_15.gif
etc_16.gif
etc_17.gif
etc_18.gif
etc_19.gif
etc_20.gif
etc_21.gif
etc_22.gif
etc_23.gif
etc_24.gif
etc_25.gif
etc_26.gif
etc_27.gif
etc_28.gif
etc_29.gif
etc_30.gif
etc_31.gif
etc_32.gif
etc_33.gif
etc_34.gif
etc_35.gif
etc_36.gif
about.html
flash.html
image.html
media.html
plainpaste.html
remote_image.html
wordpaste.html
default.css
default.gif
spacer.gif
tinymce.css
tinymce.gif
spacer.gif
logo_ckeditor.png
colordialog
placeholder.png
hiddenfield.gif
iframedialog
anchor.gif
pagebreak.gif
pastefromword
toolbar.css
showblocks
block_address.png
block_blockquote.png
block_div.png
block_h1.png
block_h2.png
block_h3.png
block_h4.png
block_h5.png
block_h6.png
block_p.png
block_pre.png
angel_smile.gif
angry_smile.gif
broken_heart.gif
confused_smile.gif
cry_smile.gif
devil_smile.gif
embaressed_smile.gif
envelope.gif
lightbulb.gif
omg_smile.gif
regular_smile.gif
sad_smile.gif
shades_smile.gif
teeth_smile.gif
thumbs_down.gif
thumbs_up.gif
tounge_smile.gif
whatchutalkingabout_smile.gif
wink_smile.gif
specialchar
tabletools
template1.gif
template2.gif
template3.gif
hue_bg.png
hue_thumb.png
picker_mask.png
picker_thumb.png
uicolor.gif
ciframe.html
tmpFrameset.html
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
noimage.png
sprites.png
sprites_ie6.png
toolbar_start.gif
dialog.css
editor.css
templates.css
office2003
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
noimage.png
sprites.png
sprites_ie6.png
dialog.css
editor.css
templates.css
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
noimage.png
sprites.png
sprites_ie6.png
toolbar_start.gif
dialog.css
editor.css
templates.css
CKEditor配置使用.txt
contents.css
CommandHandler
ErrorHandler
CommandHandler
ErrorHandler
fileeditor
codemirror
phpcolors.css
index.html
csscolors.css
jscolors.css
people.jpg
sparqlcolors.css
xmlcolors.css
imageresize
default.icon.gif
default.icon.gif
clear_basket.gif
delete.gif
download.gif
refresh.gif
settings.gif
ckffolder.gif
ckffolderopened.gif
ckfminus.gif
ckfnothumb.gif
ckfplus.gif
spacer.gif
sprites.png
sprites_ie6.png
richcombo.css
uipanel.css
default.icon.gif
default.icon.gif
clear_basket.gif
delete.gif
download.gif
refresh.gif
settings.gif
ckffolder.gif
ckffolderopened.gif
ckfminus.gif
ckfnothumb.gif
ckfplus.gif
dialog_sides.gif
dialog_sides.png
dialog_sides_rtl.png
spacer.gif
sprites.png
sprites_ie6.png
toolbar_start.gif
richcombo.css
uipanel.css
ckfinder.html
license.txt
bgcolor.gif
design.gif
emoticons.gif
flashpreview.gif
fontsize.gif
indent.gif
italic.gif
justifycenter.gif
justifyfull.gif
justifyleft.gif
justifyright.gif
mediapreview.gif
numberedlist.gif
outdent.gif
preview.gif
realpreview.gif
removeformat.gif
selectall.gif
source.gif
specialchar.gif
strikethrough.gif
subscript.gif
superscript.gif
textcolor.gif
underline.gif
unlink.gif
unorderedlist.gif
buttonimage
abspos.gif
anchor.gif
backcolor.gif
backward.gif
bgcolor.gif
checked.gif
componentmenu.gif
createlink.gif
delete.gif
editmenu.gif
fieldset.gif
filemenu.gif
findreplace.gif
fontmenu.gif
forecolor.gif
formbutton.gif
formcheckbox.gif
formdropdown.gif
formmenu.gif
formradio.gif
formtext.gif
formtextarea.gif
forward.gif
iframe.gif
indent.gif
inserthorizontalrule.gif
insertorderedlist.gif
insertparagraph.gif
insertunorderedlist.gif
italic.gif
justifycenter.gif
justifyfull.gif
justifyleft.gif
justifyright.gif
marquee.gif
maximize.gif
minimize.gif
modecode.gif
modecodebtn.gif
modeedit.gif
modeeditbtn.gif
modetext.gif
modetextbtn.gif
modeview.gif
modeviewbtn.gif
objectmenu.gif
outdent.gif
paragraph.gif
paragraphmenu.gif
pastetext.gif
pasteword.gif
refresh.gif
removeformat.gif
selectall.gif
showborders.gif
showdetails.gif
sizeminus.gif
sizeplus.gif
strikethrough.gif
subscript.gif
superscript.gif
symbol.gif
tablecellprop.gif
tablecellsplit.gif
tablecoldelete.gif
tablecolinsertleft.gif
tablecolinsertright.gif
tablecolmerge.gif
tablecolsplit.gif
tableinsert.gif
tablemenu.gif
tableprop.gif
tablerowdelete.gif
tablerowinsertabove.gif
tablerowinsertbelow.gif
tablerowmerge.gif
tablerowprop.gif
tablerowsplit.gif
template.gif
toolmenu.gif
tosmall.gif
underline.gif
unlink.gif
unselect.gif
zoommenu.gif
editor.css
editorarea.css
menuarea.css
tbhandle.gif
toolbarbg.gif
toolbarleft.gif
toolbarright.gif
editor.css
editorarea.css
menuarea.css
anchor.htm
backimage.htm
dialog.css
fieldset.htm
findreplace.htm
fullscreen.htm
hyperlink.htm
iframe.htm
marquee.htm
paragraph.htm
selcolor.htm
symbol.htm
tablecell.htm
tablecellsplit.htm
birthday.gif
christmas.gif
citrus.gif
fiesta.jpg
flower.gif
gathering.jpg
glacier.jpg
hearts.gif
nature.jpg
closedfolder.gif
folder.gif
folderback.gif
openfolder.gif
parentfolder.gif
unknow.gif
actualsize.gif
bestfit.gif
contextmenu.gif
ewebeditor.gif
rectimg.gif
zoomin.gif
zoomout.gif
common.css
config.htm
form_content
form_module
admin_bencandy.htm
admin_list.htm
bencandy.htm
bencandy_2.htm
list_2.htm
search.htm
editfield.htm
listfield.htm
admin_bencandy_1.htm
admin_bencandy_2.htm
admin_bencandy_3.htm
admin_bencandy_4.htm
admin_bencandy_5.htm
admin_bencandy_6.htm
admin_bencandy_7.htm
admin_bencandy_8.htm
admin_list_1.htm
admin_list_2.htm
admin_list_3.htm
admin_list_4.htm
admin_list_5.htm
admin_list_6.htm
admin_list_7.htm
admin_list_8.htm
bencandy_1.htm
bencandy_2.htm
bencandy_3.htm
bencandy_4.htm
bencandy_5.htm
bencandy_6.htm
bencandy_7.htm
bencandy_8.htm
list_1.htm
list_2.htm
list_3.htm
list_4.htm
list_5.htm
list_6.htm
list_7.htm
list_8.htm
post_1.htm
post_2.htm
post_3.htm
post_4.htm
post_5.htm
post_6.htm
post_7.htm
post_8.htm
search_1.htm
search_2.htm
search_3.htm
search_4.htm
search_5.htm
search_6.htm
search_7.htm
search_8.htm
exam_write.htm
config.htm
editsort.htm
replyguestbook.htm
editsort.htm
attachment
listimg.htm
avoidgather
addrulesql.htm
editsort.htm
edit_content.htm
edit_title.htm
list_title.htm
sharerulesql.htm
getkeyword
makemap.htm
editsort.htm
listjf.htm
listsort.htm
addall.htm
replace.htm
getcode.htm
admin_logs.htm
login_logs.htm
oicq_code.htm
propagandize
propagandize.htm
getcode.htm
web168.htm
deletestyle.htm
editcode.htm
editcode.htm
getback.htm
maketpl.htm
maketpl2.htm
viewback.htm
getcode.htm
webmsgtpl.htm
config.htm
settable.htm
companynews
companypic
editsort.htm
homepage_tpl
aaa_r2_c2.jpg
aaa_r2_c4.jpg
addcoll.gif
addvip.jpg
ahead4.gif
bigbig.gif
ctrl_left.jpg
ctrl_right.jpg
default.css
dianciliuyan.gif
gif-0645.gif
goshop.gif
gougou.gif
gougou2.gif
gougou3.gif
help_03.gif
help_js_ico.gif
homepage_top1.gif
homepage_top3.gif
homepage_top4.gif
icn_ok.gif
icn_ps.gif
index_left_show.jpg
index_right_show.jpg
jiantou.jpg
jobs_tj_ico1.gif
jobs_tj_ico2.gif
jobs_tj_menu1.jpg
lianxifangshi.gif
msg_ico.gif
postcontent.jpg
reg_showinfo.gif
userpicdefault.gif
userpicsortdefault.gif
userpicupload.gif
userpicupload_do.gif
zh_left_div_top1.jpg
zh_left_div_top2.jpg
zh_menu.gif
homepage_style
banner.jpg
default.css
left_tbg.jpg
menu_1.jpg
right_tbg.jpg
banner.jpg
default.css
leftbg.jpg
menu_1.jpg
menu_2.jpg
rightbg.jpg
banner.jpg
default.css
leftbg.jpg
menu_1.jpg
banner.jpg
default.css
a_hoverbg.jpg
a_hoverbg2.jpg
banner.jpg
default.css
leftbg.jpg
leftbg_title.jpg
leftbg_title2.jpg
menu_2.jpg
rightbg.jpg
banner.jpg
default.css
left_tbg.jpg
menu_1.jpg
menu_2.jpg
right_tbg.jpg
banner.jpg
default.css
leftbg.jpg
menu_1.jpg
menu_2.jpg
rightbg.jpg
vip_bluesea
banner.jpg
default.css
leftbg.jpg
leftbg2.gif
menu_1.jpg
menu_2.jpg
rightbg.jpg
rightbg2.jpg
banner.jpg
default.css
leftbg.jpg
leftbg2.gif
leftbg2.jpg
menu_1.gif
menu_1.jpg
menu_2.jpg
rightbg.jpg
rightbg2.jpg
addcoll.gif
gougou.gif
notice.gif
sendmsg.gif
homepage_ctrl
homepage_ctrl
banner.htm
contactus.htm
mydomain.htm
piclist.htm
pic_edit.htm
pic_upload.htm
postnews.htm
cankao.htm
homepage_ctrl.htm
morechosefid.htm
post_company.htm
renzheng.htm
bd_pics.htm
choose_pic.htm
listall.htm
search.htm
ch_download.jpg
ch_flash.jpg
ch_movie.jpg
ch_news.jpg
ch_photo.jpg
ch_pro.jpg
ch_shop.jpg
slidebar.gif
slidemover.gif
email_0.gif
email_1.gif
idcard_0.gif
idcard_1.gif
99bill_logo.gif
alipay_logo.gif
arrow_list.gif
article_elite.gif
aud_ico.gif
bad_btn.gif
bg_digg.gif
button.gif
button1.gif
button2.gif
button_a.gif
button_b.gif
but_buy.gif
buy_bottom2.gif
calendar.swf
card_logo.gif
check_error.gif
check_right.gif
closes.gif
comment_title.gif
digg_center.gif
digg_left.gif
digg_right.gif
downpic.gif
down_ico.gif
flash_ico.gif
flea_dot.gif
flea_line.gif
flvplayer.swf
footer_bg.gif
footer_logo.gif
friendlink.gif
ggmap_add_position.jpg
ggmap_position.gif
good_btn.gif
good_ico.gif
header_gray.gif
headtoppic.gif
head_bg.gif
head_top_1.gif
head_top_2.gif
head_top_3.gif
hot_icon.gif
icon_bluedian.gif
icon_order_button.gif
icon_qi.gif
icon_star_1.gif
icon_star_2.gif
icotop.gif
ico_block.gif
ico_loading3.gif
iicon1.gif
img_ico.gif
line_bg.gif
linknopic.gif
listico.gif
loading.gif
login_button.gif
menu_add.gif
menu_reduce.gif
moneycard.gif
mov_ico.gif
new_ico.gif
nobody.gif
noface.gif
notice.jpg
order_button.gif
php168.gif
player.swf
position2.gif
post_bt.gif
pot_blue.gif
replys.gif
rollpic.css
rollpic.swf
se-resize.png
selcolor.htm
select.gif
showerr.gif
song_word.gif
tenpay_logo.gif
title_ico4.gif
title_icon3.gif
top_icon.gif
txt_ico.gif
upfile.gif
uploadmore.swf
uploadone.swf
votevs.gif
vote_sub.gif
vote_view.gif
ww_offline.gif
yeepay_logo.gif
zip_ico.gif
title_icon
arrow_list.gif
article_elite.gif
listico.gif
replys.gif
song_word.gif
title_ico4.gif
title_icon3.gif
areabg.gif
comment.gif
default.css
footbg1.gif
footbg2.gif
logo_showsp.gif
menulogo.gif
topimg.jpg
auto_08.jpg
auto_10.jpg
banner_bj.gif
bigbox_bg.jpg
box_headbg.jpg
finace6.jpg
finace_3.jpg
finace_mbg.jpg
finance_1.jpg
finance_background.jpg
finance_bg.jpg
finance_logo.gif
finance_muenbg.jpg
tiyu_leftwordbg.gif
tiyu_mubg.gif
tiyu_photo3.gif
tiyu_photo4.gif
vote_input.gif
xuxian.gif
indexsearch
inputbg.gif
select.gif
select1.gif
select2.gif
select3.gif
select4.gif
body_bg.gif
bradn_bg.gif
bradn_bg1.gif
brand_bbg.gif
brand_bencandy.css
brand_bottom.gif
brand_but1.gif
brand_but2.gif
brand_heada.gif
brand_headb.gif
brand_headc.gif
brand_index.css
brand_join.gif
brand_list.css
brand_listpicbg.gif
brand_sortbg.gif
brand_yz0.gif
brand_yz1.gif
brand_yz2.gif
bsearch.gif
butter0.gif
buttercha.gif
buyad_bg.gif
buy_butter.gif
buy_index.css
buy_login.gif
buy_note.gif
centerbg.gif
center_index.css
check_company.gif
choose.gif
comarray.gif
comarray1.gif
comment_egg.gif
comment_fl.gif
comment_guest.gif
comment_hicon.gif
company_list.css
company_renzheng.gif
company_renzheng0.gif
company_renzheng1.gif
company_renzheng2.gif
company_renzheng3.gif
com_headbg1.gif
com_rr.gif
com_tag.gif
coupon_butter.gif
coupon_goto.gif
coupon_head.gif
coupon_head2.gif
coupon_head3.gif
coupon_headl.gif
coupon_headr.gif
coupon_icon1.gif
coupon_num.gif
coupon_picbg.gif
dotted.gif
fenlie_butter.gif
fenlie_butter1.gif
fenlie_butter2.gif
fenlie_butter3.gif
fenlie_coner.gif
fenlie_head.gif
fenlie_headc.gif
fenlie_headl.gif
fenlie_houre24.gif
fenlie_icon.gif
fenlie_icon1.gif
fenlie_login.gif
fenlie_login_line.gif
fenlie_notice.gif
fenlie_rboxbg.gif
fenlie_sortbg.gif
fenlie_sortbga.gif
fenlie_stree.gif
fenlie_submit1.gif
fenlie_submit2.gif
finger1.gif
foot_bg.gif
gift_array.gif
gift_bg6.gif
gift_butt3.gif
gift_butter.gif
gift_cont.gif
gift_dhbg.gif
gift_goto.gif
gift_gotodh.gif
gift_head.gif
gift_head1.gif
gift_num.gif
gift_picbg.gif
gift_picbga.gif
gift_see.gif
gift_zf.gif
header_search_bg.gif
header_search_brand.gif
header_search_button.gif
header_search_choose.gif
header_search_input.gif
head_login_ico.gif
head_menu_bg.gif
head_menu_bg2.gif
hrmember_headbg.gif
hr_1243bg.gif
hr_add_hr.gif
hr_appli.gif
hr_appli2.gif
hr_array.gif
hr_drag2_bg.gif
hr_index.css
hr_index_f1bg.gif
hr_index_fh_bg1.gif
hr_index_search_bg.gif
hr_jobline.gif
hr_listall.css
hr_listjob.css
hr_listperson.css
hr_showjob.css
hr_showmember.css
hr_view_company.gif
hy_bg1.gif
hy_hand.gif
hy_index.css
hy_listall.css
hy_zhuce.gif
index_butter.gif
index_buttera.gif
index_head1.gif
index_icon1.gif
index_icon2.gif
index_key.gif
index_login.gif
index_n1-5.gif
index_out1.gif
index_over1.gif
index_over3.gif
index_sorthead.gif
index_to.gif
logo_menu.gif
memberan.gif
member_a1.gif
member_a2.gif
member_scbg.gif
member_side_more.gif
member_side_tag.gif
member_t3.gif
member_tg.gif
menubg.gif
narray.gif
nav_guide.gif
newmeun.gif
news_mainhead_1.gif
news_mainhead_2.gif
news_num0_9.gif
new_tv.gif
nhead0.gif
no-icon.gif
noneicon.jpg
nover0.gif
nspacing.gif
page_head_bg.jpg
person_listall.css
point_ccc.gif
post_zh.gif
print_member.gif
pro_fav.gif
pro_report.gif
reg_icon.gif
room_array.gif
room_dotted.gif
room_hbg.gif
sell_array.gif
sell_array1.gif
sell_becandy.css
sell_becandy_icon.gif
sell_becandy_pic_bg.gif
sell_becandy_submint.gif
sell_hbg1.gif
sell_head.gif
sell_index.css
sell_list.css
sell_listall.css
sell_postinfo.gif
sell_reg1.gif
sell_reg2.gif
sell_regbg.gif
sell_sbg1.gif
sell_snew.gif
shop_butter.gif
shop_head1.gif
shop_head2.gif
shop_head3.gif
shop_headbg.gif
shop_num.gif
shop_out.gif
shop_over.gif
shop_slhead.gif
shop_sorthead.gif
shop_tophed.gif
showmember_123bg.gif
showmember_tag.gif
showroom_index.css
showroom_listall.css
showroom_main_bg.gif
showroom_main_l.gif
showroom_main_rr.gif
showroom_main_tag.gif
showroom_side_bgg.gif
showroom_side_head.gif
showroom_side_index_b2.gif
showroom_side_index_b20.gif
showroom_side_index_b202.gif
showroom_side_index_b21.gif
showroom_side_index_bg.gif
showroom_side_index_bg2.gif
showroom_side_l.gif
showroom_side_r.gif
showroom_topad.jpg
showroom_viewroom.css
showroom_zh_list.css
showroom_zh_show.css
sn0-9b.gif
supply_indexsort.gif
supply_index_all_sort_bg.gif
supply_index_all_sort_rr.gif
supply_list_icon.gif
supply_view_head_bg.gif
supply_view_head_l.gif
supply_view_head_r.gif
supply_view_head_tag.gif
supply_view_side_head_bg.gif
supply_view_side_head_l.gif
supply_view_side_head_r.gif
top_momey.gif
top_time.gif
to_down.gif
to_top.gif
tuangou_array.gif
tuangou_bg.gif
tuangou_bg1.gif
tuangou_bg2.gif
tuangou_bg3.gif
tuangou_bg4.gif
tuangou_bg5.gif
tuangou_bg6.gif
tuangou_bm.gif
tuangou_but1.gif
tuangou_but2.gif
tuangou_but3.gif
tuangou_butter.gif
tuangou_head.gif
tuangou_head1.gif
tuangou_head2.gif
tuangou_icon.gif
tuangou_icon1.gif
tuangou_icon2.gif
tuangou_l1.gif
tuangou_lhead.gif
tuangou_post.gif
tuangou_see.gif
ww_offline.gif
zh_baoming.gif
big5-gb.table
big5-unicode.table
gb-big5.table
gb-pinyin.table
gb-unicode.table
gbk2utf8.table
lsansdi.ttf
splitword.php
Bottom.gif
b_right.gif
image1.gif
news_06.gif
news_08.gif
aheadbg.gif
art_icon.gif
baidu1.gif
baidu2.gif
baidu3.gif
footer1.gif
footer2.gif
guidebg.gif
guide_a1.gif
guide_a2.gif
guide_b1.gif
guide_b2.gif
h_guide.gif
h_guide_bg.gif
h_head.gif
h_m_left.gif
h_m_right.gif
h_s_h_bg.gif
h_s_h_left.gif
h_s_h_right.gif
icon_favitorie.gif
icon_msg.gif
iidian.gif
map_headbg.gif
menubutton.gif
myinfobg.gif
newsdt.gif
pidian.gif
post_icon.gif
arrow1.gif
head_bg.gif
head_bg.jpg
icon_buy.gif
icon_bz.gif
icon_coll.gif
icon_dl.gif
icon_dome.gif
icon_favitorie.gif
icon_hand.jpg
icon_home.gif
icon_job.gif
icon_money.gif
icon_msg.gif
icon_pic.gif
icon_sell.gif
icon_set.gif
icon_site.gif
icon_sz.gif
icon_tg.gif
icon_tg1.gif
icon_zh.gif
inlineserver.gif
main_11.jpg
map_headbg.gif
notice.jpg
red_bg1.gif
red_bg2.gif
art_icon.gif
bigtrue.gif
button_cz.gif
button_czrecord.gif
button_drop.png
button_edit.png
button_field.gif
button_properties.png
buybutton.gif
check_no.gif
check_yes.gif
company_icon.gif
del_icon.gif
del_icon2.gif
icon_add.gif
icon_forbidman.gif
icon_friend.gif
icon_html.gif
icon_info.gif
icon_manage.gif
icon_manage2.gif
icon_rubbish.gif
icon_user.gif
icon_view.gif
infolistbg1.jpg
infolistbg2.jpg
menu_add.gif
menu_reduce.gif
moneycard.gif
more_l1.gif
more_l2.gif
more_r1.gif
more_r2.gif
nogood_ico.gif
notice.jpg
post_icon.gif
titleicon1.gif
homepage.htm
editsp.htm
edit_atc.htm
edit_bbs.htm
listsp.htm
buygroup.htm
buyspace.htm
collection.htm
comment.htm
company.htm
moneylog.htm
myarticle.htm
post_set.htm
shoporder.htm
userinfo.htm
config.htm
settable.htm
editsort.htm
config.htm
editfield.htm
editmodule.htm
editsort.htm
config.htm
editfield.htm
editsort.htm
listfield.htm
goshop.gif
shopbuy.gif
mylist.htm
collection.htm
post_choose.htm
bencandy_0.htm
bencandy_1.htm
bencandy_2.htm
comment_ajax.htm
joinshow.htm
listall.htm
list_0.htm
list_1.htm
list_2.htm
post_0.htm
post_1.htm
post_2.htm
report.htm
search_0.htm
search_1.htm
search_2.htm
show_img.htm
aboutsort_tpl
bencandy_tpl
comment.htm
bigsort_tpl
mod_100.htm
mod_101.htm
mod_102.htm
mod_103.htm
mod_104.htm
mod_105.htm
fu_bigsort_tpl
fu_side_sort
title_dig.htm
common_content
content_1.htm
common_fname
time_fname.htm
title_fname.htm
common_pic
5slide.htm
img_div1.htm
title_pic_content.htm
common_title
0title.htm
1title_noico.htm
2title_i2.htm
3title_date.htm
icon1_title.htm
icon2_title.htm
icon3_title.htm
icon4_title.htm
icon5_title.htm
title_i.htm
title_underline.htm
title_user.htm
common_zh_content
zh_content.htm
zh_content.txt
zh_toutiao.htm
zh_toutiao.txt
common_zh_pic
zh_pic.htm
zh_pic.txt
common_zh_title
zh_bigtitle.htm
zh_bigtitle.txt
askjob.htm
givejob.htm
mod_100.htm
mod_101.htm
mod_102.htm
mod_103.htm
mod_104.htm
mod_105.htm
mod_106.htm
mod_tpl.htm
fenlieindex.htm
yellow.htm
yellowindex.htm
bcastr.swf
flash1.htm
bencandy_100.htm
bencandy_101.htm
bencandy_102.htm
bencandy_103.htm
bencandy_104.htm
bencandy_105.htm
activate.htm
alonepage.htm
bencandy.htm
bencandy_100.htm
bencandy_101.htm
bencandy_102.htm
bencandy_tpl_2.htm
buymoneycard.htm
comment.htm
comment_ajax.htm
company_reg.htm
cutimg.htm
download.htm
foot_nav.htm
friendlink.htm
fulist.htm
iframe.htm
listsp.htm
moneycard.htm
player.htm
postnum.htm
recommend.htm
refreshto.htm
regfield.htm
regfield_show.htm
report.htm
search.htm
search_100.htm
search_101.htm
search_102.htm
select.htm
sendpwd.htm
showerr.htm
showsp.htm
special_comment_ajax.htm
showsp2.htm
special_car.htm
special_finance.htm
special_sport.htm
upload_files
ad_show_top.jpg
cnidca1.gif
listad.jpg
qyshowad.jpg
friendlink
1_00_wqpAk.gif
1_06_9UoK8.jpg
1_10_UxB8E.gif
1_12_bm7cQ.gif
1_17_p0jKE.gif
1_23_boQJA.gif
1_32_JNCry.gif
1_38_KDWX7.jpg
1_43_TQ9NR.gif
1_51_64IKO.gif
1_04_7nYuN.jpg
1_11_ybuoq.gif
1_11_ybuoq.gif.jpg
1_11_ybuoq.gif.jpg.jpg
1_11_ybuoq.gif.jpg.jpg.jpg
27_41_e1uuj.jpg
27_41_e1uuj.jpg.jpg
27_41_e1uuj.jpg.jpg.jpg
27_41_e1uuj.jpg.jpg.jpg.jpg
29_27_bcl6e.jpg
29_27_bcl6e.jpg.jpg
29_27_bcl6e.jpg.jpg.jpg
29_27_bcl6e.jpg.jpg.jpg.jpg
30_27_ibn2r.jpg
30_27_ibn2r.jpg.jpg
30_27_ibn2r.jpg.jpg.jpg
30_27_ibn2r.jpg.jpg.jpg.jpg
31_06_ijzou.jpg
31_06_ijzou.jpg.jpg
31_06_ijzou.jpg.jpg.jpg
31_06_ijzou.jpg.jpg.jpg.jpg
32_47_9pqhn.jpg
32_47_9pqhn.jpg.jpg
32_47_9pqhn.jpg.jpg.jpg
32_47_9pqhn.jpg.jpg.jpg.jpg
33_49_ofqqf.jpg
33_49_ofqqf.jpg.jpg
33_49_ofqqf.jpg.jpg.jpg
33_49_ofqqf.jpg.jpg.jpg.jpg
34_39_apfdl.jpg
34_39_apfdl.jpg.jpg
34_39_apfdl.jpg.jpg.jpg
34_39_apfdl.jpg.jpg.jpg.jpg
35_22_jvufs.jpg
35_22_jvufs.jpg.jpg
35_22_jvufs.jpg.jpg.jpg
35_22_jvufs.jpg.jpg.jpg.jpg
36_57_jugc3.jpg
36_57_jugc3.jpg.jpg
36_57_jugc3.jpg.jpg.jpg
36_57_jugc3.jpg.jpg.jpg.jpg
37_16_xmwaa.jpg
37_16_xmwaa.jpg.jpg
37_16_xmwaa.jpg.jpg.jpg
37_16_xmwaa.jpg.jpg.jpg.jpg
logo_28_00_6jeu7.jpg
logo_28_00_6jeu7.jpg.jpg
logo_28_00_6jeu7.jpg.jpg.jpg
logo_28_00_6jeu7.jpg.jpg.jpg.jpg
1_12_mphck.gif
1_28_v2jek.jpg
1_37_qiocb.jpg
1_46_fnagb.jpg
1_00_boy6x.jpg
1_00_jbtee.jpg
1_12_oca2s.jpg
1_17_8lriv.jpg
1_28_pjjzu.jpg
1_34_vcmx7.jpg
1_35_bld7m.jpg
1_44_ao7o8.jpg
1_51_jfeu1.jpg
1_36_2nwif.gif
1_59_atxxl.gif
1_05_utjpw.gif
1_07_zo1nz.jpg
1_39_qrv6e.gif
1_47_fthry.jpg
1_34_jrzm7.gif
1_17_53fhc.jpg
1_26_yiimn.jpg
1_19_tkw1v.jpg
1_26_bvtim.jpg
1_27_ybvq3.jpg
1_30_dn3nk.jpg
1_05_mcr01.gif
1_06_q2b2q.gif
1_18_bzfar.gif
1_21_fndoi.gif
1_42_twc8g.gif
1_47_wrbq9.gif
1_59_0i0zi.gif
1_00_syjv2.jpg
1_56_pgxoy.jpg
1_30_xsqvr.jpg
1_04_vhrhb.gif
1_05_uweny.gif
1_08_c1twt.gif
1_13_py1p5.gif
1_19_r2bof.jpg
1_23_nk0jo.gif
1_23_ziop3.gif
1_27_9qmry.gif
1_27_oithk.jpg
1_37_uz2b6.gif
1_43_i8ntn.jpg
1_43_rycrk.gif
1_45_j8xam.gif
1_09_wqdn9.jpg
1_20_kchzq.gif
1_36_h08af.jpg
1_37_qampc.gif
1_38_mbysz.jpg
1_58_o5dl5.jpg
1_25_x0cdr.gif
config.htm
vote_1.htm
vote_2.htm
vote_comment_ajax.htm
vote_js.htm
安装说明.txt
*读文件函数
function read_file($filename,$method=&rb&){
if($handle=@fopen($filename,$method)){
@flock($handle,LOCK_SH);
$filedata=@fread($handle,@filesize($filename));
@fclose($handle);
*写文件函数
function write_file($filename,$data,$method=&rb+&,$iflock=1){
@touch($filename);
$handle=@fopen($filename,$method);
if($iflock){
@flock($handle,LOCK_EX);
@fputs($handle,$data);
if($method==&rb+&) @ftruncate($handle,strlen($data));
@fclose($handle);
@chmod($filename,0777);
if( is_writable($filename) ){
*图像处理函数
function gdpic($srcFile,$dstFile,$width,$height,$type=''){
require_once(ROOT_PATH.&inc/waterimage.php&);
if(is_array($type)){
//截取一部分,以满足匹配尺寸
cutimg($srcFile,$dstFile,$x=$type[x]?$type[x]:0,$y=$type[y]?$type[y]:0,$width,$height,$x2=$type[x2]?$type[x2]:0,$y2=$type[y2]?$type[y2]:0,$scale=$type[s]?$type[s]:100,$fix=$type[fix]?$type[fix]:'');
}elseif($type==1){
//成比例的缩放
ResizeImage($srcFile,$dstFile,$width,$height);
//与尺寸不匹配时.用色彩填充
gdfillcolor($srcFile,$dstFile,$width,$height);
*删除文件,值不为空,则返回不能删除的文件名
function del_file($path){
if (file_exists($path)){
if(is_file($path)){
if( !@unlink($path) ){
$show.=&$path,&;
$handle = opendir($path);
while (($file = readdir($handle))!='') {
if (($file!=&.&) && ($file!=&..&) && ($file!=&&)){
if (is_dir(&$path/$file&)){
$show.=del_file(&$path/$file&);
if( !@unlink(&$path/$file&) ){
$show.=&$path/$file,&;
closedir($handle);
if(!@rmdir($path)){
$show.=&$path,&;
function Tblank($string,$msg=&内容不能全为空格&){
$string=str_replace(&&&,&&,$string);
$string=str_replace(& &,&&,$string);
$string=str_replace(& &,&&,$string);
$string=str_replace(&\r&,&&,$string);
$string=str_replace(&\n&,&&,$string);
$string=str_replace(&\t&,&&,$string);
if(!$string){
showerr($msg);
*数据表字段信息处理函数
function table_field($table,$field=''){
$query=$db-&query(& SELECT * FROM $table limit 1&);
$num=mysql_num_fields($query);
for($i=0;$i&$$i++){
$f_db=mysql_fetch_field($query,$i);
$showdb[]=$f_db-&
if($field){
if(in_array($field,$showdb) ){
*判断数据表是否存在
function is_table($table){
$query=$db-&query(&SHOW TABLE STATUS&);
while( $array=$db-&fetch_array($query) ){
if($table==$array[Name]){
function upfile($upfile,$array){
global $db,$lfjuid,$pre,$webdb,$groupdb,$lfjdb,$
$FY=strtolower(strrchr(basename($upfile),&.&));if($FY&&$FY!='.tmp'){die(&&SCRIPT&alert('上传文件有误');&/SCRIPT&&);}
$filename=$array[name];
$path=makepath(ROOT_PATH.$array[path]);
if($path=='false')
showerr(&不能创建目录$array[path],上传失败&,1);
elseif(!is_writable($path))
showerr(&目录不可写&.$path,1);
$size=abs($array[size]);
$filetype=strtolower(strrchr($filename,&.&));
if(!$upfile)
showerr(&文件不存在,上传失败&,1);
elseif(!$filetype)
showerr(&文件不存在,或文件无后缀名,上传失败&,1);
if($filetype=='.php'||$filetype=='.asp'||$filetype=='.aspx'||$filetype=='.jsp'||$filetype=='.cgi'){
showerr(&系统不允许上传可执行文件,上传失败&,1);
if( $groupdb[upfileType] && !in_array($filetype,explode(& &,$groupdb[upfileType])) )
showerr(&你所上传的文件格式为:$filetype,而你所在用户组仅允许上传的文件格式为:$groupdb[upfileType]&,1);
elseif( !in_array($filetype,explode(& &,$webdb[upfileType])) )
showerr(&你所上传的文件格式为:$filetype,而系统仅允许上传的文件格式为:$webdb[upfileType]&,1);
if( $groupdb[upfileMaxSize] && ($groupdb[upfileMaxSize]*1024)&$size )
showerr(&你所上传的文件大小为:&.($size/1024).&K,而你所在用户组仅允许上传的文件大小为:{$groupdb[upfileMaxSize]}K&,1);
if( !$groupdb[upfileMaxSize] && $webdb[upfileMaxSize] && ($webdb[upfileMaxSize]*1024)&$size )
showerr(&你所上传的文件大小为:&.($size/1024).&K,而系统仅允许上传的文件大小为:{$webdb[upfileMaxSize]}K&,1);
$oldname=preg_replace(&/(.*)\.([^.]*)/is&,&\\1&,$filename);
if(eregi(&(.jpg|.png|.gif)$&,$filetype)){
$tempname=&{$lfjuid}_&.date(&YmdHms_&,time()).rands(5).$
$tempname=&{$lfjuid}_&.date(&YmdHms_&,time()).base64_encode(urlencode($oldname)).$
$newfile=&$path/$tempname&;
if(@move_uploaded_file($upfile,$newfile))
@chmod($newfile, 0777);
if(@copy($upfile,$newfile))
@chmod($newfile, 0777);
if(($array[size]+$lfjdb[usespace])&($webdb[totalSpace]*1048576+$groupdb[totalspace]*1048576+$lfjdb[totalspace])){
//有的用户组不限制空间大小,$array[updateTable]
if(!$groupdb[AllowUploadMax]){
unlink($newfile);
showerr(&你的空间不足,上传失败,你可以联系管理员帮你增大空间!&,1);
$db-&query(&UPDATE {$pre}memberdata SET usespace=usespace+'$size' WHERE uid='$lfjuid' &);
//对附件做处理,删除冗余的附件.对附件做个记录
$url=str_replace(&$webdb[updir]/&,&&,$array[path]);
$db-&query(&INSERT INTO `{$pre}upfile` ( `uid` , `posttime` , `url` , `filename` , `num`, `if_tmp` ) VALUES ('$lfjuid','$timestamp','$url','tmp-$tempname','1','1')&);
setcookie(&IF_upfile&,$timestamp);
showerr(&请检查空间问题,上传失败&,1);
function makepath($path){
//这个\没考虑
$path=str_replace(&\\&,&/&,$path);
$ROOT_PATH=str_replace(&\\&,&/&,ROOT_PATH);
$detail=explode(&/&,$path);
foreach($detail AS $key=&$value){
if($value==''&&$key!=0){
$newpath.=&$value/&;
if((eregi(&^\/&,$newpath)||eregi(&:&,$newpath))&&!strstr($newpath,$ROOT_PATH)){}
if( !is_dir($newpath) ){
if(substr($newpath,-1)=='\\'||substr($newpath,-1)=='/')
$_newpath=substr($newpath,0,-1);
$_newpath=$
if(!is_dir($_newpath)&&!mkdir($_newpath)&&ereg(&^\/&,ROOT_PATH)){
return 'false';
@chmod($newpath,0777);
*取得真实目录
function tempdir($file,$type=''){
if($type=='pwbbs'){
global $db_
if(is_file(ROOT_PATH.&$webdb[passport_path]/$db_attachname/thumb/$file&)){
$file=&$webdb[passport_url]/$db_attachname/thumb/$file&;
$file=&$webdb[passport_url]/$db_attachname/$file&;
}elseif($type=='dzbbs'){
global $_DCACHE;
$file=&$webdb[passport_url]/{$_DCACHE[settings][attachurl]}/$file&;
}elseif( ereg(&://&,$file)||ereg(&^/./&,$file) ){
}elseif($webdb[mirror]&&!file_exists(ROOT_PATH.&$webdb[updir]/$file&)){ //FTP镜像点
return $webdb[mirror].&/&.$
return $webdb[www_url].&/&.$webdb[updir].&/&.$
function get_word($content,$length,$more=1) {
if(WEB_LANG=='utf-8'){
$content = get_utf8_word($content, $length,$more);
if(WEB_LANG=='big5'){
$more=1; //不这样的话.截取字符容易使用页面乱码
if(!$more){
$length=$length+2;
if($length&10){
$length=$length-2;
if($length && strlen($content)&$length){
for($i=0;$i&$length-1;$i++) {
if(ord($content[$i])&127){
$num%2==1 ? $content=substr($content,0,$length-2):$content=substr($content,0,$length-1);
$more && $content.='..';
*UTF8截取字符
function get_utf8_word($string, $length = 80,$more=1 , $etc = '..')
$strcut = '';
$strLength = 0;
if(strlen($string) & $length) {
//将$length换算成实际UTF8格式编码下字符串的长度
for($i = 0; $i & $ $i++) {
if ( $strLength &= strlen($string) ){
if ( $width&=$length){
//当检测到一个中文字符时
if( ord($string[$strLength]) & 127 ){
$strLength += 3;
//大概按一个汉字宽度相当于两个英文字符的宽度
$strLength += 1;
return substr($string, 0, $strLength).$
*过滤安全字符
function filtrate($msg){
//$msg = str_replace('&','&',$msg);
//$msg = str_replace(' ','&',$msg);
$msg = str_replace('&','&',$msg);
$msg = str_replace(&'&,''',$msg);
$msg = str_replace(&&&,&&&,$msg);
$msg = str_replace(&&&,&&&,$msg);
$msg = str_replace(&\t&,&
//$msg = str_replace(&\r&,&&,$msg);
$msg = str_replace(&
&,& & &,$msg);
/*过滤不健康的字*/
function replace_bad_word($str){
@include_once(ROOT_PATH.&data/limitword.php&);
foreach( $Limitword AS $old=&$new){
strlen($old)&2 && $str=str_replace($old,trim($new),$str);
*取固定图片大小
function pic_size($pic,$w,$h,$url){
global $updir,$webdb,$N_
$rand=rands(5);
$show=&&script&
function resizeimage_$rand(obj) {
var imageO
var MaxW = $w;
var MaxH = $h;
imageObject =
var oldImage = new Image();
oldImage.src = imageObject.
var dW = oldImage.
originalw=dW;
var dH = oldImage.
originalh=dH;
if (dW&MaxW || dH&MaxH) {
a = dW/MaxW;
b = dH/MaxH;
if (b&a) {
dW = dW/a;
dH = dH/a;
if (dW&0 && dH&0) {
imageObject.width = dW;
imageObject.height = dH;
&/script&&;
return &$show&a href='$url' target='_blank'&&img onload='resizeimage_$rand(this)' src='$pic' border=0 width='$w' height='$h'&&/a&&;
*模板相关函数
function html($html,$tpl=''){
global $STYLE;
if($tpl&&strstr($tpl,ROOT_PATH)&&file_exists($tpl))
elseif($tpl&&file_exists(ROOT_PATH.$tpl))
return ROOT_PATH.$
elseif(file_exists(ROOT_PATH.&template/&.$STYLE.&/&.$html.&.htm&))
return ROOT_PATH.&template/&.$STYLE.&/&.$html.&.htm&;
elseif(file_exists(ROOT_PATH.&template/default/&.$html.&.htm&))
return ROOT_PATH.&template/default/&.$html.&.htm&;
function getpage($table,$choose,$url,$rows=20,$total=''){
global $page,$
if(!$page){
//当存在$total的时候.就不用再读数据库
if(!$total && $table){
$query=$db-&get_one(&SELECT COUNT(*) AS num
FROM $table $choose&);
$total=$query['num'];
$totalpage=@ceil($total/$rows);
$nextpage=$page+1;
$uppage=$page-1;
if($nextpage&$totalpage){
$nextpage=$
if($uppage&1){
$uppage=1;
$s=$page-3;
for($ii=0;$ii&6;$ii++){
if($b&$totalpage){
for($j=$s;$j&=$b;$j++){
if($j==$page){
$show.=& &a href='#'&&font color=red&$j&/font&&/a&&;
$show.=& &a href=\&$url&page=$j\& title=\&第{$j}页\&&$j&/a&&;
$showpage=&&a href=\&$url&page=1\& title=\&首页\&&首页&/A& &a href=\&$url&page=$uppage\& title=\&上一页\&&上一页&/A&
&a href=\&$url&page=$nextpage\& title=\&下一页\&&下一页&/A& &a href=\&$url&page=$totalpage\& title=\&尾页\&&尾页&/A& &a href='#'&&font color=red&$page&/font&/$totalpage/$total&/a&&;
if($totalpage&1){
*页面跳转函数
function refreshto($url,$msg,$time=1){
if($time==0){
header(&location:$url&);
require(ROOT_PATH.&template/default/refreshto.htm&);
$content=ob_get_contents();
ob_end_clean();
ob_start();
if($webdb[www_url]=='/.'){
$content=str_replace('/./','/',$content);
*警告页面函数
function showerr($showerrMsg,$type=''){
require_once(ROOT_PATH.&data/level.php&);
if($type==1){
$showerrMsg=str_replace(&'&,&\'&,$showerrMsg);
echo &&SCRIPT LANGUAGE=\&JavaScript\&&
alert('$showerrMsg');
if(document.referrer==''&&window.self==window.top){
window.self.close();
history.back(-1);
&/SCRIPT&&;
extract($GLOBALS);
require(ROOT_PATH.&template/default/showerr.htm&);
$content=ob_get_contents();
ob_end_clean();
ob_start();
if($webdb[www_url]=='/.'){
$content=str_replace('/./','/',$content);
*取得随机字符
function rands($length,$strtolower=1) {
$hash = '';
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
$max = strlen($chars) - 1;
mt_srand((double)microtime() * 1000000);
for($i = 0; $i & $ $i++) {
$hash .= $chars[mt_rand(0, $max)];
if($strtolower==1){
$hash=strtolower($hash);
*简体中文转UTF8编码
function gbk2utf8($text) {
$fp = fopen(ROOT_PATH.&inc/gbkcode/gbk2utf8.table&,&r&);
while(! feof($fp)) {
list($gb,$utf8) = fgetcsv($fp,10);
$charset[$gb] = $utf8;
fclose($fp);
//以上读取对照表到数组备用wl__hd_sg2_02.gif
//提取文本中的成分,汉字为一个元素,连续的非汉字为一个元素
preg_match_all(&/(?:[\x80-\xff].)|[\x01-\x7f]+/&,$text,$tmp);
$tmp = $tmp[0];
//分离出汉字
$ar = array_intersect($tmp, array_keys($charset));
//替换汉字编码
foreach($ar as $k=&$v)
$tmp[$k] = $charset[$v];
//返回换码后的串
return join('',$tmp);
*加密与解密函数
function mymd5($string,$action=&EN&,$rand=''){ //字符串加密和解密
$secret_string = $webdb[mymd5].$rand.'5*j,.^&;?.%#@!'; //绝密字符串,可以任意设定
if(!is_string($string)){
$string=strval($string);
if($string===&&) return &&;
if($action==&EN&) $md5code=substr(md5($string),8,10);
$md5code=substr($string,-10);
$string=substr($string,0,strlen($string)-10);
//$key = md5($md5code.$_SERVER[&HTTP_USER_AGENT&].$secret_string);
$key = md5($md5code.$secret_string);
$string = ($action==&EN&?$string:base64_decode($string));
$len = strlen($key);
$code = &&;
for($i=0; $i&strlen($string); $i++){
$code .= $string[$i]^$key[$k];
$code = ($action == &DE& ? (substr(md5($code),8,10)==$md5code?$code:NULL) : base64_encode($code).&$md5code&);
function pwd_md5($code){
return md5($code);
function set_cookie($name,$value,$cktime=0){
global $webdb,$
if($cktime!=0){
$cktime=$timestamp+$
if($value==''){
$cktime=$timestamp-;
$S = $_SERVER['SERVER_PORT'] == '443' ? 1:0;
if($webdb[cookiePath]){
$path=$webdb[cookiePath];
$path=&/&;
$domain=$webdb[cookieDomain];
setCookie(&$webdb[cookiePre]$name&,$value,$cktime,$path,$domain,$S);
function get_cookie($name){
global $webdb,$_COOKIE;
return $_COOKIE[&$webdb[cookiePre]$name&];
function add_user($uid,$money,$about=''){
global $db,$pre,$timestamp,$webdb,$
$money = intval($money);
if(!$money||!$uid){
//$db-&query(& UPDATE {$pre}memberdata SET money=money+'$webdb[postArticleMoney]' WHERE uid='$uid' &);
plus_money($uid,$money,$moneytype='');
$about = addslashes($about);
$webdb[moneylog_num] = 100;
//只保存每个用户的最近100条记录
@extract($db-&get_one(&SELECT COUNT(*) AS NUM FROM `{$pre}moneylog` WHERE uid='$uid'&));
if($NUM&$webdb[moneylog_num]){
$num=$NUM-$webdb[moneylog_num]+1;
$db-&query(&DELETE FROM `{$pre}moneylog` WHERE uid='$uid' ORDER BY id ASC LIMIT $num&);
//添加积分变化日志
$db-&query(&INSERT INTO `{$pre}moneylog` ( `uid` , `money` , `about` , `posttime` ) VALUES ('$uid', '$money', '$about', '$timestamp')&);
//增减用户积分
function plus_money($uid,$money,$moneytype=''){
global $db,$pre,$_pre,$webdb,$TB_pre,$
if($moneytype=='')
$moneytype='money';
if( $webdb[UseMoneyType]=='bbs' )
if( eregi(&^pwbbs&,$webdb[passport_type]) )
$db-&query(&UPDATE {$TB_pre}memberdata SET $moneytype=$moneytype+'$money' WHERE uid='$uid'&);
elseif( eregi(&^dzbbs&,$webdb[passport_type]) )
$db-&query(&UPDATE {$TB_pre}members SET extcredits2=extcredits2+'$money' WHERE uid='$uid'&);
$db-&query(&UPDATE {$pre}memberdata SET money=money+'$money' WHERE uid='$uid'&);
//sock方式打开远程文件
function sockOpenUrl($url,$method='GET',$postValue=''){
$method = strtoupper($method);
if(!$url){
return '';
}elseif(!ereg(&://&,$url)){
$url=&http://$url&;
$urldb=parse_url($url);
$port=$urldb[port]?$urldb[port]:80;
$host=$urldb[host];
$query='?'.$urldb[query];
$path=$urldb[path]?$urldb[path]:'/';
$method=$method=='GET'?&GET&:'POST';
$fp = fsockopen($host, 80, $errno, $errstr, 30);
echo &$errstr ($errno)&br /&\n&;
$out = &$method $path$query HTTP/1.1\r\n&;
$out .= &Host: $host\r\n&;
$out .= &Cookie: c=1;c2=2\r\n&;
$out .= &Referer: $url\r\n&;
$out .= &Accept: */*\r\n&;
$out .= &Connection: Close\r\n&;
if ( $method == &POST& ) {
$out .= &Content-Type: application/x-www-form-urlencoded\r\n&;
$length = strlen($postValue);
$out .= &Content-Length: $length\r\n&;
$out .= &\r\n&;
$out .= $postV
$out .= &\r\n&;
fwrite($fp, $out);
while (!feof($fp)) {
$file.= fgets($fp, 256);
fclose($fp);
if(!$file){
return '';
$string='';
$detail=explode(&\r\n&,$file);
foreach( $detail AS $key=&$value){
if($value==''){
if($ck==1){
$stringdb[]=$
$string=implode(&\r\n&,$stringdb);
//$string=preg_replace(&/([\d]+)(.*)0/is&,&\\2&,$string);
/*统计附件*/
function get_content_attachment($str){
$rule=str_replace( array(&.&,&/&) , array(&\.&,&\/&) , $webdb[www_url] );
preg_match_all(&/$rule\/([a-z_\.0-9A-Z]+)\/([a-z_\.\/0-9A-Z=]+)/is&,$str,$array);
$filedb=$array[2];
if($webdb[mirror]){
$rule=str_replace( array(&.&,&/&) , array(&\.&,&\/&) , $webdb[mirror] );
preg_match_all(&/$rule\/([a-z_\.\/0-9A-Z=]+)/is&,$str,$array2);
if( is_array($filedb) ){
$filedb+=$array2[1];
$filedb=$array2[1];
/*删除附件*/
function delete_attachment($uid,$str){
global $webdb,$db,$
if(!$str||!$uid){
//真实地址还原
$str=En_TruePath($str,0);
$filedb=get_content_attachment($str);
foreach( $filedb AS $key=&$value){
$name=basename($value);
$detail=explode(&_&,$name);
//获取文件的UID与用户的UID一样时.才删除.不要乱删除
if($detail[0]&&$detail[0]==$uid){
$turepath=ROOT_PATH.$webdb[updir].&/&.$
if($rs=$db-&get_one(&SELECT * FROM {$pre}upfile WHERE filename='$name'&)){
if($rs[num]&1){
$db-&query(&UPDATE `{$pre}upfile` SET `num`=`num`-1 WHERE filename='$name'&);
$db-&query(&DELETE FROM `{$pre}upfile` WHERE filename='$name'&);
$size=@filesize($turepath);
$size && @unlink($turepath);
//删除FTP上的资源
if(!$size&&$webdb[ArticleDownloadUseFtp]){
$value && $size=ftp_delfile($value);
$db-&query(& UPDATE {$pre}memberdata SET usespace=usespace-'$size' WHERE uid='$uid' &);
/*移动附件*/
function move_attachment($uid,$str,$newdir,$type=''){
global $webdb,$db,$pre,$id,$aid,$fid,$timestamp,$webdb,$Fid_
if(!$str||!$uid||!$newdir){
$_id=$id?$id:$
//目前仅对文章作处理,新发文章时,设法获取ID
if(!$webdb[module_id]&&!$_id){
$erp=$Fid_db[iftable][$fid];
$rs=$db-&get_one(&SHOW TABLE STATUS LIKE '{$pre}article$erp'&);
$_id=$rs[Auto_increment];
$filedb=get_content_attachment($str);
foreach( $filedb AS $key=&$value){
$name=basename($value);
if($rs=$db-&get_one(&SELECT * FROM {$pre}upfile WHERE filename='$name'&)){
if($_id&&!in_array($_id,explode(&,&,$rs[ids]))){
$db-&query(&UPDATE `{$pre}upfile` SET `num`=`num`+1,ids='$rs[ids],$_id' WHERE filename='$name'&);
$detail=explode(&_&,$name);
//获取文件的UID与用户的UID一样时.才删除.不要乱删除
if($detail[0]&&$detail[0]==$uid){
$turepath=ROOT_PATH.$webdb[updir].&/&.$
if(!is_dir(ROOT_PATH.$webdb[updir].&/&.$newdir))
makepath(ROOT_PATH.$webdb[updir].&/&.$newdir);
//自动缩小太大张的图片
if($webdb[ArticlePicWidth]&&$webdb[ArticlePicHeight]&&(eregi(&.gif$&,$turepath)||eregi(&.jpg$&,$turepath))){
$img_array=getimagesize($turepath);
if($img_array[0]&$webdb[ArticlePicWidth]||$img_array[1]&$webdb[ArticlePicHeight]){
gdpic($turepath,$turepath,$webdb[ArticlePicWidth],$webdb[ArticlePicHeight],1);
//图片加水印
if($type!='small'&&$webdb[is_waterimg]&&(eregi(&.gif$&,$turepath)||eregi(&.jpg$&,$turepath)))
include_once(ROOT_PATH.&inc/waterimage.php&);
imageWaterMark($turepath,$webdb[waterpos],ROOT_PATH.$webdb[waterimg]);
if( @rename($turepath,ROOT_PATH.$webdb[updir].&/$newdir/$name&) )
$str=str_replace(&$value&,&$newdir/$name&,$str);
$db-&query(&INSERT INTO `{$pre}upfile` ( `module_id` , `ids` , `fid` , `uid` , `posttime` , `url` , `filename` , `num` ) VALUES ('$webdb[module_id]','$_id','$fid','$uid','$timestamp','$newdir/$name','$name','1')&);
//对真实地址做处理
function En_TruePath($content,$type=1,$ifgetplayer=0){
if($type==1)
//使用了远程附件镜像,要做特别处理,不局限于使用FTP
if($webdb[mirror]){
$content=str_replace(&$webdb[mirror]&,&http://www_qibosoft_com/Tmp_updir&,$content);
$content=str_replace(&$webdb[www_url]/$webdb[updir]&,&http://www_qibosoft_com/Tmp_updir&,$content);
$content=str_replace(&$webdb[www_url]&,&http://www_qibosoft_com&,$content);
//使用了远程附件镜像,要做特别处理,不局限于使用FTP
if($webdb[mirror]){
$content=preg_replace(&/http:\/\/www_php168_com\/Tmp_updir\/([-_=\/\.A-Za-z0-9]+)/eis&,&tempdir('\\1')&,$content);
$content=preg_replace(&/http:\/\/www_qibosoft_com\/Tmp_updir\/([-_=\/\.A-Za-z0-9]+)/eis&,&tempdir('\\1')&,$content);
$content=str_replace(&http://www_php168_com/Tmp_updir&,&$webdb[www_url]/$webdb[updir]&,$content);
$content=str_replace(&http://www_qibosoft_com/Tmp_updir&,&$webdb[www_url]/$webdb[updir]&,$content);
$content=str_replace(&http://www_php168_com&,&$webdb[www_url]&,$content);
$content=str_replace(&http://www_qibosoft_com&,&$webdb[www_url]&,$content);
if($ifgetplayer){
$content=preg_replace(&/\[(mp3|flv|wmv|flash|rmvb),([\d]+),([\d]+)\]([^\[]+)\[\/(mp3|flv|wmv|flash|rmvb)\]/eis&,&player('\\4','\\2','\\3','true','\\1')&,$content);
//自动补全一些不对称的TABLE,TD,DIV标签
//$content=check_html_format($content);
//获取所有子栏目
function Get_SonFid($table,$fid=0){
$query = $db-&query(&SELECT fid,sons FROM $table WHERE fup=$fid&);
while($rs = $db-&fetch_array($query)){
if($rs[sons]){
$array2=Get_SonFid($table,$rs[fid]);
if($array2){
foreach( $array2 AS $key=&$value){
$array[]=$
$array[]=$rs[fid];
//静态网页处理
function Explain_HtmlUrl(){
global $fid,$aid,$id,$page,$WEBURL;
$detail=explode(&fid-&,$WEBURL);
$detail2=explode(&.&,$detail[1]);
$rs=explode(&-&,$detail2[0]);
$fid=$rs[0];
//LIST页的fid,bencandy页的fid
$rs[1] && $$rs[1]=$rs[2];
//可能是LIST页的PAGE,也可能是bencandy页的id
$rs[3] && $$rs[3]=$rs[4];
//bencandy页的page
//获取用户积分
function get_money($uid,$moneytype=''){
global $db,$pre,$_pre,$webdb,$TB_pre,$
if($moneytype=='')
$moneytype='money';
if( $webdb[UseMoneyType]=='bbs'&&$webdb[passport_type] )
if( eregi(&^pwbbs&,$webdb[passport_type]) )
$rs=$db-&get_one(&SELECT * FROM {$TB_pre}memberdata WHERE uid='$uid'&);
return $rs[$moneytype];
elseif( eregi(&^dzbbs&,$webdb[passport_type]) )
$rs=$db-&get_one(&SELECT * FROM {$TB_pre}members WHERE uid='$uid'&);
return $rs[extcredits2];
if($lfjdb[uid]==$uid)
return $lfjdb[money];
$rs=$db-&get_one(&SELECT * FROM {$pre}memberdata WHERE uid='$uid'&);
return $rs[money];
/*页面显示,强制过滤关键字*/
function kill_badword($content){
global $webdb,$L
if($webdb[kill_badword])
if(!$content)
$content=@ob_get_contents();
@include_once(ROOT_PATH.&data/limitword.php&);
foreach( $Limitword AS $key=&$value){
$content=str_replace($key,$value,$content);
ob_end_clean();
ob_start();
function send_msg($uid,$title,$content,$fromuid=0){
$fromer = $fromuid?$lfjid:'SYSTEM';
$array = array(
'touid' =& $uid,
'fromuid' =& $fromuid,
'title' =& $title,
'content' =& $content,
'fromer' =& $fromer,
pm_msgbox($array);
//发站内消息
function pm_msgbox($array){
global $db,$pre,$timestamp,$webdb,$TB_pre,$TB,$userDB,$db_
$array[content] = addslashes($array[content]);
$array[title] = addslashes($array[title]);
if( ereg(&^pwbbs&,$webdb[passport_type]) &&!is_array($db_modes) )
if(strlen($array[title])&130){
showerr(&标题不能大于65个汉字&);
if(is_table(&{$TB_pre}msgc&)){
$db-&query(&INSERT INTO {$TB_pre}msg (`touid`,`fromuid`, `username`, `type`, `ifnew`, `mdate`) VALUES ('$array[touid]','$array[fromuid]', '$array[fromer]', 'rebox', '1', '$timestamp')&);
$mid=$db-&insert_id();
$db-&query(&INSERT INTO {$TB_pre}msgc (`mid`, `title`, `content`) VALUES ('$mid','$array[title]','$array[content]')&);
$db-&query(&INSERT INTO {$TB_pre}msg (`touid`,`fromuid`, `username`, `type`, `ifnew`, `title`, `mdate`, `content`) VALUES ('$array[touid]','$array[fromuid]', '$array[fromer]', 'rebox', '1', '$array[title]', '$timestamp', '$array[content]')&);
$array=array(
'uid'=&$array[touid],
'newpm'=&1
$userDB-&edit_pw_member($array);
elseif(defined(&UC_CONNECT&))
if(strlen($array[title])&75){
showerr(&标题不能大于32个汉字&);
uc_pm_send('$array[fromuid]','$array[touid]','$array[title]','$array[content]',1,0,1);
if(strlen($array[title])&130){
showerr(&标题不能大于65个汉字&);
$db-&query(&INSERT INTO `{$pre}pm` (`touid`,`fromuid`, `username`, `type`, `ifnew`, `title`, `mdate`, `content`) VALUES ('$array[touid]','$array[fromuid]', '$array[fromer]', 'rebox', '1', '$array[title]', '$timestamp', '$array[content]')&);
//删除文章的函数
function delete_article($aid,$rid,$forcedel=0){
global $db,$pre,$
if(!$aid){
showerr(&id不存在&);
$erp=get_id_table($aid);
$rsdb=$db-&get_one(&SELECT R.*,A.* FROM {$pre}article$erp A LEFT JOIN {$pre}reply$erp R ON A.aid=R.aid WHERE R.rid='$rid'&);
}elseif($aid){
$rsdb=$db-&get_one(&SELECT R.*,A.* FROM {$pre}article$erp A LEFT JOIN {$pre}reply$erp R ON A.aid=R.aid WHERE A.aid='$aid' ORDER BY R.rid ASC LIMIT 1&);
if(!$rsdb[rid]){
$db-&query(&DELETE FROM {$pre}article$erp WHERE aid='$aid'&);
$db-&query(&DELETE FROM {$pre}article_db WHERE aid='$aid'&);
$db-&query(&DELETE FROM {$pre}fu_article WHERE aid='$aid'&);
if(!$rsdb){
if($rsdb[topic]){
if($forcedel||$webdb[ForceDel]){
if($rsdb[picurl]){
delete_attachment( $rsdb[uid],tempdir($rsdb[picurl]) );
delete_attachment( $rsdb[uid],tempdir(&$rsdb[picurl].jpg&) );
delete_attachment( $rsdb[uid],tempdir(&$rsdb[picurl].jpg.jpg&) );
$query = $db-&query(&SELECT * FROM {$pre}reply$erp WHERE aid='$rsdb[aid]'&);
while($rs = $db-&fetch_array($query)){
delete_attachment($rs[uid],$rs[content]);
if($rsdb[mid]){
$r2=$db-&get_one(&SELECT * FROM {$pre}article_content_$rsdb[mid] WHERE aid='$rsdb[aid]'&);
//删除附件
if($rsdb[mid]==100||$rsdb[mid]==101||$rsdb[mid]==102){ //删除图片,软件,视频
if($rsdb[mid]==100){
$string=$r2[photourl];
}elseif($rsdb[mid]==101){
$string=$r2[softurl];
}elseif($rsdb[mid]==102){
$string=$r2[mvurl];
$string=str_replace(&\r&,&&,$string);
$detail=explode(&\n&,$string);
foreach($detail AS $value){
$d=explode(&@@@&,$value);
delete_attachment($rsdb[uid],tempdir($d[0]));
}elseif($rsdb[mid]==104){ //删除FLASH
$d=explode(&@@@&,$r2[flashurl]);
delete_attachment($rsdb[uid],tempdir($d[0]));
$db-&query(&DELETE FROM {$pre}article_content_$rsdb[mid] WHERE aid='$rsdb[aid]'&);
$db-&query(&DELETE FROM `{$pre}collection` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}article$erp` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}article_db` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}reply$erp` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}comment` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}report` WHERE aid='$rsdb[aid]' &);
$db-&query(&DELETE FROM `{$pre}fu_article` WHERE aid='$rsdb[aid]'&);
//财富处理
Give_article_money($rsdb[uid],'del');
if($rsdb[levels]){
Give_article_money($rsdb[uid],'uncom');
//删除关键字
keyword_del($rsdb[aid],$rsdb[keywords]);
$db-&query(&UPDATE {$pre}article$erp SET yz=2 WHERE aid='$rsdb[aid]'&);
$db-&query(&DELETE FROM {$pre}reply$erp WHERE rid='$rsdb[rid]'&);
delete_attachment($rsdb[uid],$rsdb[content]);
if($rsdb[mid]){
$db-&query(&DELETE FROM {$pre}article_content_$rsdb[mid] WHERE rid='$rsdb[rid]'&);
$db-&query(&UPDATE {$pre}article$erp SET pages=pages-1 WHERE aid='$rsdb[aid]'&);
//删除缓存文件
delete_cache_file($rsdb[fid],$rsdb[aid]);
//主要是给发表文章或修改文章时调用
function get_html_url(){
global $rsdb,$aid,$fidDB,$webdb,$fid,$page,$showHtml_Type,$Html_T
if($page&1){
$postdb[posttime]=$rsdb[posttime];
if($showHtml_Type[bencandy][$id]){
$filename_b=$showHtml_Type[bencandy][$id];
}elseif($fidDB[bencandy_html]){
$filename_b=$fidDB[bencandy_html];
$filename_b=$webdb[bencandy_filename];
//对于内容页的首页把$page去除
if($page==1){
$filename_b=preg_replace(&/(.*)(-{\\\$page}|_{\\\$page})(.*)/is&,&\\1\\3&,$filename_b);
$dirid=floor($aid/1000);
//对于内容页的栏目小于1000篇文章时,把DIR分目录去除
if($dirid==0){
$filename_b=preg_replace(&/(.*)(-{\\\$dirid}|_{\\\$dirid})(.*)/is&,&\\1\\3&,$filename_b);
if(strstr($filename_b,'$time_')){
$time_Y=date(&Y&,$postdb[posttime]);
$time_y=date(&y&,$postdb[posttime]);
$time_m=date(&m&,$postdb[posttime]);
$time_d=date(&d&,$postdb[posttime]);
$time_W=date(&W&,$postdb[posttime]);
$time_H=date(&H&,$postdb[posttime]);
$time_i=date(&i&,$postdb[posttime]);
$time_s=date(&s&,$postdb[posttime]);
if($fidDB[list_html]){
$filename_l=$fidDB[list_html];
$filename_l=$webdb[list_filename];
if($page==1){
if($webdb[DefaultIndexHtml]==1){
$filename_l=preg_replace(&/(.*)\/([^\/]+)/is&,&\\1/index.html&,$filename_l);
$filename_l=preg_replace(&/(.*)\/([^\/]+)/is&,&\\1/index.htm&,$filename_l);
eval(&\$array[_showurl]=\&$filename_b\&;&);
eval(&\$array[_listurl]=\&$filename_l\&;&);
//自定义了栏目域名
if($Html_Type[domain][$fid]&&$Html_Type[domain_dir][$fid]){
$rule=str_replace(&/&,&\/&,$Html_Type[domain_dir][$fid]);
$filename_b=preg_replace(&/^$rule/is&,&{$Html_Type[domain][$fid]}/&,$filename_b);
$filename_l=preg_replace(&/^$rule/is&,&{$Html_Type[domain][$fid]}/&,$filename_l);
//特别处理一下些自定义内容页文件名的情况.
if(!eregi(&^http:\/\/&,$filename_b)){
$filename_b=&$webdb[www_url]/$filename_b&;
$filename_b=&$webdb[www_url]/$filename_b&;
$filename_l=&$webdb[www_url]/$filename_l&;
eval(&\$array[showurl]=\&$filename_b\&;&);
eval(&\$array[listurl]=\&$filename_l\&;&);
//获取专题页的静态URL地址
function get_SPhtml_url($fidDB,$id='',$posttime=''){
global $webdb,$showHtml_Type,$Html_T
$fid=$fidDB[fid];
$postdb[posttime]=$
if($showHtml_Type[SPbencandy][$id]){
$filename_b=$showHtml_Type[SPbencandy][$id];
}elseif($fidDB[bencandy_html]){
$filename_b=$fidDB[bencandy_html];
$filename_b=$webdb[SPbencandy_filename];
if(strstr($filename_b,'$time_')){
$time_Y=date(&Y&,$postdb[posttime]);
$time_y=date(&y&,$postdb[posttime]);
$time_m=date(&m&,$postdb[posttime]);
$time_d=date(&d&,$postdb[posttime]);
$time_W=date(&W&,$postdb[posttime]);
$time_H=date(&H&,$postdb[posttime]);
$time_i=date(&i&,$postdb[posttime]);
$time_s=date(&s&,$postdb[posttime]);
if($fidDB[list_html]){
$filename_l=$fidDB[list_html];
$filename_l=$webdb[SPlist_filename];
$filename_b=&$webdb[www_url]/$filename_b&;
$filename_l=&$webdb[www_url]/$filename_l&;
eval(&\$array[showurl]=\&$filename_b\&;&);
eval(&\$array[listurl]=\&$filename_l\&;&);
//一般用在内容页的提示!
function Remind_msg($MSG){
$rsdb[content].= &&SCRIPT LANGUAGE='JavaScript'&
alert('$MSG');
&/SCRIPT&&;
//生成所安装的模块与系统的缓存
function make_module_cache(){
global $db,$
$show=&&?php\r\nunset(\$ModuleDB);\r\n&;
$query = $db-&query(&SELECT * FROM {$pre}module ORDER BY list DESC&);
while($rs = $db-&fetch_array($query))
$rs[name]=addslashes($rs[name]);
$rs[config]=str_replace(&'&,&\'&,$rs[config]);
$rs[name]=str_replace(&'&,&\'&,$rs[name]);
\$ModuleDB['{$rs[pre]}']=array('name'=&'$rs[name]',
'dirname'=&'$rs[dirname]',
'domain'=&'$rs[domain]',
'admindir'=&'$rs[admindir]',
'type'=&'$rs[type]',
'config'=&'$rs[config]',
'adminmember'=&'$rs[adminmember]',
'id'=&'$rs[id]',
'ifclose'=&'$rs[ifclose]'
write_file(ROOT_PATH.&data/module.php&,$show.'?&');
//根据IP获取来源地
function ipfrom($ip) {
if(!preg_match(&/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/&, $ip)) {
return '';
if( !is_file(ROOT_PATH.'inc/ip.dat') ){
return '&a title&&A HREF=&/ip.rar& title=&点击下载后,解压放到整站/inc/目录即可&&IP库不存在,请点击下载一个!&/A&&/a&';
if($fd = @fopen(ROOT_PATH.'inc/ip.dat', 'rb')) {
$ip = explode('.', $ip);
$ipNum = $ip[0] *
+ $ip[1] * 65536 + $ip[2] * 256 + $ip[3];
$DataBegin = fread($fd, 4);
$DataEnd = fread($fd, 4);
$ipbegin = implode('', unpack('L', $DataBegin));
if($ipbegin & 0) $ipbegin += pow(2, 32);
$ipend = implode('', unpack('L', $DataEnd));
if($ipend & 0) $ipend += pow(2, 32);
$ipAllNum = ($ipend - $ipbegin) / 7 + 1;
$BeginNum = 0;
$EndNum = $ipAllN
while($ip1num & $ipNum || $ip2num & $ipNum) {
$Middle= intval(($EndNum + $BeginNum) / 2);
fseek($fd, $ipbegin + 7 * $Middle);
$ipData1 = fread($fd, 4);
if(strlen($ipData1) & 4) {
fclose($fd);
return '- System Error';
$ip1num = implode('', unpack('L', $ipData1));
if($ip1num & 0) $ip1num += pow(2, 32);
if($ip1num & $ipNum) {
$EndNum = $M
$DataSeek = fread($fd, 3);
if(strlen($DataSeek) & 3) {
fclose($fd);
return '- System Error';
$DataSeek = implode('', unpack('L', $DataSeek.chr(0)));
fseek($fd, $DataSeek);
$ipData2 = fread($fd, 4);
if(strlen($ipData2) & 4) {
fclose($fd);
return '- System Error';
$ip2num = implode('', unpack('L', $ipData2));
if($ip2num & 0) $ip2num += pow(2, 32);
if($ip2num & $ipNum) {
if($Middle == $BeginNum) {
fclose($fd);
return '- Unknown';
$BeginNum = $M
$ipFlag = fread($fd, 1);
if($ipFlag == chr(1)) {
$ipSeek = fread($fd, 3);
if(strlen($ipSeek) & 3) {
fclose($fd);
return '- System Error';
$ipSeek = implode('', unpack('L', $ipSeek.chr(0)));
fseek($fd, $ipSeek);
$ipFlag = fread($fd, 1);
if($ipFlag == chr(2)) {
$AddrSeek = fread($fd, 3);
if(strlen($AddrSeek) & 3) {
fclose($fd);
return '- System Error';
$ipFlag = fread($fd, 1);
if($ipFlag == chr(2)) {
$AddrSeek2 = fread($fd, 3);
if(strlen($AddrSeek2) & 3) {
fclose($fd);
return '- System Error';
$AddrSeek2 = implode('', unpack('L', $AddrSeek2.chr(0)));
fseek($fd, $AddrSeek2);
fseek($fd, -1, SEEK_CUR);
while(($char = fread($fd, 1)) != chr(0))
$ipAddr2 .= $
$AddrSeek = implode('', unpack('L', $AddrSeek.chr(0)));
fseek($fd, $AddrSeek);
while(($char = fread($fd, 1)) != chr(0))
$ipAddr1 .= $
fseek($fd, -1, SEEK_CUR);
while(($char = fread($fd, 1)) != chr(0))
$ipAddr1 .= $
$ipFlag = fread($fd, 1);
if($ipFlag == chr(2)) {
$AddrSeek2 = fread($fd, 3);
if(strlen($AddrSeek2) & 3) {
fclose($fd);
return '- System Error';
$AddrSeek2 = implode('', unpack('L', $AddrSeek2.chr(0)));
fseek($fd, $AddrSeek2);
fseek($fd, -1, SEEK_CUR);
while(($char = fread($fd, 1)) != chr(0))
$ipAddr2 .= $
fclose($fd);
if(preg_match('/http/i', $ipAddr2)) {
$ipAddr2 = '';
$ipaddr = &$ipAddr1 $ipAddr2&;
$ipaddr = preg_replace('/CZ88\.NET/is', '', $ipaddr);
$ipaddr = preg_replace('/^\s*/is', '', $ipaddr);
$ipaddr = preg_replace('/\s*$/is', '', $ipaddr);
if(preg_match('/http/i', $ipaddr) || $ipaddr == '') {
$ipaddr = '- Unknown';
if(WEB_LANG=='big5'){
require_once(ROOT_PATH.&inc/class.chinese.php&);
$cnvert = new Chinese(&GB2312&,&BIG5&,$ipaddr,ROOT_PATH.&./inc/gbkcode/&);
$ipaddr = $cnvert-&ConvertIT();
}elseif(WEB_LANG=='utf-8'){
require_once(ROOT_PATH.&inc/class.chinese.php&);
$cnvert = new Chinese(&GB2312&,&UTF8&,$ipaddr,ROOT_PATH.&./inc/gbkcode/&);
$ipaddr = $cnvert-&ConvertIT();
function ftp_upfile($source,$file,$ifdel=1){
if(!$webdb[FtpHost]||!$webdb[FtpName]||!$webdb[FtpPwd]||!$webdb[FtpPort]||!$webdb[FtpDir]){
require_once(ROOT_PATH.&inc/ftp.php&);
$ftp = new FTP($webdb[FtpHost],$webdb[FtpPort],$webdb[FtpName],$webdb[FtpPwd],$webdb[FtpDir]);
$path=dirname($file);
$detail=explode(&/&,$path);
//$pathname=$webdb[FtpDir];
foreach( $detail AS $key=&$value){
$pathname.=&$value/&;
if(!$ftp-&dir_exists($pathname)){
$ftp-&mkd($pathname);
$ifput=$ftp-&upload($source,$file);
$ftp-&close();
if($ifput){
$ifdel && unlink($source);
return &$webdb[mirror]/$file&;
return &$webdb[www_url]/$webdb[updir]/$file&;
function ftp_delfile($file){
if(!$webdb[FtpHost]||!$webdb[FtpName]||!$webdb[FtpPwd]||!$webdb[FtpPort]||!$webdb[FtpDir]){
require_once(ROOT_PATH.&inc/ftp.php&);
$ftp = new FTP($webdb[FtpHost],$webdb[FtpPort],$webdb[FtpName],$webdb[FtpPwd],$webdb[FtpDir]);
$size = $ftp-&size($file,0);
$ftp-&delete($file);
$ftp-&close();
//发送手机短信
function sms_send($mob,$content){
if($webdb[fetion_id]&&$webdb[fetion_pwd]&&in_array($mob,explode(&\r\n&,$webdb[fetion_friend]))){
$url=&http://sms.api.bz/fetion.php?username=$webdb[fetion_id]&password=$webdb[fetion_pwd]&sendto=$mob&message=$content&;
$msg=sockOpenUrl($url);die(&$msg-$url&);
}elseif($webdb[sms_type]=='eshang8'){
$url=&.cn/tx/?uid=$webdb[sms_es_name]&key=&.strtolower(md5($webdb[sms_es_key])).&&msg=$content&phone=$mob&smskind=1&;
if( !$msg=sockOpenUrl($url) ){
//$msg=file_get_contents($url);
if($msg===''){
}elseif($msg==='100'){
//发送成功
}elseif($webdb[sms_type]=='winic'){
$url=&http://service.winic.org/sys_port/gateway/?id=$webdb[sms_wi_id]&pwd=$webdb[sms_wi_pwd]&to=$mob&content=$content&time=&;
if( !$msg=sockOpenUrl($url) ){
//$msg=file_get_contents($url);
if($msg===''){
$detail=explode(&/&,$msg);
if($detail[0]==='000'){
//发送成功
return $detail[0];
showerr(&系统没有选择短信接口平台!&);
自定义模型当中,获取这三个select,radio,checkbox表单中类似“
function SRC_true_value($rs,$rsdb_v){
if($rs[form_type]=='radio'||$rs[form_type]=='select'){
$detail=explode(&\r\n&,$rs[form_set]);
foreach( $detail AS $_key=&$value){
list($v1,$v2)=explode(&|&,$value);
if($v1==$rsdb_v&&$v2){
$rsdb_v=$v2;
}elseif($rs[form_type]=='checkbox'){
$detail2=explode(&/&,$rsdb_v);
$detail=explode(&\r\n&,$rs[form_set]);
foreach( $detail AS $_key=&$value){
list($v1,$v2)=explode(&|&,$value);
if(in_array($v1,$detail2)&&$v2){
foreach( $detail2 AS $key2=&$value2){
if($value2==$v1){
$detail2[$key2]=$v2;
$rsdb_v=implode(& , &,$detail2);
return $rsdb_v;
//自定义内容页文件名缓存生成
function get_showhtmltype(){
global $db,$pre,$Fid_
$query = $db-&query(&SELECT aid,htmlname FROM {$pre}article WHERE htmlname!=''&);
while($rs = $db-&fetch_array($query)){
$show.=&\$showHtml_Type[bencandy][{$rs[aid]}]='$rs[htmlname]';\r\n&;
foreach( $Fid_db[iftable] AS $key=&$erp){
$query = $db-&query(&SELECT aid,htmlname FROM {$pre}article$erp WHERE htmlname!=''&);
while($rs = $db-&fetch_array($query)){
$show.=&\$showHtml_Type[bencandy][{$rs[aid]}]='$rs[htmlname]';\r\n&;
write_file(ROOT_PATH.&data/showhtmltype.php&,&&?php\r\n&.$show.'?&');
//用户登录
function user_login($username,$password,$cookietime){
global $userDB;
$rs = $userDB-&login($username,$password,$cookietime);
//获取UNIX时间,主要是特别处理变成整数.不加引号08与8会不一样的结果,加引号是正常的
function mk_time($h,$i, $s, $m, $d, $y){
$time=@mktime(intval($h),intval($i),intval($s),intval($m),intval($d),intval($y));
//检测某个关键字是否包含在数组里边
function ifin_array($array,$filename,$ISin=''){
foreach($array as $key=&$value){
if(!is_array($value)){
if(strstr($value,$filename)){
}elseif(!$ISin){
$ISin=ifin_array($array[$key],$filename,$ISin);
return $IS
/*讯雷联盟*/
function Thunder_Encode($url)
$thunderPrefix=&AA&;
$thunderPosix=&ZZ&;
$thunderTitle=&thunder://&;
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$url.$thunderPosix);
return $thunderU
/*快车联盟*/
function Flashget_Encode($t_url,$uid)
$prefix= &Flashget://&;
$FlashgetURL=$prefix.base64_encode(&[FLASHGET]&.$t_url.&[FLASHGET]&).&&&.$
return $FlashgetURL;
function player($url,$width=400,$height=300,$autostart='false',$force=''){
//$urlstring=mymd5($url);
$urlstring=urlencode($url);
&SCRIPT LANGUAGE='JavaScript' src='$webdb[www_url]/do/job.php?job=playurl&urlstring=$urlstring'&&/SCRIPT&
&SCRIPT LANGUAGE=\&JavaScript\&&
qibo_player(playurl,'$width','$height','$force','$autostart');
//自动补全一些不对称的TABLE,TD,DIV标签
function check_html_format($string){
preg_match_all(&/&div([^&]*)&/&,$string,$array0);
preg_match_all(&/&\/div&/&,$string,$array1);
$num0=count($array0[0]);
$num1=count($array1[0]);
$divNUM=abs($num0-$num1);
for($i=0;$i&$divNUM;$i++){
if($num0&$num1){
$string.=&&/div&&;
$string=&&div&$string&;
preg_match_all(&/&td([^&]*)&/&,$string,$array0);
preg_match_all(&/&\/td&/&,$string,$array1);
$num0=count($array0[0]);
$num1=count($array1[0]);
$tdNUM=abs($num0-$num1);
for($i=0;$i&$tdNUM;$i++){
if($num0&$num1){
$string.=&&/td&&;
$string=&&td&$string&;
preg_match_all(&/&table([^&]*)&/&,$string,$array0);
preg_match_all(&/&\/table&/&,$string,$array1);
$num0=count($array0[0]);
$num1=count($array1[0]);
$tableNUM=abs($num0-$num1);
for($i=0;$i&$tableNUM;$i++){
if($num0&$num1){
$string.=&&/table&&;
$string=&&table&$string&;
if($tdNUM&1||$tdNUM&1||$tableNUM&1){
$string=check_html_format($string);
function get_id_table($id){
global $Fid_
if(strlen($id)&9){
if(!$Fid_db){
@include(ROOT_PATH.&data/all_fid.php&);
$tableid=preg_replace(&/([0-9]{3})([0-9]{6})/is&,&\\1&,$id);
$tableid=intval($tableid);
if(in_array($tableid,$Fid_db[iftable])){
function get_one_article($id){
global $db,$
$erp=get_id_table($id);
$rs=$db-&get_one(&SELECT * FROM {$pre}article$erp WHERE aid='$id'&);
function delete_cache_file($fid,$id){
del_file(ROOT_PATH.&cache/jsarticle_cache&);
del_file(ROOT_PATH.&cache/label_cache&);
del_file(ROOT_PATH.&cache/list_cache&);
del_file(ROOT_PATH.&cache/bencandy_cache&);
del_file(ROOT_PATH.&cache/showsp_cache&);
//核对验证码
function check_imgnum($yzimg){
global $db,$pre,$timestamp,$
$time=$timestamp-1800; //半小时前的验证码失效.
if($webdb[YzImg_letter_differ]){ //区别字母大小写
$SQL=& BINARY &;
if($db-&get_one(&SELECT * FROM {$pre}yzimg WHERE $SQL imgnum='$yzimg'&)){
$db-&query(&DELETE FROM {$pre}yzimg WHERE imgnum='$yzimg' OR posttime&$time&);
//各模块,更新核心设置缓存
function module_write_config_cache($webdbs)
global $db,$_pre,$atc_
//checkbox要特别处理
foreach($atc_webdbs AS $key=&$value){
if(!$webdbs[$key]){
$webdbs[$key]='';
if( is_array($webdbs) )
foreach($webdbs AS $key=&$value)
if(is_array($value))
$webdbs[$key]=$value=implode(&,&,$value);
$SQL2.=&'$key',&;
$SQL.=&('$key', '$value', ''),&;
$SQL=$SQL.&;&;
$SQL=str_Replace(&'),;&,&')&,$SQL);
$db-&query(& DELETE FROM {$_pre}config WHERE c_key IN ($SQL2'') &);
$db-&query(& INSERT INTO `{$_pre}config` VALUES
$writefile=&&?php\r\n&;
$query = $db-&query(&SELECT * FROM {$_pre}config&);
while($rs = $db-&fetch_array($query)){
$rs[c_value]=addslashes($rs[c_value]);
$writefile.=&\$webdb['$rs[c_key]']='$rs[c_value]';\r\n&;
write_file(Mpath.&data/config.php&,$writefile);
//发送邮件
function send_mail($email,$title,$content,$ifcheck=1){
if($webdb[MailType]=='smtp'){
if(!$webdb[MailServer]||!$webdb[MailPort]||!$webdb[MailId]||!$webdb[MailPw]){
if($ifcheck){
showerr(&请先设置邮件服务器&);
require_once(ROOT_PATH.&inc/class.mail.php&);
$smtp = new smtp($webdb[MailServer],$webdb[MailPort],true,$webdb[MailId],$webdb[MailPw]);
$smtp-&debug =
if($smtp-&sendmail($email,$webdb[MailId], $title, $content, &HTML&)){
$succeeNUM++;
$failNUM++;
if(mail($email, $title, $content)){
$succeeNUM++;
$failNUM++;
if($succeeNUM){
if($ifcheck){
showerr('邮件发送失败,请管理员检查服务器配置');
//插件菜单写缓存
function write_hackmenu_cache(){
global $db,$
$show=&&?php\r\n&;
$query = $db-&query(&SELECT * FROM {$pre}hack ORDER BY list DESC&);
while($rs =

我要回帖

更多关于 蚂蚁分类系统伪静态 的文章

 

随机推荐