├── .htaccess
├── README.md
├── config.php
├── data
├── sql
│ └── db.sql
└── static
│ ├── advers.php
│ ├── archives.php
│ ├── categories.php
│ ├── category_1.php
│ ├── labels.php
│ ├── links.php
│ ├── options.php
│ └── stats.php
├── favicon.ico
├── httpd.ini
├── ico
├── fav.php
├── fav_function.php
└── i
│ ├── fav_erro.png
│ └── no.png
├── index.php
├── install
├── agreement.php
├── database.php
├── footer.php
├── function.php
├── header.php
├── images
│ ├── button.gif
│ └── skin.css
├── index.php
└── install.php
├── member
├── index.php
└── module
│ ├── activate.php
│ ├── claim.php
│ ├── common.php
│ ├── getpwd.php
│ ├── home.php
│ ├── login.php
│ ├── logout.php
│ ├── profile.php
│ ├── register.php
│ ├── reset.php
│ ├── verify.php
│ └── website.php
├── module
├── ajaxget.php
├── api.php
├── archives.php
├── category.php
├── common.php
├── feedback.php
├── getdata.php
├── index.php
├── link.php
├── rssfeed.php
├── search.php
├── siteinfo.php
├── sitemap.php
├── top.php
├── update.php
└── webdir.php
├── public
├── editor
│ ├── kindeditor-min.js
│ ├── kindeditor.js
│ ├── lang
│ │ ├── ar.js
│ │ ├── en.js
│ │ ├── zh_CN.js
│ │ └── zh_TW.js
│ ├── license.txt
│ ├── plugins
│ │ ├── anchor
│ │ │ └── anchor.js
│ │ ├── clearhtml
│ │ │ └── clearhtml.js
│ │ ├── code
│ │ │ ├── code.js
│ │ │ ├── prettify.css
│ │ │ └── prettify.js
│ │ ├── emoticons
│ │ │ ├── emoticons.js
│ │ │ └── images
│ │ │ │ ├── 0.gif
│ │ │ │ ├── 1.gif
│ │ │ │ ├── 10.gif
│ │ │ │ ├── 100.gif
│ │ │ │ ├── 101.gif
│ │ │ │ ├── 102.gif
│ │ │ │ ├── 103.gif
│ │ │ │ ├── 104.gif
│ │ │ │ ├── 105.gif
│ │ │ │ ├── 106.gif
│ │ │ │ ├── 107.gif
│ │ │ │ ├── 108.gif
│ │ │ │ ├── 109.gif
│ │ │ │ ├── 11.gif
│ │ │ │ ├── 110.gif
│ │ │ │ ├── 111.gif
│ │ │ │ ├── 112.gif
│ │ │ │ ├── 113.gif
│ │ │ │ ├── 114.gif
│ │ │ │ ├── 115.gif
│ │ │ │ ├── 116.gif
│ │ │ │ ├── 117.gif
│ │ │ │ ├── 118.gif
│ │ │ │ ├── 119.gif
│ │ │ │ ├── 12.gif
│ │ │ │ ├── 120.gif
│ │ │ │ ├── 121.gif
│ │ │ │ ├── 122.gif
│ │ │ │ ├── 123.gif
│ │ │ │ ├── 124.gif
│ │ │ │ ├── 125.gif
│ │ │ │ ├── 126.gif
│ │ │ │ ├── 127.gif
│ │ │ │ ├── 128.gif
│ │ │ │ ├── 129.gif
│ │ │ │ ├── 13.gif
│ │ │ │ ├── 130.gif
│ │ │ │ ├── 131.gif
│ │ │ │ ├── 132.gif
│ │ │ │ ├── 133.gif
│ │ │ │ ├── 134.gif
│ │ │ │ ├── 14.gif
│ │ │ │ ├── 15.gif
│ │ │ │ ├── 16.gif
│ │ │ │ ├── 17.gif
│ │ │ │ ├── 18.gif
│ │ │ │ ├── 19.gif
│ │ │ │ ├── 2.gif
│ │ │ │ ├── 20.gif
│ │ │ │ ├── 21.gif
│ │ │ │ ├── 22.gif
│ │ │ │ ├── 23.gif
│ │ │ │ ├── 24.gif
│ │ │ │ ├── 25.gif
│ │ │ │ ├── 26.gif
│ │ │ │ ├── 27.gif
│ │ │ │ ├── 28.gif
│ │ │ │ ├── 29.gif
│ │ │ │ ├── 3.gif
│ │ │ │ ├── 30.gif
│ │ │ │ ├── 31.gif
│ │ │ │ ├── 32.gif
│ │ │ │ ├── 33.gif
│ │ │ │ ├── 34.gif
│ │ │ │ ├── 35.gif
│ │ │ │ ├── 36.gif
│ │ │ │ ├── 37.gif
│ │ │ │ ├── 38.gif
│ │ │ │ ├── 39.gif
│ │ │ │ ├── 4.gif
│ │ │ │ ├── 40.gif
│ │ │ │ ├── 41.gif
│ │ │ │ ├── 42.gif
│ │ │ │ ├── 43.gif
│ │ │ │ ├── 44.gif
│ │ │ │ ├── 45.gif
│ │ │ │ ├── 46.gif
│ │ │ │ ├── 47.gif
│ │ │ │ ├── 48.gif
│ │ │ │ ├── 49.gif
│ │ │ │ ├── 5.gif
│ │ │ │ ├── 50.gif
│ │ │ │ ├── 51.gif
│ │ │ │ ├── 52.gif
│ │ │ │ ├── 53.gif
│ │ │ │ ├── 54.gif
│ │ │ │ ├── 55.gif
│ │ │ │ ├── 56.gif
│ │ │ │ ├── 57.gif
│ │ │ │ ├── 58.gif
│ │ │ │ ├── 59.gif
│ │ │ │ ├── 6.gif
│ │ │ │ ├── 60.gif
│ │ │ │ ├── 61.gif
│ │ │ │ ├── 62.gif
│ │ │ │ ├── 63.gif
│ │ │ │ ├── 64.gif
│ │ │ │ ├── 65.gif
│ │ │ │ ├── 66.gif
│ │ │ │ ├── 67.gif
│ │ │ │ ├── 68.gif
│ │ │ │ ├── 69.gif
│ │ │ │ ├── 7.gif
│ │ │ │ ├── 70.gif
│ │ │ │ ├── 71.gif
│ │ │ │ ├── 72.gif
│ │ │ │ ├── 73.gif
│ │ │ │ ├── 74.gif
│ │ │ │ ├── 75.gif
│ │ │ │ ├── 76.gif
│ │ │ │ ├── 77.gif
│ │ │ │ ├── 78.gif
│ │ │ │ ├── 79.gif
│ │ │ │ ├── 8.gif
│ │ │ │ ├── 80.gif
│ │ │ │ ├── 81.gif
│ │ │ │ ├── 82.gif
│ │ │ │ ├── 83.gif
│ │ │ │ ├── 84.gif
│ │ │ │ ├── 85.gif
│ │ │ │ ├── 86.gif
│ │ │ │ ├── 87.gif
│ │ │ │ ├── 88.gif
│ │ │ │ ├── 89.gif
│ │ │ │ ├── 9.gif
│ │ │ │ ├── 90.gif
│ │ │ │ ├── 91.gif
│ │ │ │ ├── 92.gif
│ │ │ │ ├── 93.gif
│ │ │ │ ├── 94.gif
│ │ │ │ ├── 95.gif
│ │ │ │ ├── 96.gif
│ │ │ │ ├── 97.gif
│ │ │ │ ├── 98.gif
│ │ │ │ ├── 99.gif
│ │ │ │ └── static.gif
│ │ ├── filemanager
│ │ │ ├── filemanager.js
│ │ │ └── images
│ │ │ │ ├── file-16.gif
│ │ │ │ ├── file-64.gif
│ │ │ │ ├── folder-16.gif
│ │ │ │ ├── folder-64.gif
│ │ │ │ └── go-up.gif
│ │ ├── flash
│ │ │ └── flash.js
│ │ ├── image
│ │ │ ├── image.js
│ │ │ └── images
│ │ │ │ ├── align_left.gif
│ │ │ │ ├── align_right.gif
│ │ │ │ ├── align_top.gif
│ │ │ │ └── refresh.gif
│ │ ├── insertfile
│ │ │ └── insertfile.js
│ │ ├── lineheight
│ │ │ └── lineheight.js
│ │ ├── link
│ │ │ └── link.js
│ │ ├── map
│ │ │ ├── map.html
│ │ │ └── map.js
│ │ ├── media
│ │ │ └── media.js
│ │ ├── pagebreak
│ │ │ └── pagebreak.js
│ │ ├── plainpaste
│ │ │ └── plainpaste.js
│ │ ├── preview
│ │ │ └── preview.js
│ │ ├── quickformat
│ │ │ └── quickformat.js
│ │ ├── table
│ │ │ └── table.js
│ │ ├── template
│ │ │ ├── html
│ │ │ │ ├── 1.html
│ │ │ │ ├── 2.html
│ │ │ │ └── 3.html
│ │ │ └── template.js
│ │ └── wordpaste
│ │ │ └── wordpaste.js
│ └── themes
│ │ ├── common
│ │ ├── anchor.gif
│ │ ├── blank.gif
│ │ ├── flash.gif
│ │ ├── loading.gif
│ │ ├── media.gif
│ │ └── rm.gif
│ │ ├── default
│ │ ├── bg.gif
│ │ ├── default.css
│ │ └── default.png
│ │ └── simple
│ │ └── simple.css
├── images
│ ├── loading.gif
│ ├── qcloud01.jpg
│ ├── qcloud02.jpg
│ ├── qcloud03.jpg
│ └── rss.gif
├── scripts
│ ├── admin.js
│ ├── common.js
│ ├── iepng.js
│ ├── jquery.min.js
│ ├── jquery.treeview.js
│ ├── linkage.select.js
│ ├── tree
│ │ ├── ajax-loader.gif
│ │ ├── file.gif
│ │ ├── folder-closed.gif
│ │ ├── folder-open.gif
│ │ ├── minus.gif
│ │ ├── plus.gif
│ │ ├── treeview-black-line.gif
│ │ ├── treeview-black.gif
│ │ ├── treeview-default-line.gif
│ │ ├── treeview-default.gif
│ │ ├── treeview-famfamfam-line.gif
│ │ ├── treeview-famfamfam.gif
│ │ ├── treeview-gray-line.gif
│ │ ├── treeview-gray.gif
│ │ ├── treeview-red-line.gif
│ │ └── treeview-red.gif
│ └── treeview.css
└── style
│ └── default
│ ├── arrow.gif
│ ├── logo.png
│ ├── select.gif
│ ├── sprite.png
│ ├── style.css
│ └── visit.gif
├── source
├── extend
│ ├── connect
│ │ └── oauth_qq.php
│ ├── phpmailer
│ │ ├── class.phpmailer.php
│ │ ├── class.pop3.php
│ │ └── class.smtp.php
│ └── smarty
│ │ ├── Smarty.class.php
│ │ ├── SmartyBC.class.php
│ │ ├── debug.tpl
│ │ ├── plugins
│ │ ├── block.nocache.php
│ │ ├── block.textformat.php
│ │ ├── function.counter.php
│ │ ├── function.cycle.php
│ │ ├── function.fetch.php
│ │ ├── function.html_checkboxes.php
│ │ ├── function.html_image.php
│ │ ├── function.html_options.php
│ │ ├── function.html_radios.php
│ │ ├── function.html_select_date.php
│ │ ├── function.html_select_time.php
│ │ ├── function.html_table.php
│ │ ├── function.mailto.php
│ │ ├── function.math.php
│ │ ├── modifier.capitalize.php
│ │ ├── modifier.date_format.php
│ │ ├── modifier.debug_print_var.php
│ │ ├── modifier.escape.php
│ │ ├── modifier.regex_replace.php
│ │ ├── modifier.replace.php
│ │ ├── modifier.spacify.php
│ │ ├── modifier.truncate.php
│ │ ├── modifiercompiler.cat.php
│ │ ├── modifiercompiler.count_characters.php
│ │ ├── modifiercompiler.count_paragraphs.php
│ │ ├── modifiercompiler.count_sentences.php
│ │ ├── modifiercompiler.count_words.php
│ │ ├── modifiercompiler.default.php
│ │ ├── modifiercompiler.escape.php
│ │ ├── modifiercompiler.from_charset.php
│ │ ├── modifiercompiler.indent.php
│ │ ├── modifiercompiler.lower.php
│ │ ├── modifiercompiler.noprint.php
│ │ ├── modifiercompiler.string_format.php
│ │ ├── modifiercompiler.strip.php
│ │ ├── modifiercompiler.strip_tags.php
│ │ ├── modifiercompiler.to_charset.php
│ │ ├── modifiercompiler.unescape.php
│ │ ├── modifiercompiler.upper.php
│ │ ├── modifiercompiler.wordwrap.php
│ │ ├── outputfilter.trimwhitespace.php
│ │ ├── shared.escape_special_chars.php
│ │ ├── shared.literal_compiler_param.php
│ │ ├── shared.make_timestamp.php
│ │ ├── shared.mb_str_replace.php
│ │ ├── shared.mb_unicode.php
│ │ ├── shared.mb_wordwrap.php
│ │ └── variablefilter.htmlspecialchars.php
│ │ └── sysplugins
│ │ ├── smarty_cacheresource.php
│ │ ├── smarty_cacheresource_custom.php
│ │ ├── smarty_cacheresource_keyvaluestore.php
│ │ ├── smarty_config_source.php
│ │ ├── smarty_internal_cacheresource_file.php
│ │ ├── smarty_internal_compile_append.php
│ │ ├── smarty_internal_compile_assign.php
│ │ ├── smarty_internal_compile_block.php
│ │ ├── smarty_internal_compile_break.php
│ │ ├── smarty_internal_compile_call.php
│ │ ├── smarty_internal_compile_capture.php
│ │ ├── smarty_internal_compile_config_load.php
│ │ ├── smarty_internal_compile_continue.php
│ │ ├── smarty_internal_compile_debug.php
│ │ ├── smarty_internal_compile_eval.php
│ │ ├── smarty_internal_compile_extends.php
│ │ ├── smarty_internal_compile_for.php
│ │ ├── smarty_internal_compile_foreach.php
│ │ ├── smarty_internal_compile_function.php
│ │ ├── smarty_internal_compile_if.php
│ │ ├── smarty_internal_compile_include.php
│ │ ├── smarty_internal_compile_include_php.php
│ │ ├── smarty_internal_compile_insert.php
│ │ ├── smarty_internal_compile_ldelim.php
│ │ ├── smarty_internal_compile_nocache.php
│ │ ├── smarty_internal_compile_private_block_plugin.php
│ │ ├── smarty_internal_compile_private_function_plugin.php
│ │ ├── smarty_internal_compile_private_modifier.php
│ │ ├── smarty_internal_compile_private_object_block_function.php
│ │ ├── smarty_internal_compile_private_object_function.php
│ │ ├── smarty_internal_compile_private_print_expression.php
│ │ ├── smarty_internal_compile_private_registered_block.php
│ │ ├── smarty_internal_compile_private_registered_function.php
│ │ ├── smarty_internal_compile_private_special_variable.php
│ │ ├── smarty_internal_compile_rdelim.php
│ │ ├── smarty_internal_compile_section.php
│ │ ├── smarty_internal_compile_setfilter.php
│ │ ├── smarty_internal_compile_while.php
│ │ ├── smarty_internal_compilebase.php
│ │ ├── smarty_internal_config.php
│ │ ├── smarty_internal_config_file_compiler.php
│ │ ├── smarty_internal_configfilelexer.php
│ │ ├── smarty_internal_configfileparser.php
│ │ ├── smarty_internal_data.php
│ │ ├── smarty_internal_debug.php
│ │ ├── smarty_internal_filter_handler.php
│ │ ├── smarty_internal_function_call_handler.php
│ │ ├── smarty_internal_get_include_path.php
│ │ ├── smarty_internal_nocache_insert.php
│ │ ├── smarty_internal_parsetree.php
│ │ ├── smarty_internal_resource_eval.php
│ │ ├── smarty_internal_resource_extends.php
│ │ ├── smarty_internal_resource_file.php
│ │ ├── smarty_internal_resource_php.php
│ │ ├── smarty_internal_resource_registered.php
│ │ ├── smarty_internal_resource_stream.php
│ │ ├── smarty_internal_resource_string.php
│ │ ├── smarty_internal_smartytemplatecompiler.php
│ │ ├── smarty_internal_template.php
│ │ ├── smarty_internal_templatebase.php
│ │ ├── smarty_internal_templatecompilerbase.php
│ │ ├── smarty_internal_templatelexer.php
│ │ ├── smarty_internal_templateparser.php
│ │ ├── smarty_internal_utility.php
│ │ ├── smarty_internal_write_file.php
│ │ ├── smarty_resource.php
│ │ ├── smarty_resource_custom.php
│ │ ├── smarty_resource_recompiled.php
│ │ ├── smarty_resource_uncompiled.php
│ │ └── smarty_security.php
├── include
│ ├── cache.php
│ ├── captcha.php
│ ├── databak.php
│ ├── function.php
│ ├── mysql.php
│ ├── pagerank.php
│ ├── sendmail.php
│ ├── smarty.php
│ ├── snoopy.php
│ └── validate.php
├── init.php
├── module
│ ├── adver.php
│ ├── category.php
│ ├── diypage.php
│ ├── feedback.php
│ ├── label.php
│ ├── link.php
│ ├── option.php
│ ├── prelink.php
│ ├── rewrite.php
│ ├── siteurl.php
│ ├── stats.php
│ ├── user.php
│ ├── webdata.php
│ └── website.php
└── version.php
├── system
├── admin.php
├── adver.php
├── cache.php
├── category.php
├── common.php
├── database.php
├── editpwd.php
├── feedback.php
├── function.php
├── label.php
├── link.php
├── load.php
├── login.php
├── main.php
├── option.php
├── page.php
├── user.php
└── website.php
└── themes
├── default
├── archives.html
├── feedback.html
├── footer.html
├── header.html
├── index.html
├── msgbox.html
├── script.html
├── search.html
├── siteinfo.html
├── top.html
├── topbar.html
├── update.html
└── webdir.html
├── member
├── activate.html
├── claim.html
├── footer.html
├── getpwd.html
├── header.html
├── home.html
├── login.html
├── msgbox.html
├── profile.html
├── register.html
├── register_mail.html
├── reset.html
├── reset_mail.html
├── skin
│ ├── fbg.gif
│ ├── hbg.png
│ ├── ipt.png
│ ├── login.css
│ ├── logo.png
│ ├── member.css
│ └── tbg.png
├── verify_mail.html
└── website.html
└── system
├── admin.html
├── adver.html
├── audit_mail.html
├── cache.html
├── category.html
├── database.html
├── editpwd.html
├── feedback.html
├── footer.html
├── header.html
├── label.html
├── link.html
├── login.html
├── main.html
├── msgbox.html
├── option.html
├── page.html
├── skin
├── global.css
├── iframe.css
├── ipt.png
├── login.css
├── logo.png
├── page.css
└── title.png
├── user.html
└── website.html
/.htaccess:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/.htaccess
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHP网站目录源码
2 |
3 | 基于35DIR内核修改的网站目录程序源码。基于PHP+MYSQL
4 |
5 | -------------------------
6 |
7 | **推荐主机商**
8 |
9 | 1、糖果主机([查看官方网站购买][1])
10 |
11 | 提供香港、美国等无需备案的Linux虚拟主机,支持支付宝付款。年付最低270元。
12 |
13 | 2、腾讯云服务器([腾讯云服务器优惠活动][2])
14 |
15 | **网站目录介绍**
16 | 1、基于35DIR内核和lply主题修改版完善的网站目录
17 | 2、支持提交网站HTTP和HTTPS
18 | 3、更换缩略图接口
19 | 4、优化模板结构样式体验更简单
20 | 5......
21 |
22 | **系统要求支持**
23 | 1、支持PHP5.3+MYSQL
24 | 2、建议是APACHE系统
25 |
26 | **演示网站和支持**
27 |
28 | 1、演示网站:[https://www.141.biz/][3]
29 |
30 | 2、作者网站(老蒋):[https://www.itbulu.com/][4]
31 |
32 | 3、发布支持网站:[https://www.laobuluo.com/][5]
33 |
34 |
35 | [1]: http://www.sugarhosts.com/members/aff.php?aff=571
36 | [2]: https://www.laobuluo.com/tengxunyun/
37 | [3]: https://www.141.biz/
38 | [4]: https://www.itbulu.com/
39 | [5]: https://www.laobuluo.com/
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/config.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/static/advers.php:
--------------------------------------------------------------------------------
1 | array(
9 | 'adver_type' => '2',
10 | 'adver_name' => '广告位(3)250*250',
11 | 'adver_url' => '',
12 | 'adver_code' => '这是广告位(3),请在后台网站广告放置广告代码!',
13 | 'adver_etips' => '',
14 | 'adver_days' => '0',
15 | 'adver_date' => '1472112532'
16 | ),
17 | '2' => array(
18 | 'adver_type' => '2',
19 | 'adver_name' => '广告位(2)710*100',
20 | 'adver_url' => '',
21 | 'adver_code' => '这是广告位(2),请在后台网站广告放置广告代码!',
22 | 'adver_etips' => '',
23 | 'adver_days' => '0',
24 | 'adver_date' => '1472112571'
25 | ),
26 | '1' => array(
27 | 'adver_type' => '2',
28 | 'adver_name' => '广告位(1)250*250',
29 | 'adver_url' => '',
30 | 'adver_code' => '这是广告位(1),请在后台网站广告放置广告代码!',
31 | 'adver_etips' => '',
32 | 'adver_days' => '0',
33 | 'adver_date' => '1472112491'
34 | ),
35 | );
36 | ?>
--------------------------------------------------------------------------------
/data/static/archives.php:
--------------------------------------------------------------------------------
1 | array(
9 | '08' => '1',
10 | ),
11 | );
12 | ?>
--------------------------------------------------------------------------------
/data/static/categories.php:
--------------------------------------------------------------------------------
1 | array(
9 | 'cate_id' => '1',
10 | 'root_id' => '0',
11 | 'cate_name' => '测试',
12 | 'cate_dir' => '',
13 | 'cate_url' => '',
14 | 'cate_isbest' => '1',
15 | 'cate_keywords' => '',
16 | 'cate_description' => '',
17 | 'cate_arrparentid' => '0',
18 | 'cate_arrchildid' => '1',
19 | 'cate_childcount' => '0',
20 | 'cate_postcount' => '0'
21 | ),
22 | );
23 | ?>
--------------------------------------------------------------------------------
/data/static/category_1.php:
--------------------------------------------------------------------------------
1 | '1',
9 | 'root_id' => '0',
10 | 'cate_name' => '测试',
11 | 'cate_dir' => '',
12 | 'cate_url' => '',
13 | 'cate_isbest' => '1',
14 | 'cate_keywords' => '',
15 | 'cate_description' => '',
16 | 'cate_arrparentid' => '0',
17 | 'cate_arrchildid' => '1',
18 | 'cate_childcount' => '0',
19 | 'cate_postcount' => '0',
20 | );
21 | ?>
--------------------------------------------------------------------------------
/data/static/labels.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/static/links.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/data/static/options.php:
--------------------------------------------------------------------------------
1 | '141网站导航',
9 | 'site_title' => '141网站导航',
10 | 'site_url' => 'https://www.itbulu.com',
11 | 'site_root' => '/',
12 | 'admin_email' => 'admi@qq.com',
13 | 'site_keywords' => '',
14 | 'site_description' => '全人工编辑的开放式网站分类目录,收录国内外、各行业优秀网站,旨在为用户提供网站分类目录检索、优秀网站参考、网站推广服务。',
15 | 'site_copyright' => 'CopyRight 141博客导航 All Rights Reserved.',
16 | 'regname_small' => '2',
17 | 'regname_large' => '6',
18 | 'regname_forbid' => 'admin
19 | 管理员
20 | 来派领域
21 | lply',
22 | 'home_instat' => '20',
23 | 'home_outstat' => '20',
24 | 'home_isbest' => '50',
25 | 'home_new' => '13',
26 | 'is_enabled_gzip' => 'yes',
27 | 'is_enabled_submit' => 'yes',
28 | 'submit_close_reason' => '',
29 | 'data_update_cycle' => '1',
30 | 'is_enabled_register' => 'yes',
31 | 'register_email_verify' => 'no',
32 | 'is_enabled_rewrite' => 'yes',
33 | 'rewrite_suffix' => '.html',
34 | 'smtp_host' => 'smtp.163.com',
35 | 'smtp_port' => '25',
36 | 'smtp_auth' => 'yes',
37 | 'smtp_user' => 'username@163.com',
38 | 'smtp_pass' => 'password',
39 | 'filter_words' => 'sb
40 | 共产党
41 | 发票',
42 | );
43 | ?>
--------------------------------------------------------------------------------
/data/static/stats.php:
--------------------------------------------------------------------------------
1 | '1',
9 | 'website' => '1',
10 | 'adver' => '0',
11 | 'link' => '0',
12 | 'feedback' => '0',
13 | 'label' => '0',
14 | 'page' => '0',
15 | );
16 | ?>
--------------------------------------------------------------------------------
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/favicon.ico
--------------------------------------------------------------------------------
/httpd.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/httpd.ini
--------------------------------------------------------------------------------
/ico/fav.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ico/fav_function.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ico/i/fav_erro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/ico/i/fav_erro.png
--------------------------------------------------------------------------------
/ico/i/no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/ico/i/no.png
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 | query("UPDATE ".$DB->table('website')." w, ".$DB->table('webdata')." d SET d.web_instat=d.web_instat+1, d.web_itime=".time()." WHERE w.web_id=d.web_id AND web_url='$domain'");
36 | }
37 | }
38 | } else {
39 | _404();
40 | }
41 | ?>
--------------------------------------------------------------------------------
/install/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
--------------------------------------------------------------------------------
/install/header.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/install/images/button.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laobuluo/141mulu/858de0a67a8407e0681f2a7dc201c04998d4b692/install/images/button.gif
--------------------------------------------------------------------------------
/install/images/skin.css:
--------------------------------------------------------------------------------
1 | body,td,th {color: #444; font: 12px Arial, Helvetica, sans-serif;}
2 | body {background: #f1f1f1; margin: 0;}
3 | ul,li,h1,h2,h3,h4,p {margin: 0; padding: 0; list-style: none}
4 | a:link {color: #777; text-decoration: none;}
5 | a:visited {color: #777; text-decoration: none;}
6 | a:hover {color: #06f; text-decoration: none;}
7 | a:active {color: #777; text-decoration: none;}
8 | #main {background: #fff; margin: 30px auto 0 auto; width: 980px;}
9 | .logo {background: url(logo.png) no-repeat; float: left; height: 95px; margin-left: 15px; width: 250px;}
10 | #link {color: #fff; float: right; font-size: 12px; height: 25px; line-height: 25px; margin-right: 20px; margin-top: 35px; text-align: right; width: 350px;}
11 | #link a {color:#fff !important; margin: 0 5px;}
12 | #link a:hover { color:#FF0 !important}
13 | .top {background: #078fdf; height: 95px;}
14 | .foot {clear: both; height: 50px; line-height: 40px; margin: 10px auto 0 auto; text-align: center; width: 980px;}
15 | .central {height: 650px; margin: 20px auto 0 auto; width: 940px;}
16 | #left {border-right: solid 1px #e1e1e1; float: left; height: 650px; width: 210px;}
17 | #left ul {}
18 | #left ul li {border-bottom: solid 1px #eee; color: #777; height: 85px; margin-bottom: 10px;}
19 | #left h1 {font-size: 50px; float: left; width: 40px;}
20 | .left_title {width: 160px; float: left}
21 | .left_title h2 {font-size: 14px; line-height: 30px;}
22 | .left_title p {color: #999; line-height: 20px}
23 | .install {color: #008dc7 !important}
24 | .right {float: right; height: 460px; width: 710px;}
25 | .right_title {border-bottom: solid 1px #eee; font: bold 16px normal; height: 40px; line-height: 25px; width: 100%;}
26 | .button {background: url(button.gif) no-repeat; border: 0; color: #4e4e4e; cursor: pointer; height: 38px; font-weight: bold; text-align: center; width: 240px;}
27 | .agree {border-top: solid 1px #eee; padding-top: 20px;}
28 | .setup_input {border: solid 1px #e2e2e2; color: #4e4e4e; height: 18px; padding: 5px; font: bold 14px Arial, Helvetica, sans-serif; width: 205px;}
29 | .lightcolor {color:#808080;}
--------------------------------------------------------------------------------
/member/module/activate.php:
--------------------------------------------------------------------------------
1 | table('users');
8 |
9 | if (!$smarty->isCached($tplfile)) {
10 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
11 | $smarty->assign('site_keywords', $options['site_keywords']);
12 | $smarty->assign('site_description', $options['site_description']);
13 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
14 |
15 | $user_id = intval($_GET['uid']);
16 | $verify_code = trim($_GET['code']);
17 |
18 | $user = $DB->fetch_one("SELECT user_id, verify_code, join_time FROM $table WHERE user_id=$user_id LIMIT 1");
19 | if (!$user) {
20 | msgbox('您还不是本站的会员!', '?mod=register');
21 | }
22 |
23 | $twodays = $user['join_time'] + (2 * 24 * 3600);
24 | if ($twodays >= time()) {
25 | if ($verify_code == $user['verify_code']) {
26 | $DB->update($table, array('user_status' => 1), array('user_id' => $user['user_id']));
27 | $message = '帐号激活成功!
立即登录账户>>';
28 | } else {
29 | $message = '帐号激活失败!';
30 | }
31 | } else {
32 | $message = '可能是因为超过48小时没有完成验证,该链接地址已经失效!';
33 | }
34 |
35 | $smarty->assign('message', $message);
36 | }
37 |
38 | smarty_output($tplfile);
39 | ?>
--------------------------------------------------------------------------------
/member/module/common.php:
--------------------------------------------------------------------------------
1 | assign('site_root', $options['site_root']);
10 | $smarty->assign('site_name', $options['site_name']);
11 | $smarty->assign('site_url', $options['site_url']);
12 | $smarty->assign('site_copyright', $options['site_copyright']);
13 | $smarty->assign('cfg', $options); #options
14 | $smarty->display($template, $cache_id, $compile_id);
15 |
16 | if ($options['is_enabled_rewrite'] == 'yes') {
17 | $content = rewrite_output($content);
18 | }
19 | unset($options);
20 | echo $content;
21 |
22 | #gzip
23 | if($options['is_enabled_gzip'] == 'yes') {
24 | $buffer = ob_get_contents();
25 | ob_end_clean();
26 | if(extension_loaded('zlib')) {
27 | ob_start('ob_gzhandler');
28 | } else {
29 | ob_start();
30 | }
31 |
32 | echo $buffer;
33 | }
34 | }
35 |
36 |
37 | function msgbox($msg, $url = 'javascript: history.go(-1);') {
38 | global $smarty;
39 |
40 | $template = 'msgbox.html';
41 | template_exists($template);
42 |
43 | $smarty->assign('msg', $msg);
44 | $smarty->assign('url', $url);
45 | echo $smarty->fetch('msgbox.html');
46 | @ob_end_flush();
47 | exit();
48 | }
49 |
50 | function redirect($url) {
51 | header('location:'.$url, false, 301);
52 | exit;
53 | }
54 |
55 | function get_scripttime() {
56 | global $DB, $options, $start_time;
57 |
58 | $mtime = explode(' ', microtime());
59 | $end_time = $mtime[1] + $mtime[0];
60 | $exec_time = number_format(($end_time - $start_time), 6);
61 | $gzip = $options['is_enabled_gzip'] ? 'Enabled' : 'Disabled';
62 |
63 | return 'Processed in '.$exec_time.' second(s), '.$DB->queries.' Queries, Gzip '.$gzip;
64 | }
65 |
66 | function insert_script_time() {
67 | return get_scripttime();
68 | }
69 |
70 | /** site path */
71 | function get_sitepath() {
72 | global $options;
73 |
74 | $strpath = '当前位置:'.$options['site_name'].' » 会员中心';
75 |
76 | return $strpath;
77 | }
78 | ?>
--------------------------------------------------------------------------------
/member/module/home.php:
--------------------------------------------------------------------------------
1 | isCached($tplfile)) {
9 | $smarty->assign('pagename', $pagename);
10 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
11 | $smarty->assign('site_path', get_sitepath());
12 | }
13 |
14 | smarty_output($tplfile);
15 | ?>
--------------------------------------------------------------------------------
/member/module/login.php:
--------------------------------------------------------------------------------
1 | table('users');
8 |
9 | if (!$smarty->isCached($tplfile)) {
10 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
11 | $smarty->assign('site_keywords', $options['site_keywords']);
12 | $smarty->assign('site_description', $options['site_description']);
13 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
14 |
15 | if ($_POST['action'] == 'login') {
16 | $user_email = trim($_POST['email']);
17 | $user_pass = trim($_POST['pass']);
18 |
19 | if (empty($user_email) || !is_valid_email($user_email)) {
20 | msgbox('请输入有效的电子邮箱!');
21 | }
22 |
23 | if (empty($user_pass)) {
24 | msgbox('请输入登陆密码!');
25 | }
26 |
27 | $newpass = md5($user_pass);
28 | $user = $DB->fetch_one("SELECT user_id, user_pass, login_time, login_count FROM $table WHERE user_email='$user_email'");
29 | if (!$user) {
30 | msgbox('用户名或密码错误,请重试!');
31 | } else {
32 | if ($newpass != $user['user_pass']) {
33 | msgbox('用户名或密码错误,请重试!');
34 | } else {
35 | //积分
36 | if (datediff('h', $user['login_time']) == 24) {
37 | $DB->query("UPDATE $table SET user_score=user_score+1 WHERE user_id=".$user['user_id']." LIMIT 1");
38 | }
39 |
40 | $ip_address = sprintf("%u", ip2long(get_client_ip()));
41 | $login_count = $user['login_count'] + 1;
42 |
43 | $data = array(
44 | 'login_time' => time(),
45 | 'login_ip' => $ip_address,
46 | 'login_count' => $login_count,
47 | );
48 | $where = array('user_id' => $user['user_id']);
49 | $DB->update($table, $data, $where);
50 |
51 | $auth_cookie = authcode("$user[user_id]|$newpass|$login_count");
52 | $expire = time() + 3600 * 24;
53 | setcookie('auth_cookie', $auth_cookie, $expire, $options['site_root']);
54 |
55 | redirect('?mod=home');
56 | }
57 | }
58 | }
59 | }
60 |
61 | smarty_output($tplfile);
62 | ?>
--------------------------------------------------------------------------------
/member/module/logout.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/member/module/reset.php:
--------------------------------------------------------------------------------
1 | table('users');
8 |
9 | if (!$smarty->isCached($tplfile)) {
10 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
11 | $smarty->assign('site_keywords', $options['site_keywords']);
12 | $smarty->assign('site_description', $options['site_description']);
13 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
14 |
15 | $user_id = intval($_GET['uid']);
16 | $verify_code = trim($_GET['code']);
17 | if (empty($verify_code)) {
18 | msgbox('校验代码错误!');
19 | }
20 | $smarty->assign('code', $verify_code);
21 |
22 | $user = $DB->fetch_one("SELECT user_id FROM $table WHERE user_id='$user_id'");
23 | if (!$user) {
24 | msgbox('您还不是本站会员!', '?mod=register');
25 | }
26 |
27 | if ($_POST['action'] == 'save') {
28 | $user_email = trim($_POST['email']);
29 | $verify_code = trim($_POST['code']);
30 | $user_pass = trim($_POST['pass']);
31 | $user_pass1 = trim($_POST['pass1']);
32 |
33 | if (empty($user_email) || !is_valid_email($user_email)) {
34 | msgbox('请输入有效的电子邮箱!');
35 | }
36 |
37 | if (empty($verify_code)) {
38 | msgbox('请输入校验码!');
39 | }
40 |
41 | if (empty($user_pass)) {
42 | msgbox('请输入新密码!');
43 | } else {
44 | if (strlen($user_pass) < 6 || strlen($user_pass) > 20) {
45 | msgbox('密码长度请保持在6-20个字符!');
46 | }
47 | }
48 |
49 | if (empty($user_pass1)) {
50 | msgbox('请输入确认密码!');
51 | }
52 |
53 | if ($user_pass != $user_pass1) {
54 | msgbox('两次密码输入不一致,请重新输入!');
55 | }
56 |
57 | $user = $DB->fetch_one("SELECT user_id, verify_code FROM $table WHERE user_email='$user_email'");
58 | if (!$user) {
59 | msgbox('您还不是本站会员!', '?mod=register');
60 | } else {
61 | if ($verify_code != $user['verify_code']) {
62 | msgbox('校验代码错误或已失效!');
63 | }
64 | $DB->update($table, array('user_pass' => md5($user_pass)), array('user_id' => $user['user_id']));
65 |
66 | msgbox('恭喜!您的密码已重置成功!', '?mod=login');
67 | }
68 | }
69 | }
70 |
71 | smarty_output($tplfile);
72 | ?>
--------------------------------------------------------------------------------
/member/module/verify.php:
--------------------------------------------------------------------------------
1 | assign('site_name', $options['site_name']);
13 | $smarty->assign('site_url', $options['site_url']);
14 | $smarty->assign('user_email', $user_email);
15 | $smarty->assign('active_link', $active_link);
16 | $mailbody = $smarty->fetch('verify_mail.html');
17 |
18 | if (sendmail($user_email, '['.$options['site_name'].'] E-mail地址验证!', $mailbody)) {
19 | $DB->update($DB->table('users'), array('verify_code' => $verify_code, 'join_time' => time()), array('user_id' => $myself['user_id']));
20 | msgbox('验证邮件发送成功!', '?mod=home');
21 | } else {
22 | msgbox('验证邮件发送失败!请稍后再试……', '?mod=home');
23 | }
24 | }
25 | ?>
26 |
--------------------------------------------------------------------------------
/module/api.php:
--------------------------------------------------------------------------------
1 | 1) {
9 | $start = ($curpage - 1) * $pagesize;
10 | } else {
11 | $start = 0;
12 | $curpage = 1;
13 | }
14 |
15 | get_website_api($cate_id, $start, $pagesize);
16 | ?>
--------------------------------------------------------------------------------
/module/category.php:
--------------------------------------------------------------------------------
1 | table('categories');
8 |
9 | if (!$smarty->isCached($tempfile)) {
10 | $categories = get_categories();
11 |
12 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
13 | $smarty->assign('site_keywords', '开放分类,网址分类,目录分类,行业分类');
14 | $smarty->assign('site_description', '对网站进行很详细的分类,这样有助于帮你找到感兴趣的内容。');
15 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
16 | $smarty->assign('site_rss', get_rssfeed());
17 |
18 | $smarty->assign('pagename', $pagename);
19 | $smarty->assign('total', count($categories));
20 | $smarty->assign('categories', $categories);
21 | unset($categories);
22 | }
23 |
24 | smarty_output($tempfile);
25 | ?>
--------------------------------------------------------------------------------
/module/feedback.php:
--------------------------------------------------------------------------------
1 | caching = false;
9 |
10 | if (!$smarty->isCached($tempfile)) {
11 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
12 | $smarty->assign('site_keywords', '意见反馈,问题反馈,用户反馈,意见与建议');
13 | $smarty->assign('site_description', '您的意见和建议,将帮助我们改进产品和服务,欢迎您提出宝贵建议和意见!');
14 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
15 | $smarty->assign('site_rss', get_rssfeed());
16 | $smarty->assign('pagename', $pagename);
17 |
18 | if ($_POST['action'] == 'send') {
19 | $fb_nick = trim($_POST['nick']);
20 | $fb_email = trim($_POST['email']);
21 | $fb_content = trim($_POST['content']);
22 | $check_code = strtolower(trim($_POST['checkcode']));
23 |
24 | $fb_date = time();
25 | if (empty($fb_nick)) {
26 | msgbox('请输入昵称!');
27 | }
28 |
29 | if (empty($fb_email)) {
30 | msgbox('请输入电子邮件!');
31 | } else {
32 | if (!is_valid_email($fb_email)) {
33 | msgbox('请输入正确的电子邮件地址!');
34 | }
35 | }
36 |
37 | if (empty($fb_content) || strlen($fb_content) < 20) {
38 | msgbox('请输入意见内容,且长度不能小于20个字符!');
39 | }
40 |
41 | if (empty($check_code) || $check_code != $_SESSION['code']) {
42 | unset($_SESSION['code']);
43 | msgbox('您输入的验证码不正确,请重新输入!');
44 | }
45 |
46 | $data = array(
47 | 'fb_nick' => $fb_nick,
48 | 'fb_email' => $fb_email,
49 | 'fb_content' => $fb_content,
50 | 'fb_date' => $fb_date,
51 | );
52 |
53 | $DB->insert($DB->table('feedback'), $data);
54 | unset($_SESSION['code']);
55 |
56 | msgbox('您的意见已经提交,谢谢您对我们的支持!', './');
57 | }
58 | }
59 |
60 | smarty_output($tempfile);
61 | ?>
--------------------------------------------------------------------------------
/module/getdata.php:
--------------------------------------------------------------------------------
1 | query("UPDATE ".$DB->table('webdata')." SET web_utime='$update_time' WHERE web_id=".$web['web_id']);
20 | #server ip
21 | if ($type == 'ip') {
22 | $ip = get_serverip($web['web_url']);
23 | $ip = sprintf("%u", ip2long($ip));
24 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_ip='$ip' WHERE web_id=".$web['web_id']);
25 | }
26 |
27 | #google pagerank
28 | if ($type == 'grank') {
29 | $rank = get_pagerank($web['web_url']);
30 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_grank='$rank' WHERE web_id=".$web['web_id']);
31 | }
32 |
33 | #baidu pagerank
34 | if ($type == 'brank') {
35 | $rank = get_baidurank($web['web_url']);
36 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_brank='$rank' WHERE web_id=".$web['web_id']);
37 | }
38 |
39 | #sogou pagerank
40 | if ($type == 'srank') {
41 | $rank = get_sogourank($web['web_url']);
42 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_srank='$rank' WHERE web_id=".$web['web_id']);
43 | }
44 |
45 | #alexa rank
46 | if ($type == 'arank') {
47 | $rank = get_alexarank($web['web_url']);
48 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_arank='$rank' WHERE web_id=".$web['web_id']);
49 | }
50 | }
51 |
52 | #outstat
53 | if ($type == 'outstat') {
54 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_outstat=web_outstat+1, web_otime=".time()." WHERE web_id=".$web['web_id']);
55 | }
56 |
57 | #error
58 | if ($type == 'error') {
59 | $DB->query("UPDATE ".$DB->table('webdata')." SET web_errors=web_errors+1, web_utime=".time()." WHERE web_id=".$web['web_id']);
60 | }
61 | }
62 | ?>
63 |
--------------------------------------------------------------------------------
/module/index.php:
--------------------------------------------------------------------------------
1 | isCached($tempfile)) {
9 | $smarty->assign('site_title', $options['site_title']);
10 | $smarty->assign('site_keywords', $options['site_keywords']);
11 | $smarty->assign('site_description', $options['site_description']);
12 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
13 | $smarty->assign('site_rss', get_rssfeed());
14 | }
15 |
16 | smarty_output($tempfile);
17 | ?>
--------------------------------------------------------------------------------
/module/link.php:
--------------------------------------------------------------------------------
1 | table('links');
8 |
9 | $pagesize = 10;
10 | $curpage = intval($_GET['page']);
11 | if ($curpage > 1) {
12 | $start = ($curpage - 1) * $pagesize;
13 | } else {
14 | $start = 0;
15 | $curpage = 1;
16 | }
17 |
18 | if (!$smarty->isCached($tempfile)) {
19 | $smarty->assign('pagename', $pagename);
20 | $smarty->assign('site_title', $pagename.' - '.$options['site_title']);
21 | $smarty->assign('site_keywords', $options['site_keywords']);
22 | $smarty->assign('site_description', $options['site_description']);
23 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
24 | $smarty->assign('site_rss', get_rssfeed());
25 |
26 | $linklist = get_link_list('link_display = 1', 'link_id', 'DESC', $start, $pagesize);
27 | $total = $DB->get_count($table, $where);
28 | $showpage = showpage($pageurl, $total, $curpage, $pagesize);
29 |
30 | $smarty->assign('total', $total);
31 | $smarty->assign('linklist', $linklist);
32 | $smarty->assign('showpage', $showpage);
33 | unset($linklist);
34 | }
35 |
36 | smarty_output($tempfile);
37 | ?>
--------------------------------------------------------------------------------
/module/rssfeed.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/module/search.php:
--------------------------------------------------------------------------------
1 | table('website');
8 |
9 | //搜索页不缓存
10 | $smarty->caching = false;
11 |
12 | $pagesize = 10;
13 | $curpage = intval($_GET['page']);
14 | if ($curpage > 1) {
15 | $start = ($curpage - 1) * $pagesize;
16 | } else {
17 | $start = 0;
18 | $curpage = 1;
19 | }
20 |
21 | $strtype = strtolower(trim($_GET['type']));
22 | $keyword = addslashes(trim($_GET['query']));
23 |
24 | if (!$smarty->isCached($tempfile)) {
25 | $where = "a.web_status=3";
26 | if ($keyword) {
27 | $pageurl .= '&type='.$strtype.'&query='.urlencode($keyword);
28 |
29 | $smarty->assign('site_title', $keyword.' - '.$pagename.' - '.$options['site_name']);
30 | $smarty->assign('site_keywords', $keyword.',搜索结果,查询结果');
31 | $smarty->assign('site_description', '以下是与关键字(词)“'.$keyword.'”相关的结果。');
32 | $smarty->assign('site_path', get_sitepath().' » '.$pagename.' » '.$keyword.'');
33 | $smarty->assign('rss_feed', get_rssfeed());
34 |
35 | switch ($strtype) {
36 | case 'name' :
37 | $where = "w.web_name like '%$keyword%'";
38 | break;
39 | case 'url' :
40 | $where = "w.web_url like '%$keyword%'";
41 | break;
42 | case 'tags' :
43 | $where = "w.web_tags like '%$keyword%'";
44 | break;
45 | case 'intro' :
46 | $where = "w.web_intro like '%$keyword%'";
47 | default :
48 | $where = "w.web_name like '%$keyword%'";
49 | break;
50 | }
51 | }
52 |
53 | $websites = get_website_list($where, 'web_ctime', 'DESC', $start, $pagesize);
54 | $total = $DB->get_count($table.' w', $where);
55 | $showpage = showpage($pageurl, $total, $curpage, $pagesize);
56 |
57 | $smarty->assign('pagename', $pagename);
58 | $smarty->assign('category_list', get_categories());
59 | $smarty->assign('archives', get_archives());
60 | $smarty->assign('keyword', $keyword);
61 | $smarty->assign('total', $total);
62 | $smarty->assign('websites', $websites);
63 | $smarty->assign('showpage', $showpage);
64 | unset($websites);
65 | }
66 |
67 | smarty_output($tempfile, $cache_id);
68 | ?>
--------------------------------------------------------------------------------
/module/siteinfo.php:
--------------------------------------------------------------------------------
1 | table('webdata');
8 |
9 | $web_id = intval($_GET['wid']);
10 | $cache_id = $web_id;
11 |
12 | if (!$smarty->isCached($tempfile, $cache_id)) {
13 | $where = "a.web_status=3 AND a.web_id=$web_id";
14 | $web = get_one_website($where);
15 | if (!$web) {
16 | unset($web);
17 | redirect('./?mod=index');
18 | }
19 |
20 | $DB->query("UPDATE $table SET web_views=web_views+1 WHERE web_id=".$web['web_id']." LIMIT 1");
21 |
22 | $cate = get_one_category($web['cate_id']);
23 | $user = get_one_user($web['user_id']);
24 |
25 | $smarty->assign('site_title', $web['web_name'].' - '.$cate['cate_name'].' - '.$options['site_name']);
26 | $smarty->assign('site_keywords', !empty($web['web_tags']) ? $web['web_tags'] : $options['site_keywords']);
27 | $smarty->assign('site_description', !empty($web['web_intro']) ? $web['web_intro'] : $options['site_description']);
28 | $smarty->assign('site_path', get_sitepath($web['cate_id']).' » '.$pagename);
29 | $smarty->assign('site_rss', get_rssfeed($web['cate_id']));
30 |
31 | $smarty->assign('cate_id', $cate['cate_id']);
32 | $smarty->assign('cate_name', $cate['cate_name']);
33 | $smarty->assign('cate_keywords', $cate['cate_keywords']);
34 | $smarty->assign('cate_description', $cate['cate_description']);
35 |
36 | $web['web_furl'] = format_url($web['web_url']);
37 | $web['web_thumb'] = get_webthumb($web['web_url']);
38 | $web['web_ip'] = long2ip($web['web_ip']);
39 | $web['web_ctime'] = date('Y-m-d', $web['web_ctime']);
40 | $web['web_utime'] = date('Y-m-d', $web['web_utime']);
41 |
42 | /** tags */
43 | $web_tags = get_format_tags($web['web_tags']);
44 | $smarty->assign('web_tags', $web_tags);
45 | $smarty->assign('web', $web);
46 | $smarty->assign('user', $user);
47 | $smarty->assign('related_website', get_websites($web['cate_id'], 10, false, 'ctime'));
48 | }
49 |
50 | smarty_output($tempfile, $cache_id);
51 | ?>
--------------------------------------------------------------------------------
/module/sitemap.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/module/top.php:
--------------------------------------------------------------------------------
1 | isCached($tempfile)) {
9 | $smarty->assign('pagename', $pagename);
10 | $smarty->assign('site_title', $pagename.' - '.$options['site_name']);
11 | $smarty->assign('site_keywords', '网站热榜,网站TOP排行榜,热门网站排行,网站风云榜');
12 | $smarty->assign('site_description', '提供最新热门网站排行数据,让您及时了解那些信息最受关注。');
13 | $smarty->assign('site_path', get_sitepath().' » '.$pagename);
14 | $smarty->assign('site_rss', get_rssfeed());
15 | }
16 |
17 | smarty_output($tempfile);
18 | ?>
--------------------------------------------------------------------------------
/public/editor/license.txt:
--------------------------------------------------------------------------------
1 | http://www.kindsoft.net/license.php
--------------------------------------------------------------------------------
/public/editor/plugins/anchor/anchor.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | *******************************************************************************/
9 |
10 | KindEditor.plugin('anchor', function(K) {
11 | var self = this, name = 'anchor', lang = self.lang(name + '.');
12 | self.plugin.anchor = {
13 | edit : function() {
14 | var html = ['',
15 | '
',
16 | '',
17 | '',
18 | '
',
19 | '
'].join('');
20 | var dialog = self.createDialog({
21 | name : name,
22 | width : 300,
23 | title : self.lang(name),
24 | body : html,
25 | yesBtn : {
26 | name : self.lang('yes'),
27 | click : function(e) {
28 | self.insertHtml('').hideDialog().focus();
29 | }
30 | }
31 | });
32 | var div = dialog.div,
33 | nameBox = K('input[name="name"]', div);
34 | var img = self.plugin.getSelectedAnchor();
35 | if (img) {
36 | nameBox.val(unescape(img.attr('data-ke-name')));
37 | }
38 | nameBox[0].focus();
39 | nameBox[0].select();
40 | },
41 | 'delete' : function() {
42 | self.plugin.getSelectedAnchor().remove();
43 | }
44 | };
45 | self.clickToolbar(name, self.plugin.anchor.edit);
46 | });
47 |
--------------------------------------------------------------------------------
/public/editor/plugins/clearhtml/clearhtml.js:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * KindEditor - WYSIWYG HTML Editor for Internet
3 | * Copyright (C) 2006-2011 kindsoft.net
4 | *
5 | * @author Roddy
6 | * @site http://www.kindsoft.net/
7 | * @licence http://www.kindsoft.net/license.php
8 | *******************************************************************************/
9 |
10 | KindEditor.plugin('clearhtml', function(K) {
11 | var self = this, name = 'clearhtml';
12 | self.clickToolbar(name, function() {
13 | self.focus();
14 | var html = self.html();
15 | html = html.replace(/(
11 |
53 |
54 |
55 |
56 |
57 |