[parasy commit] r15 - in trunk/upload: . forumdata/cache_usr/f images/way inculde inculde/crons parasy plugins/no...

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 10, 2007, 11:08:33 PM11/10/07
to project...@googlegroups.com
Author: Saiccc
Date: Sat Nov 10 20:07:29 2007
New Revision: 15

Added:
trunk/upload/forumdata/cache_usr/f/
trunk/upload/images/way/bg_try.jpg (contents, props changed)
trunk/upload/images/way/table_multiple.png (contents, props changed)
trunk/upload/inculde/forum.func.php
trunk/upload/parasy/comment.php
trunk/upload/parasy/component_check.php
trunk/upload/parasy/stupid_stories.php
trunk/upload/parasy_channel.php
trunk/upload/parasy_geo.php
trunk/upload/parasy_m_view.php
trunk/upload/parasy_now_api.php
trunk/upload/parasy_operation.php
trunk/upload/parasy_section.php
trunk/upload/templates/babel/memcp_side.htm
trunk/upload/templates/babel/mobile_home.htm
trunk/upload/templates/babel/mobile_view.htm
Removed:
trunk/upload/component_check.php
trunk/upload/geo.php
trunk/upload/json_tab.php
trunk/upload/new_features.php
trunk/upload/now_api.php
trunk/upload/operation.php
trunk/upload/section.php
trunk/upload/stupid_stories.php
Modified:
trunk/upload/.htaccess
trunk/upload/inculde/common.inc.php
trunk/upload/inculde/crons/parasy_stats_daily.inc.php
trunk/upload/inculde/global.func.php
trunk/upload/inculde/newreply.inc.php
trunk/upload/logging.php
trunk/upload/memcp.php
trunk/upload/my.php
trunk/upload/parasy.php
trunk/upload/parasy/ParasyCache.php
trunk/upload/parasy/ParasyCore.php
trunk/upload/parasy/ParasySettings.inc.php
trunk/upload/plugins/now/now.inc.php
trunk/upload/templates/babel/css.htm
trunk/upload/templates/babel/dashboard.htm
trunk/upload/templates/babel/footer.htm
trunk/upload/templates/babel/header.htm
trunk/upload/templates/babel/i_fav.htm
trunk/upload/templates/babel/login_wap.htm
trunk/upload/templates/babel/memcp_navbar.htm
trunk/upload/templates/babel/now_wap.htm
trunk/upload/templates/babel/showmessage_wap.htm
trunk/upload/templates/babel/topic.htm
trunk/upload/templates/css/css_babel.css
trunk/upload/viewpro.php

Log:
Forum Mobile, New UI, More Useful Sidebar, Bug fixed...

Modified: trunk/upload/.htaccess
==============================================================================
--- trunk/upload/.htaccess (original)
+++ trunk/upload/.htaccess Sat Nov 10 20:07:29 2007
@@ -1,108 +1,101 @@
RewriteEngine On
RewriteBase /bbs

-RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1
-RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
-RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
-RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2
-RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
-
-RewriteRule ^music-([0-9]+)-([a-z0-9\-]+)\.html$ music.php?tid=$1&sv=$2
-RewriteRule ^u-([0-9]+)\.html$ viewpro.php?uid=$1
-RewriteRule ^user-(.+)\.html$ viewpro.php?username=$1
-
-RewriteRule ^u/(.*)$ viewpro.php?uid=$1
-RewriteRule ^thread/([0-9]+)/([0-9]+)/([0-9]+)$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
-RewriteRule ^forum/([0-9]+)/([0-9]+)$ forumdisplay.php?fid=$1&page=$2
-RewriteRule ^channel/([0-9]*).html$ channel.php?channel_id=$1 [L]
-
-RewriteRule ^u/(username|uid)/(.*)$ viewpro.php?$1=$2
-RewriteRule ^go/([a-zA-Z0-9\-]+)$ forumdisplay.php?name=$1
-RewriteRule ^go/([a-zA-Z0-9\-]+)/$ forumdisplay.php?name=$1
-
-RewriteRule ^geo/(.+)$ geo.php?action=geo_home&geo=$1 [L]
-RewriteRule ^user/move.nnm$ geo.php?action=user_move
-RewriteRule ^user/move/(.+)$ geo.php?action=user_move&geo=$1
-RewriteRule ^user/settle/([a-zA-Z0-9\-\_]+)$ geo.php?action=settle&geo=$1
-RewriteRule ^set/going/(.+)$ geo.php?action=set_going&geo=$1 [L]
-RewriteRule ^set/been/(.+)$ geo.php?action=set_been&geo=$1 [L]
-RewriteRule ^revert/going/(.+)$ geo.php?action=revert_going&geo=$1 [L]
-RewriteRule ^revert/been/(.+)$ geo.php?action=revert_been&geo=$1 [L]
-
-RewriteRule ^newthread-([0-9]+)-([0-9]+)\.html$ post.php?action=newthread&fid=$1&extra=page%3D$2
-RewriteRule ^reply-([0-9]+)-([0-9]+)-([0-9]+)\.html$ post.php?action=reply&fid=$1&tid=$2&extra=page%3D$3
-RewriteRule ^redirect-([0-9]+)\.html$ redirect.php?tid=$1&goto=lastpost#lastpost
-RewriteRule ^next-([0-9]+)-([0-9]+)\.html$ redirect.php?fid=$1&tid=$2&goto=nextoldset
-RewriteRule ^pre-([0-9]+)-([0-9]+)\.html$ redirect.php?fid=$1&tid=$2&goto=nextnewset
-RewriteRule ^fav-(tid|fid)-([0-9]+)\.html$ my.php?item=favorites&$1=$2
-RewriteRule ^cat-([0-9]+)\.html$ section.php?gid=$1
-RewriteRule ^blog-([0-9]+)\.html$ blog.php?uid=$1
-RewriteRule ^mytopic-([0-9]+)\.html$ search.php?srchuid=$1&mytopics=yes&searchsubmit=yes
-RewriteRule ^fresh-([0-9]+)\.html$ search.php?srchfrom=$1&searchsubmit=yes
-RewriteRule ^buddy-add-([0-9]+)\.html$ memcp.php?action=buddylist&newbuddyid=$1&buddysubmit=yes
-RewriteRule ^send-pm-([0-9]+)\.html$ pm.php?action=send&uid=$1
-RewriteRule ^view-pm-([0-9]+)\.html$ pm.php?action=view&pmid=$1
-
-RewriteRule ^recv/savepoint.nnm$ operation.php?type=svp&operation=new
-RewriteRule ^recv/now.nnm$ plugin.php?submit=yes
-RewriteRule ^recv/dashboard-chl.nnm$ operation.php?type=chl&operation=new
-
-RewriteRule ^del/now/([0-9]+)$ plugin.php?identifier=now&module=now&action=del&now_id=$1
-RewriteRule ^del/buddy/([0-9]+)$ memcp.php?action=buddylist&delete[]=$1&buddysubmit=yes
-RewriteRule ^del/savepoint/([0-9]+)$ operation.php?type=svp&operation=del&savepoint_id=$1
-RewriteRule ^del/chl/([0-9]+)$ operation.php?type=chl&operation=del&chl_id=$1
-
-RewriteRule ^printable-([0-9]+)\.html$ viewthread.php?action=printable&tid=$1
-RewriteRule ^emailfriend-([0-9]+)\.html$ misc.php?action=emailfriend&tid=$1
-
-RewriteRule ^edit-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ post.php?action=edit&fid=$1&tid=$2&pid=$3&page=$4
-RewriteRule ^quote-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ post.php?action=reply&fid=$1&tid=$2&repquote=$3&page=$4
-RewriteRule ^rate-([0-9]+)-([0-9]+)-([0-9]+)\.html$ misc.php?action=rate&tid=$1&pid=$2&page=$3
-RewriteRule ^removerate-([0-9]+)-([0-9]+)-([0-9]+)\.html$ misc.php?action=removerate&tid=$1&pid=$2&page=$3
-
-RewriteRule ^online.html$ member.php?action=online
-RewriteRule ^member.html$ member.php?action=list
-RewriteRule ^new_features.html$ new_features.php
-RewriteRule ^about$ new_features.php
-
-RewriteRule ^passwd.nnm$ member.php?action=lostpasswd
-RewriteRule ^login.nnm$ logging.php?action=login
-RewriteRule ^login-db.nnm$ logging.php?action=login&dashboard=1
-RewriteRule ^signup.nnm$ register.php
-RewriteRule ^digest.nnm$ digest.php
-RewriteRule ^logout-([^\/]+).nnm$ logging.php?action=logout&formhash=$1
-RewriteRule ^pm.nnm$ pm.php
-RewriteRule ^search.nnm$ search.php
-RewriteRule ^favorite.nnm$ my.php?item=favorites&type=thread
-RewriteRule ^mark.nnm$ member.php?action=markread
-RewriteRule ^rules.nnm$ faq.php?page=custom#0
-RewriteRule ^faq.nnm$ faq.php
-RewriteRule ^session/stats.nnm$ session.php
-
-RewriteRule ^memcp.nnm$ memcp.php
-RewriteRule ^modify.nnm$ memcp.php?action=profile
-RewriteRule ^buddylist.nnm$ memcp.php?action=buddylist
-RewriteRule ^usergroups.nnm$ memcp.php?action=usergroups
-RewriteRule ^credits.nnm$ memcp.php?action=credits
-RewriteRule ^credits-exchange.nnm$ memcp.php?action=credits&operation=exchange
-RewriteRule ^credits-transfer.nnm$ memcp.php?action=credits&operation=transfer
-RewriteRule ^credits-addfunds.nnm$ memcp.php?action=credits&operation=addfunds
-RewriteRule ^credits-log.nnm$ memcp.php?action=credits&operation=creditslog
-RewriteRule ^credits-paymentlog.nnm$ memcp.php?action=credits&operation=paymentlog
-RewriteRule ^credits-incomelog.nnm$ memcp.php?action=credits&operation=incomelog
-RewriteRule ^credits-rewardpaylog.nnm$ memcp.php?action=credits&operation=rewardpaylog
-RewriteRule ^credits-rewardincomelog.nnm$ memcp.php?action=credits&operation=rewardincomelog
-
-RewriteRule ^feed/now$ now_api.php?action=feed&type=public
-
-RewriteRule ^now$ plugin.php?identifier=now&module=now&action=index
-RewriteRule ^now/$ plugin.php?identifier=now&module=now&action=index
-RewriteRule ^now/([^\/]+)$ plugin.php?identifier=now&module=now&author=$1
-RewriteRule ^now/([^\/]+)/friends$ plugin.php?identifier=now&module=now&action=friends&author=$1
-RewriteRule ^now/([^\/]+)/([0-9]+)$ plugin.php?identifier=now&module=now&author=$1&page=$2
-RewriteRule ^now/([^\/]+)/stats$ plugin.php?identifier=now&module=now&action=stats&author=$1
-RewriteRule ^now/([^\/]+)/stats/xml$ now_api.php?action=stats_xml&type=data&author=$1
-RewriteRule ^now/([^\/]+)/stats/xml/set$ now_api.php?action=stats_xml&type=setting&author=$1
+RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1 [L]
+RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$
forumdisplay.php?fid=$1&page=$2 [L]
+RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$
viewthread.php?tid=$1&extra=page\%3D$3&page=$2 [L]
+RewriteRule ^profile-(username|uid)-(.+)\.html$ viewpro.php?$1=$2 [L]
+RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2 [L]
+
+RewriteRule ^music-([0-9]+)-([a-z0-9\-]+)\.html$
music.php?tid=$1&sv=$2 [L]
+RewriteRule ^u-([0-9]+)\.html$ viewpro.php?uid=$1 [L]
+RewriteRule ^user-(.+)\.html$ viewpro.php?username=$1 [L]
+
+RewriteRule ^u/(.*)$ viewpro.php?uid=$1 [L]
+RewriteRule ^thread/([0-9]+)/([0-9]+)/([0-9]+)$
viewthread.php?tid=$1&extra=page\%3D$3&page=$2 [L]
+RewriteRule ^forum/([0-9]+)/([0-9]+)$ forumdisplay.php?fid=$1&page=$2 [L]
+RewriteRule ^channel/([0-9]*).html$ parasy_channel.php?channel_id=$1 [L]
+
+RewriteRule ^u/(username|uid)/(.*)$ viewpro.php?$1=$2 [L]
+RewriteRule ^go/([a-zA-Z0-9\-]+)$ forumdisplay.php?name=$1 [L]
+RewriteRule ^go/([a-zA-Z0-9\-]+)/$ forumdisplay.php?name=$1 [L]
+
+RewriteRule ^geo/(.+)$ parasy_geo.php?action=geo_home&geo=$1 [L]
+RewriteRule ^user/move.nnm$ parasy_geo.php?action=user_move [L]
+RewriteRule ^user/move/(.+)$ parasy_geo.php?action=user_move&geo=$1 [L]
+RewriteRule ^user/settle/([a-zA-Z0-9\-\_]+)$
parasy_geo.php?action=settle&geo=$1 [L]
+RewriteRule ^set/going/(.+)$ parasy_geo.php?action=set_going&geo=$1 [L]
+RewriteRule ^set/been/(.+)$ parasy_geo.php?action=set_been&geo=$1 [L]
+RewriteRule ^revert/going/(.+)$
parasy_geo.php?action=revert_going&geo=$1 [L]
+RewriteRule ^revert/been/(.+)$
parasy_geo.php?action=revert_been&geo=$1 [L]
+
+RewriteRule ^newthread-([0-9]+)-([0-9]+)\.html$
post.php?action=newthread&fid=$1&extra=page%3D$2 [L]
+RewriteRule ^reply-([0-9]+)-([0-9]+)-([0-9]+)\.html$
post.php?action=reply&fid=$1&tid=$2&extra=page%3D$3 [L]
+RewriteRule ^redirect-([0-9]+)\.html$
redirect.php?tid=$1&goto=lastpost#lastpost [L]
+RewriteRule ^next-([0-9]+)-([0-9]+)\.html$
redirect.php?fid=$1&tid=$2&goto=nextoldset [L]
+RewriteRule ^pre-([0-9]+)-([0-9]+)\.html$
redirect.php?fid=$1&tid=$2&goto=nextnewset [L]
+RewriteRule ^fav-(tid|fid)-([0-9]+)\.html$ my.php?item=favorites&$1=$2 [L]
+RewriteRule ^cat-([0-9]+)\.html$ parasy_section.php?gid=$1 [L]
+RewriteRule ^blog-([0-9]+)\.html$ blog.php?uid=$1 [L]
+RewriteRule ^mytopic-([0-9]+)\.html$
search.php?srchuid=$1&mytopics=yes&searchsubmit=yes [L]
+RewriteRule ^fresh-([0-9]+)\.html$
search.php?srchfrom=$1&searchsubmit=yes [L]
+RewriteRule ^buddy-add-([0-9]+)\.html$
memcp.php?action=buddylist&newbuddyid=$1&buddysubmit=yes [L]
+RewriteRule ^send-pm-([0-9]+)\.html$ pm.php?action=send&uid=$1 [L]
+RewriteRule ^view-pm-([0-9]+)\.html$ pm.php?action=view&pmid=$1 [L]
+
+RewriteRule ^recv/now.nnm$ plugin.php?submit=yes [L]
+RewriteRule ^del/now/([0-9]+)$
plugin.php?identifier=now&module=now&action=del&now_id=$1 [L]
+RewriteRule ^del/buddy/([0-9]+)$
memcp.php?action=buddylist&delete[]=$1&buddysubmit=yes [L]
+
+RewriteRule ^printable-([0-9]+)\.html$
viewthread.php?action=printable&tid=$1 [L]
+RewriteRule ^emailfriend-([0-9]+)\.html$
misc.php?action=emailfriend&tid=$1 [L]
+
+RewriteRule ^edit-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$
post.php?action=edit&fid=$1&tid=$2&pid=$3&page=$4 [L]
+RewriteRule ^quote-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$
post.php?action=reply&fid=$1&tid=$2&repquote=$3&page=$4 [L]
+RewriteRule ^rate-([0-9]+)-([0-9]+)-([0-9]+)\.html$
misc.php?action=rate&tid=$1&pid=$2&page=$3 [L]
+RewriteRule ^removerate-([0-9]+)-([0-9]+)-([0-9]+)\.html$
misc.php?action=removerate&tid=$1&pid=$2&page=$3 [L]
+
+RewriteRule ^online.html$ member.php?action=online [L]
+RewriteRule ^member.html$ member.php?action=list [L]
+
+RewriteRule ^passwd.nnm$ member.php?action=lostpasswd [L]
+RewriteRule ^login.nnm$ logging.php?action=login [L]
+RewriteRule ^login-db.nnm$ logging.php?action=login&dashboard=1 [L]
+RewriteRule ^login-m.nnm$ logging.php?action=login&mobile=1 [L]
+RewriteRule ^signup.nnm$ register.php [L]
+RewriteRule ^digest.nnm$ digest.php [L]
+RewriteRule ^logout-([^\/]+).nnm$
logging.php?action=logout&formhash=$1 [L]
+RewriteRule ^pm.nnm$ pm.php [L]
+RewriteRule ^search.nnm$ search.php [L]
+RewriteRule ^favorite.nnm$ my.php?item=favorites&type=thread [L]
+RewriteRule ^mark.nnm$ member.php?action=markread [L]
+RewriteRule ^rules.nnm$ faq.php?page=custom#0 [L]
+RewriteRule ^faq.nnm$ faq.php [L]
+
+RewriteRule ^memcp.nnm$ memcp.php [L]
+RewriteRule ^modify.nnm$ memcp.php?action=profile [L]
+RewriteRule ^buddylist.nnm$ memcp.php?action=buddylist [L]
+RewriteRule ^usergroups.nnm$ memcp.php?action=usergroups [L]
+RewriteRule ^credits.nnm$ memcp.php?action=credits [L]
+RewriteRule ^credits-exchange.nnm$
memcp.php?action=credits&operation=exchange [L]
+RewriteRule ^credits-transfer.nnm$
memcp.php?action=credits&operation=transfer [L]
+RewriteRule ^credits-addfunds.nnm$
memcp.php?action=credits&operation=addfunds [L]
+RewriteRule ^credits-log.nnm$
memcp.php?action=credits&operation=creditslog [L]
+RewriteRule ^credits-paymentlog.nnm$
memcp.php?action=credits&operation=paymentlog [L]
+RewriteRule ^credits-incomelog.nnm$
memcp.php?action=credits&operation=incomelog [L]
+RewriteRule ^credits-rewardpaylog.nnm$
memcp.php?action=credits&operation=rewardpaylog [L]
+RewriteRule ^credits-rewardincomelog.nnm$
memcp.php?action=credits&operation=rewardincomelog [L]
+
+RewriteRule ^feed/now$ parasy_now_api.php?action=feed&type=public [L]
+
+RewriteRule ^now$ plugin.php?identifier=now&module=now&action=index [L]
+RewriteRule ^now/$ plugin.php?identifier=now&module=now&action=index [L]
+RewriteRule ^now/([^\/]+)$
plugin.php?identifier=now&module=now&author=$1 [L]
+RewriteRule ^now/([^\/]+)/friends$
plugin.php?identifier=now&module=now&action=friends&author=$1 [L]
+RewriteRule ^now/([^\/]+)/([0-9]+)$
plugin.php?identifier=now&module=now&author=$1&page=$2 [L]
+RewriteRule ^now/([^\/]+)/stats$
plugin.php?identifier=now&module=now&action=stats&author=$1 [L]
+RewriteRule ^now/([^\/]+)/stats/xml$
parasy_now_api.php?action=stats_xml&type=data&author=$1 [L]
+RewriteRule ^now/([^\/]+)/stats/xml/set$
parasy_now_api.php?action=stats_xml&type=setting&author=$1 [L]
RewriteRule ^js/now/([^\/]+)$
plugin.php?identifier=now&module=now&action=js&u=$1 [L]
RewriteRule ^js/now/([^\/]+)/gbk$
plugin.php?identifier=now&module=now&action=js&u=$1&oe=gbk [L]
RewriteRule ^ojs/now/$ plugin.php?identifier=now&module=now&action=ojs [L]
@@ -114,17 +107,32 @@
RewriteRule ^oimg/now/([0-9]+)$
plugin.php?identifier=now&module=now&action=img_set&img_id=$1 [L]

RewriteRule ^img/now/([^\/]+)$
plugin.php?identifier=now&module=now&action=img&u=$1 [L]
-RewriteRule ^im$ plugin.php?identifier=now&module=now&action=im
+RewriteRule ^im$ plugin.php?identifier=now&module=now&action=im [L]

-RewriteRule ^now-([0-9]+).html$ plugin.php?identifier=now&module=now&action=view&now_id=$1
-RewriteRule ^now-new.html$ plugin.php?identifier=now&module=now&action=new
+RewriteRule ^now-([0-9]+).html$
plugin.php?identifier=now&module=now&action=view&now_id=$1 [L]
+RewriteRule ^now-new.html$
plugin.php?identifier=now&module=now&action=new [L]

-RewriteRule ^json/home/tab/latest$ json_tab.php?m=json_home_tab_latest [L]
-RewriteRule ^json/now/latest$ json_tab.php?m=json_now_latest [L]
-RewriteRule ^json/dashboard/everyone$ json_tab.php?m=json_timeline [L]
-
-RewriteRule ^dashboard$ dashboard.php
-RewriteRule ^topic-dashboard-([0-9]+)\.html$ viewthread.php?tid=$1&dashboard=1
+RewriteRule ^json/home/tab/latest$
parasy_json_tab.php?m=json_home_tab_latest [L]
+RewriteRule ^json/now/latest$ parasy_json_tab.php?m=json_now_latest [L]
+RewriteRule ^json/dashboard/everyone$
parasy_json_tab.php?m=json_timeline [L]
+
+RewriteRule ^dashboard$ parasy_dashboard.php [L]
+RewriteRule ^topic-dashboard-([0-9]+)\.html$
viewthread.php?tid=$1&dashboard=1 [L]
+
+RewriteRule ^recv/savepoint.nnm$
parasy_operation.php?type=svp&operation=new [L]
+RewriteRule ^recv/dashboard-chl.nnm$
parasy_operation.php?type=chl&operation=new [L]
+RewriteRule ^del/savepoint/([0-9]+)$
parasy_operation.php?type=svp&operation=del&savepoint_id=$1 [L]
+RewriteRule ^del/chl/([0-9]+)$
parasy_operation.php?type=chl&operation=del&chl_id=$1 [L]

RewriteRule ^topic/latest.html$ parasy.php?action=topic_latest [L]
RewriteRule ^topic/answered.html$ parasy.php?action=topic_answered [L]
+RewriteRule ^session/stats.nnm$ parasy.php?action=session [L]
+RewriteRule ^new_features.html$ parasy.php?action=about [L]
+RewriteRule ^about$ parasy.php?action=about [L]
+
+RewriteRule ^m$ parasy.php?action=mobile_home [L]
+RewriteRule ^m/$ parasy.php?action=mobile_home [L]
+RewriteRule ^m/shuffle$ parasy.php?action=mobile_home&shuffle=1 [L]
+RewriteRule ^m/([0-9]+)$ parasy.php?action=mobile_home&page=$1 [L]
+RewriteRule ^t/([0-9]+)/([0-9]+)/([0-9]+)$
parasy_m_view.php?tid=$1&p_page=$2&page=$3 [L]
+RewriteRule ^mobile-post-([0-9]+)-([0-9]+)-([0-9]+)\.html$ post.php?action=reply&fid=$1&tid=$2&p_page=$3&replysubmit=yes&mobile=1[L]
\ No newline at end of file

Added: trunk/upload/images/way/bg_try.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/upload/images/way/table_multiple.png
==============================================================================
Binary file. No diff available.

Modified: trunk/upload/inculde/common.inc.php
==============================================================================
--- trunk/upload/inculde/common.inc.php (original)
+++ trunk/upload/inculde/common.inc.php Sat Nov 10 20:07:29 2007
@@ -32,6 +32,7 @@
/* Parasy || Core Files */
require_once DISCUZ_ROOT.'./parasy/ParasySettings.inc.php';
require_once DISCUZ_ROOT.'./parasy/ParasyCore.php';
+require_once DISCUZ_ROOT.'./parasy/ParasyCache.php';
require_once DISCUZ_ROOT.'./parasy/Geo.func.php';

require_once DISCUZ_ROOT.'./include/global.func.php';
@@ -396,5 +397,15 @@
/* Parasy || Cache Files */
@include DISCUZ_ROOT.'./forumdata/cache/cache_lastmembers.php';
@include DISCUZ_ROOT.'./forumdata/cache/cache_parasy_stats.php';
+
+/* Parasy || User Files */
+@include(DISCUZ_ROOT.'./forumdata/cache_usr/f/user_fav_'.$discuz_uid.'.php');
+if(@!include('forumdata/cache_usr/f/user_fav_'.$discuz_uid.'.php')){
+ $fav = fav_update($discuz_uid);
+}
+@include(DISCUZ_ROOT.'./forumdata/cache_usr/b/user_buddy_'.$discuz_uid.'.php');
+if(@!include('forumdata/cache_usr/b/user_buddy_'.$discuz_uid.'.php')){
+ $buddy = buddy_update($discuz_uid);
+}

?>

Modified: trunk/upload/inculde/crons/parasy_stats_daily.inc.php
==============================================================================
--- trunk/upload/inculde/crons/parasy_stats_daily.inc.php (original)
+++ trunk/upload/inculde/crons/parasy_stats_daily.inc.php Sat Nov 10
20:07:29 2007
@@ -8,9 +8,6 @@
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
-error_reporting(E_ALL);
-
-require_once DISCUZ_ROOT.'./parasy/ParasyCache.php';

$data = array();
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}posts");
@@ -22,6 +19,7 @@
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}favorites");
$data['fav_total'] = $db->result($query, 0);

-nmwritetocache('parasy_stats', '', nmgetcachevars($data),'','cache');
+require_once DISCUZ_ROOT.'./include/cache.func.php';
+writetocache('parasy_stats', '', getcachevars($data));

?>

Added: trunk/upload/inculde/forum.func.php
==============================================================================
--- (empty file)
+++ trunk/upload/inculde/forum.func.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,184 @@
+<?php
+
+/*
+ [Discuz!] (C)2001-2007 Comsenz Inc.
+ This is NOT a freeware, use is subject to license terms
+
+ $RCSfile: forum.func.php,v $
+ $Revision: 1.31.2.2 $
+ $Date: 2007/03/21 15:52:38 $
+*/
+
+if(!defined('IN_DISCUZ')) {
+ exit('Access Denied');
+}
+
+function checkautoclose() {
+ global $timestamp, $forum, $thread;
+
+ if(!$forum['ismoderator'] && $forum['autoclose']) {
+ $closedby = $forum['autoclose'] > 0 ? 'dateline' : 'lastpost';
+ $forum['autoclose'] = abs($forum['autoclose']);
+ if($timestamp - $thread[$closedby] > $forum['autoclose'] * 86400) {
+ return 'post_thread_closed_by_'.$closedby;
+ }
+ }
+ return FALSE;
+}
+
+function forum(&$forum) {
+ global $_DCOOKIE, $timestamp, $timeformat, $dateformat, $discuz_uid,
$groupid, $lastvisit, $moddisplay, $timeoffset, $hideprivate, $onlinehold;
+
+ if(!$forum['viewperm'] || ($forum['viewperm'] &&
forumperm($forum['viewperm'])) || !empty($forum['allowview']) ||
(isset($forum['users']) && strstr($forum['users'], "\t$discuz_uid\t"))) {
+ $forum['permission'] = 2;
+ } elseif(!$hideprivate) {
+ $forum['permission'] = 1;
+ } else {
+ return FALSE;
+ }
+
+ if($forum['icon']) {
+ if(strstr($forum['icon'], ',')) {
+ $flash = explode(",", $forum['icon']);
+ $forum['icon'] = "<a
href=\"forumdisplay.php?fid=$forum[fid]\"><embed
src=\"".trim($flash[0])."\" width=\"".trim($flash[1])."\"
height=\"".trim($flash[2])."\" type=\"application/x-shockwave-flash\" align=\"left\"></embed></a>";
+ } else {
+ $forum['icon'] = "<a href=\"forumdisplay.php?fid=$forum[fid]\"><img
src=\"$forum[icon]\" align=\"left\" alt=\"\" border=\"0\" /></a>";
+ }
+ }
+
+ $lastpost = array('tid' => 0, 'dateline' => 0, 'subject'
=> '', 'author' => '');
+ //list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'],
$lastpost['author']) = is_array($forum['lastpost']) ?
$forum['lastpost'] : explode("\t", $forum['lastpost']);
+ $forum['folder'] = '<img
src="'.IMGDIR.'/'.((isset($_DCOOKIE['fid'.$forum['fid']]) &&
$_DCOOKIE['fid'.$forum['fid']] > $lastvisit ?
$_DCOOKIE['fid'.$forum['fid']] : $lastvisit) <
$lastpost['dateline'] ? 'red_' : '').'forum.gif" alt="" />';
+
+ if($lastpost['tid']) {
+ $lastpost['dateline'] = gmdate("$dateformat $timeformat",
$lastpost['dateline'] + $timeoffset * 3600);
+ if($lastpost['author']) {
+ $lastpost['author'] = '<a href="space.php?username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
+ }
+ $forum['lastpost'] = $lastpost;
+ } else {
+ $forum['lastpost'] = '';
+ }
+
+ $forum['moderators'] = moddisplay($forum['moderators'], $moddisplay, !empty($forum['inheritedmod'])).'&nbsp;';
+
+ if(isset($forum['subforums'])) {
+ $forum['subforums'] = implode(', ', $forum['subforums']);
+ }
+
+ return TRUE;
+}
+
+function forumselect($groupselectable = FALSE, $tableformat = 0) {
+ global $_DCACHE, $discuz_uid, $groupid, $fid, $gid, $indexname;
+
+ if(!isset($_DCACHE['forums'])) {
+ require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
+ }
+
+ $forumlist = $tableformat ? '' : '<optgroup label="&nbsp;">';
+ foreach($_DCACHE['forums'] as $forum) {
+ if($forum['type'] == 'group') {
+ if($tableformat) {
+ $forumlist .= '<tr><td class="popupmenu_option"><a'.($gid ==
$forum['fid'] ? ' class="bold"' : '').' href="'.$indexname.'?gid='.$forum['fid'].'">'.$forum['name'].'</a></td></tr>';
+ } else {
+ $forumlist .= $groupselectable ? '<option
value="'.$forum['fid'].'">'.$forum['name'].'</option>' : '</optgroup><optgroup label="'.$forum['name'].'">';
+ }
+ $visible[$forum['fid']] = true;
+ } elseif($forum['type'] == 'forum' && isset($visible[$forum['fup']])
&& (!$forum['viewperm'] || ($forum['viewperm'] &&
forumperm($forum['viewperm'])) ||
strstr($forum['users'], "\t$discuz_uid\t"))) {
+ if($tableformat) {
+ $forumlist .= '<tr><td class="popupmenu_option">&nbsp; <a'.($fid
== $forum['fid'] ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$forum['fid'].'">&gt; '.$forum['name'].'</a></td></tr>';
+ } else {
+ $forumlist .= '<option value="'.$forum['fid'].'">&nbsp; &gt; '.$forum['name'].'</option>';
+ }
+ $visible[$forum['fid']] = true;
+ } elseif($forum['type'] == 'sub' && isset($visible[$forum['fup']])
&& (!$forum['viewperm'] || ($forum['viewperm'] &&
forumperm($forum['viewperm'])) ||
strstr($forum['users'], "\t$discuz_uid\t"))) {
+ if($tableformat) {
+ $forumlist .= '<tr><td class="popupmenu_option">&nbsp; &nbsp;
&nbsp; <a'.($fid == $forum['fid'] ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$forum['fid'].'">&gt; '.$forum['name'].'</a></td></tr>';
+ } else {
+ $forumlist .= '<option value="'.$forum['fid'].'">&nbsp; &nbsp;
&nbsp; &gt; '.$forum['name'].'</option>';
+ }
+ }
+ }
+ $forumlist .= $tableformat ? '' : '</optgroup>';
+ $forumlist = $tableformat ? $forumlist : str_replace('<optgroup
label="&nbsp;"></optgroup>', '', $forumlist);
+
+ return $forumlist;
+}
+
+function visitedforums() {
+ global $_DCACHE, $_DCOOKIE, $forum;
+
+ $count = 0;
+ $visitedforums = '';
+ $fidarray = array($forum['fid']);
+ foreach(explode('D', $_DCOOKIE['visitedfid']) as $fid) {
+ if(isset($_DCACHE['forums'][$fid]) && !in_array($fid, $fidarray)) {
+ $fidarray[] = $fid;
+ if($fid != $forum['fid']) {
+ $visitedforums .= '<option value="'.$fid.'">'.$_DCACHE['forums'][$fid]['name'].'</option>';
+ if(++$count >= $GLOBALS['visitedforums']) {
+ break;
+ }
+
+ }
+ }
+ }
+ if(($visitedfid = implode('D', $fidarray)) !=
$_DCOOKIE['visitedfid']) {
+ dsetcookie('visitedfid', $visitedfid, 2592000);
+ }
+ return $visitedforums;
+}
+
+function moddisplay($moderators, $type, $inherit = 0) {
+ if($type == 'selectbox') {
+ $modlist .= '<img src="images/common/online_moderator.gif"
class="absmiddle" alt="" /><select '.($moderators ? '' : 'disabled').'
name="modlist" style="width: 100px'.($inherit ? '; font-weight: bold"' : '').'">';
+
+ if($moderators) {
+ foreach(explode("\t", $moderators) as $moderator) {
+ $modlist .= '<option value="'.rawurlencode($moderator).'">'.$moderator.'</option>';
+ }
+ } else {
+ $modlist .= '<option></option>';
+ }
+ $modlist .= '</select>';
+ return $modlist;
+ } else {
+ if($moderators) {
+ $modlist = $comma = '';
+ foreach(explode("\t", $moderators) as $moderator) {
+ $modlist .= $comma.'<a
href="space.php?username='.rawurlencode($moderator).'">'.($inherit ?
$moderator : $moderator).'</a>';
+ $comma = ', ';
+ }
+ } else {
+ $modlist = '';
+ }
+ return $modlist;
+ }
+}
+
+function getcacheinfo($tid) {
+ global $timestamp, $cachethreadlife, $cachethreaddir;
+ $tid = intval($tid);
+ $cachethreaddir2 = DISCUZ_ROOT.'./'.$cachethreaddir;
+ $cache = array('filemtime' => 0, 'filename' => '');
+ $tidmd5 = substr(md5($tid), 3);
+ $fulldir = $cachethreaddir2.'/'.$tidmd5[0].'/'.$tidmd5[1].'/'.$tidmd5[2].'/';
+ $cache['filename'] = $fulldir.$tid.'.htm';
+ if(file_exists($cache['filename'])) {
+ $cache['filemtime'] = filemtime($cache['filename']);
+ } else {
+ if(!is_dir($fulldir)) {
+ for($i=0; $i<3; $i++) {
+ $cachethreaddir2 .= '/'.$tidmd5{$i};
+ if(!is_dir($cachethreaddir2)) {
+ @mkdir($cachethreaddir2, 0777);
+ @touch($cachethreaddir2.'/index.htm');
+ }
+ }
+ }
+ }
+ return $cache;
+}
+
+?>
\ No newline at end of file

Modified: trunk/upload/inculde/global.func.php
==============================================================================
--- trunk/upload/inculde/global.func.php (original)
+++ trunk/upload/inculde/global.func.php Sat Nov 10 20:07:29 2007
@@ -995,5 +995,4 @@
$supe['db']->connect($supe['dbhost'], $supe['dbuser'],
$supe['dbpw'], $supe['dbname'], $supe['pconnect']);
}
}
-//Random Color
?>

Modified: trunk/upload/inculde/newreply.inc.php
==============================================================================
--- trunk/upload/inculde/newreply.inc.php (original)
+++ trunk/upload/inculde/newreply.inc.php Sat Nov 10 20:07:29 2007
@@ -245,6 +245,8 @@

if ($dashboard) {
showmessage('post_reply_succeed', $bbsdir."/topic-dashboard-$tid.html#pid$pid");
+ } elseif ($mobile) {
+ wapshowmessage('post_reply_succeed',
$bbsdir."/t/$tid/$p_page/".(@ceil(($thread['replies'] + 2) / M_PER_PAGE)));
} else {
if(!$allowuseblog || empty($isblog) ) {

showmessage('post_reply_succeed', "viewthread.php?tid=$tid&pid=$pid&page=".(@ceil(($thread['replies']
+ 2) / $ppp))."&extra=$extra#pid$pid");

Modified: trunk/upload/logging.php
==============================================================================
--- trunk/upload/logging.php (original)
+++ trunk/upload/logging.php Sat Nov 10 20:07:29 2007
@@ -74,11 +74,14 @@
if($seccodecheck) {
$seccode = random(6, 1) + $seccode{0} * 1000000;
}
- if(preg_match('/(mozilla|opera|m3gate|winwap|openwave)/i',
$_SERVER['HTTP_USER_AGENT'])) {
- include template('login');
- } else {
- include template('login_wap');
- }
+ if($mobile==1) {
+ include template('login_wap');
+ } else if(preg_match('/(mozilla|opera|m3gate|winwap|openwave)/i',
$_SERVER['HTTP_USER_AGENT'])) {
+ include template('login');
+ } else {
+ include template('login_wap');
+ }
+
} else {

if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') {
@@ -150,6 +153,8 @@
} else {
if($dashboard =='1') {
showmessage('login_succeed', $bbsdir.'/dashboard');
+ } elseif($mobile =='1') {
+ wapshowmessage('login_succeed', 'm');
} else {
if(preg_match('/(mozilla|opera|m3gate|winwap|openwave)/i',
$_SERVER['HTTP_USER_AGENT'])) {
if ($from=='im') {

Modified: trunk/upload/memcp.php
==============================================================================
--- trunk/upload/memcp.php (original)
+++ trunk/upload/memcp.php Sat Nov 10 20:07:29 2007
@@ -872,7 +872,7 @@
showmessage('buddy_add_nonexistence');
}
}
-
+ buddy_update($discuz_uid);
showmessage('buddy_update_succeed', $bbsdir.'/buddylist.nnm');

}

Modified: trunk/upload/my.php
==============================================================================
--- trunk/upload/my.php (original)
+++ trunk/upload/my.php Sat Nov 10 20:07:29 2007
@@ -138,6 +138,7 @@
showmessage('favorite_exists');
} else {
$db->query("INSERT INTO {$tablepre}favorites (uid, $ftid,dateline)
VALUES ('$discuz_uid', '${$ftid}','{$timestamp}')");
+ fav_update($discuz_uid);
require DISCUZ_ROOT.'./include/cache.func.php';
updatecache('fav');
showmessage('favorite_add_succeed', dreferer());

Modified: trunk/upload/parasy.php
==============================================================================
--- trunk/upload/parasy.php (original)
+++ trunk/upload/parasy.php Sat Nov 10 20:07:29 2007
@@ -1,12 +1,11 @@
<?php
/* Project Parasynthesis
-* Author: Fujiwara Sai
-* Usage: Loader for Web
+* Author: Fujiwara Sai
+* Usage: Loader for Web
*/
define('CURSCRIPT', 'parasy');

require_once './include/common.inc.php';
-require_once './parasy/ParasyCache.php';

if (isset($_GET['action'])) {
$action = strtolower(trim($_GET['action']));
@@ -45,6 +44,51 @@
}
include template('topic');
break;
+
+ case 'session':
+ $discuz_action = 52;
+ $navtitle = '������ʷ���� - ';
+ include template('session');
+ break;
+
+ case 'about':
+ $navigation = $navtitle ='�������� - ';
+ include template('new_features');
+ break;
+
+ case 'mobile_home':
+ if ($shuffle == 1) {
+ $sql_order='rand()';
+ } else {
+ $sql_order='t.lastpost DESC';
+ }
+ $perpage = M_PER_PAGE;
+ $query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads");
+ $threadcount = $db->result($query, 0);
+ $page = isset($page) ? max(1, intval($page)) : 1;
+ $page = $threadmaxpages && $page > $threadmaxpages ? 1 : $page;
+ $start_limit = ($page - 1) * $perpage;
+ $multipage = now_wap_multi($threadcount, $perpage,
$page, "{$boardurl}m/", $threadcount);
+ $data = array();
+ $query = $db->query("SELECT t.subject,t.tid,t.fid,t.views, t.replies
FROM {$tablepre}threads t ORDER BY {$sql_order} LIMIT {$start_limit},{$perpage}");
+ if (mysql_num_rows($query) > 0) {
+ while($t = $db->fetch_array($query)) {
+ if ((!in_array($t['fid'], $disabled_forums))) {
+ $data['topics'][$t['tid']]['tid'] = $t['tid'];
+ $data['topics'][$t['tid']]['subject'] = $t['subject'];
+ $data['topics'][$t['tid']]['views'] = $t['views'];
+ $data['topics'][$t['tid']]['replies'] = $t['replies'];
+ $data['topics'][$t['tid']]['fid'] = $t['fid'];
+ }
+ }
+ }
+ include template('mobile_home');
+ break;
+
+ case 'mobile_view':
+ require_once './parasy/ParasyMobileViewCore.php';
+ break;
+
}

?>

Modified: trunk/upload/parasy/ParasyCache.php
==============================================================================
--- trunk/upload/parasy/ParasyCache.php (original)
+++ trunk/upload/parasy/ParasyCache.php Sat Nov 10 20:07:29 2007
@@ -1,4 +1,8 @@
<?php
+/* Project Parasynthesis
+* Author: Fujiwara Sai
+* Usage: Cache Core
+*/

if(!defined('IN_DISCUZ')) {
exit('Access Denied');

Modified: trunk/upload/parasy/ParasyCore.php
==============================================================================
--- trunk/upload/parasy/ParasyCore.php (original)
+++ trunk/upload/parasy/ParasyCore.php Sat Nov 10 20:07:29 2007
@@ -5,6 +5,10 @@
* Thanks: Some Funcitons Written by Livid Torvalds
*/

+if(!defined('IN_DISCUZ')) {
+ exit('Access Denied');
+}
+
function rand_color($color_start = 0, $color_end = 3) {
$color = array(0 => '0', 1 => '3', 2 => '6', 3 => '9', 4 => 'C', 5 => 'F');
while (($o ='#' . $color[rand($color_start, $color_end)] .
$color[rand($color_start, $color_end)] . $color[rand($color_start,
$color_end)]) != '#FFF') {
@@ -519,6 +523,20 @@
nmwritetocache('user_svp_'.$uid, '', nmgetcachevars($data),'','cache_usr/svp');
}
return $data['svp'];
+}
+
+function fav_update($uid) {
+ global $db, $_DCACHE, $timestamp, $tablepre, $discuz_uid, $member;
+ $data = array();
+ $query = $db->query("SELECT f.board_name, f.name,f.fid FROM
{$tablepre}favorites fav, {$tablepre}forums f WHERE fav.fid=f.fid AND
fav.uid='{$uid}' ORDER BY fav.dateline ASC");
+ while($fav = $db->fetch_array($query)) {
+ $data['fav'][$fav['fid']]['board_name'] = $fav['board_name'];
+ $data['fav'][$fav['fid']]['name'] = $fav['name'];
+ }
+ if (mysql_num_rows($query) > 0) {
+ nmwritetocache('user_fav_'.$uid, '', nmgetcachevars($data),'','cache_usr/f');
+ }
+ return $data['fav'];
}

function buddy_update($uid) {

Modified: trunk/upload/parasy/ParasySettings.inc.php
==============================================================================
--- trunk/upload/parasy/ParasySettings.inc.php (original)
+++ trunk/upload/parasy/ParasySettings.inc.php Sat Nov 10 20:07:29 2007
@@ -7,8 +7,9 @@
/* constants for built-in */
$bbsdir = '/bbs';
$jsdir = '/bbs/include/javascript';
+define('MOBILE_NAME', 'NoName');

-/* geo */
+/* cache dir */
define('GEO_LATEST_DIR', 'cache_geo/l');
define('GEO_HOT_DIR', 'cache_geo/h');
define('GEO_NOW_DIR', 'cache_geo/n');
@@ -17,4 +18,11 @@

/* If your PHP lower than 5.2 */
define('USE_ZEND', False);
+
+/* items per page */
+define('NOW_PER_PAGE', '30');
+define('M_PER_PAGE', '10');
+
+/* Forum Permissions */
+$disabled_forums = array(72,73,76,49,67,74,77,46,6,25,51,26,64);
?>

Added: trunk/upload/parasy/comment.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy/comment.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,230 @@
+<?php
+
+/*
+ [DISCUZ!] post.php - post module for new threads & replies or editing post
+ This is NOT a freeware, use is subject to license terms
+
+ Version: 4.0.0
+ Web: http://www.comsenz.com
+ Copyright: 2001-2005 Comsenz Technology Ltd.
+ Last Modified: 2005-3-16 10:24
+*/
+
+define('CURSCRIPT', 'post');
+
+require_once './include/common.inc.php';
+require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
+require_once DISCUZ_ROOT.'./include/post.func.php';
+
+if(empty($action)) {
+ showmessage('undefined_action', NULL, 'HALTED');
+} elseif($action == 'smilies' && $smileyinsert) {
+ foreach($_DCACHE['smilies_display'] as $key => $smiley) {
+ $_DCACHE['smilies_display'][$key]['codeinsert'] = addcslashes($smiley['code'], '\\\'');
+ }
+ include template('post_smilies');
+ dexit();
+}
+
+periodscheck('postbanperiods');
+
+$allowpostattach = !empty($forum['allowpostattach']) ||
(!$forum['postattachperm'] && $allowpostattach) ||
($forum['postattachperm'] && forumperm($forum['postattachperm']));
+$attachextensions = $forum['attachextensions'] ?
$forum['attachextensions'] : $attachextensions;
+
+$postcredits = $forum['postcredits'] ? $forum['postcredits'] : $creditspolicy['post'];
+$replycredits = $forum['replycredits'] ? $forum['replycredits'] : $creditspolicy['reply'];
+
+$maxprice = isset($extcredits[$creditstrans]) ? $maxprice : 0;
+
+if(!empty($tid) && !empty($fid)) {
+ $query = $db->query("SELECT * FROM {$tablepre}threads WHERE
tid='$tid' AND displayorder>='0'");
+ $thread = $db->fetch_array($query);
+ $fid = $thread['fid'];
+ $navigation = "&raquo; <a href=\"viewthread.php?tid=$tid\">$thread[subject]</a>";
+ $navtitle = " - $thread[subject]";
+
+ if($thread['readperm'] && $thread['readperm'] > $readaccess
&& !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) {
+ showmessage('thread_nopermission', NULL, 'NOPERM');
+ }
+}
+
+$navigation = "&raquo; <a
href=\"forumdisplay.php?fid=$fid".($extra ? '&'.preg_replace("/^(&)*/", '',
$extra) : '')."\">$forum[name]</a> $navigation";
+$navtitle = ' - '.strip_tags($forum['name']).$navtitle;
+if($forum['type'] == 'sub') {
+ $query = $db->query("SELECT name, fid FROM {$tablepre}forums WHERE fid='$forum[fup]'");
+ $fup = $db->fetch_array($query);
+ $navigation = "&raquo; <a
href=\"forumdisplay.php?fid=$fup[fid]\">$fup[name]</a> $navigation";
+ $navtitle = ' - '.strip_tags($fup['name']).$navtitle;
+}
+
+if(empty($forum['allowview'])) {
+ if(!$forum['viewperm'] && !$readaccess) {
+ showmessage('group_nopermission', NULL, 'NOPERM');
+ } elseif($forum['viewperm'] && !forumperm($forum['viewperm'])) {
+ showmessage('forum_nopermission', NULL, 'NOPERM');
+ }
+}
+
+if(empty($bbcodeoff) && !$allowhidecode &&
preg_match("/\[hide=?\d*\].+?\[\/hide\]/is",
preg_replace("/(\[code\].*\[\/code\])/is", '', $message))) {
+ showmessage('post_hide_nopermission');
+}
+
+if(!$adminid && $newbiespan && (!$lastpost || $timestamp - $lastpost <
$newbiespan * 3600)) {
+ $query = $db->query("SELECT regdate FROM {$tablepre}members WHERE uid='$discuz_uid'");
+ if($timestamp - ($db->result($query, 0)) < $newbiespan * 3600) {
+ showmessage('post_newbie_span');
+ }
+}
+
+$extra = rawurlencode($extra);
+$blogcheck = empty($isblog) && empty($addtoblog) ? '' : 'checked';
+$notifycheck = empty($emailnotify) ? '' : 'checked';
+$stickcheck = empty($sticktopic) ? '' : 'checked';
+$digestcheck = empty($addtodigest) ? '' : 'checked';
+
+if(periodscheck('postmodperiods', 0)) {
+ $modnewthreads = $modnewreplies = 1;
+} else {
+ $censormod = censormod($subject."\t".$message);
+ $modnewthreads = (!$allowdirectpost || $allowdirectpost == 1) &&
($forum['modnewposts'] || $censormod) ? 1 : 0;
+ $modnewreplies = (!$allowdirectpost || $allowdirectpost == 2) &&
($forum['modnewposts'] == 2 || $censormod) ? 1 : 0;
+}
+
+$subject = isset($subject) ? dhtmlspecialchars(censor(trim($subject))) : '';
+$message = isset($message) ? censor(trim($message)) : '';
+$readperm = isset($readperm) ? intval($readperm) : 0;
+$price = isset($price) ? intval($price) : 0;
+
+$urloffcheck = $usesigcheck = $smileyoffcheck = $codeoffcheck =
$htmloncheck = $emailcheck = '';
+
+$enctype = $allowpostattach ? 'enctype="multipart/form-data"' : '';
+$maxattachsize_kb = $maxattachsize / 1000;
+
+//get secure code checking status (pos. -3)
+$seccodecheck = substr(sprintf('%05b', $seccodestatus), -3, 1);
+
+//get trade thread status (pos. -1)
+$allowposttrade = substr(sprintf('%02b', $forum['allowtrade']), -1, 1);
+
+if(!empty($previewpost) || (empty($previewpost) && empty($topicsubmit)
&& empty($replysubmit) && empty($editsubmit))) {
+
+ $typeid = preg_replace("/.*typeid%3D(\d+).*/", "\\1", $extra);
+
+ $smilies = '';
+ $moresmilies = 0;
+ if($smileyinsert && is_array($_DCACHE['smilies_display'])) {
+ $smileyinsert = 1;
+ $smcols = $smcols ? $smcols : 3;
+ $smilies .= '<tr align="center">';
+ foreach($_DCACHE['smilies_display'] as $key => $smiley) {
+ if($key >= $smcols * 6) {
+ $moresmilies = 1;
+ break;
+ }
+ $smilies .= '<td valign="top"><img
src="'.SMDIR.'/'.$smiley['url'].'" border="0"
onmouseover="this.style.cursor=\'hand\';" onclick="AddText(\''.addcslashes($smiley['code'], '\\\'').'\');"></td>'."\n";
+ $smilies .= !(++$key % $smcols) ? '</tr><tr align="center">' : '';
+ }
+ } else {
+ $smileyinsert = 0;
+ }
+
+ if($discuz_uid && $sigstatus && !$usesigcheck) {
+ $usesigcheck = 'checked';
+ }
+
+ if(!empty($trade)) {
+ if(isset($seller)) {
+ $seller = dhtmlspecialchars(stripslashes($seller));
+ } else {
+ $query = $db->query("SELECT alipay FROM {$tablepre}memberfields
WHERE uid='$discuz_uid'");
+ $alipay = $db->result($query, 0);
+ $seller = $alipay ? $alipay : $email;
+ }
+
+ $item_price = isset($item_price) ? (float)$item_price : '';
+ $item_name = isset($item_name) ? dhtmlspecialchars(stripslashes($item_name)) : '';
+ $item_quality = isset($item_quality) ? dhtmlspecialchars(stripslashes($item_quality)) : '';
+ $item_locus = isset($item_locus) ? dhtmlspecialchars(stripslashes($item_locus)) : '';
+ $postage_mail = isset($postage_mail) ? dhtmlspecialchars(stripslashes($postage_mail)) : '';
+ $postage_express = isset($postage_express) ? dhtmlspecialchars(stripslashes($postage_express)) : '';
+
+ $checktp = array((isset($transport) ? $transport : 's') => 'checked');
+ $postagedisabled = isset($transport) && $transport == 'b' ? '' : 'disabled';
+ }
+
+ if(empty($previewpost)) {
+
+ $subject = $message = $polloptions = '';
+
+ } else {
+
+ $currtime = gmdate("$dateformat $timeformat", $timestamp +
$timeoffset * 3600);
+ $subject = stripslashes($subject);
+ $message = stripslashes($message);
+ $polloptions = dhtmlspecialchars(stripslashes($polloptions));
+ $subject_preview = $subject;
+ $message_preview =
discuzcode($message, !empty($smileyoff), !empty($bbcodeoff), !empty($htmlon),
$forum['allowsmilies'], $forum['allowbbcode'], $forum['allowimgcode'], $forum['allowhtml']);
+ $message = dhtmlspecialchars($message);
+
+ $urloffcheck = !empty($parseurloff) ? 'checked' : '';
+ $usesigcheck = !empty($usesig) ? 'checked' : '';
+ $smileyoffcheck = !empty($smileyoff) ? 'checked' : '';
+ $codeoffcheck = !empty($bbcodeoff) ? 'checked' : '';
+ $htmloncheck = !empty($htmlon) ? 'checked' : '';
+ $emailcheck = !empty($emailnotify) ? 'checked' : '';
+
+ $topicsubmit = $replysubmit = $editsubmit = '';
+
+ }
+
+} else {
+
+ if(empty($parseurloff)) {
+ $message = parseurl($message);
+ }
+
+ if((!empty($topicsubmit) || !empty($replysubmit)) && $seccodecheck) {
+
+ if(!isset($seccodeverify)) {
+ $seccode = random(4, 1);
+
+ $request = array
+ (
+ 'method' => $_SERVER['REQUEST_METHOD'],
+ 'action' => $PHP_SELF,
+ 'elements' => ''
+ );
+
+ $quesand = '?';
+ foreach($_GET as $key => $value) {
+ $request['action'] .= $quesand.rawurlencode($key).'='.rawurlencode($value);
+ $quesand = '&';
+ }
+ foreach($_POST as $key => $value) {
+ if(is_array($value)) {
+ foreach($value as $arraykey => $arrayvalue) {
+ $request['elements'] .= '<input type="hidden"
name="'.dhtmlspecialchars($key.'['.$arraykey.']').'" value="'.dhtmlspecialchars(stripslashes($arrayvalue)).'">';
+ }
+ } else {
+ $request['elements'] .= '<input type="hidden"
name="'.dhtmlspecialchars($key).'" value="'.dhtmlspecialchars(stripslashes($value)).'">';
+ }
+ }
+
+ include template('post_seccode');
+ dexit();
+ }
+
+ }
+
+}
+
+if($forum['password'] && $forum['password'] !=
$_DCOOKIE['fidpw'.$fid]) {
+ header("Location: {$boardurl}forumdisplay.php?fid=$fid&sid=$sid");
+ exit();
+}
+
+if($action == 'reply') {
+ require_once DISCUZ_ROOT.'./include/comment.inc.php';
+}
+
+?>
\ No newline at end of file

Added: trunk/upload/parasy/component_check.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy/component_check.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,33 @@
+<?php
//�ɷ��б�
//�ظ����ֵĶ�������ʻ�Ƚϸߡ��ܳ��Ƚ��鲻Ҫ����255��
$elements=array(
'ʬ��',
'��լ��',
'���ָ��ָ߸���',
'����',
'��Ƶ��Ѷ',
'�ڰ�',
'����ԹӰ',
'��',
'����',
'���е����ɭ��',
'���еĶϱ�ɽ',
'���������־',
'ȼ�յ�С����',
'������',
'���ˮ��',
'�ռ�Ť��',
'ʱ�նϲ�',
'΢�ͺڶ�',
'΢������',
'��ʬˮ',
'��ˮ',
'��ˮ',
'һ����ˮ',
'����',
'��',
'����֮��',
'�Ѱ�',
'������',
'���˵����',
'�޴��ܲ�',
'�������',
'��ŵ��˹�����',
'G3����',
'������',
'��Ļ',
'ɳ�ֶ���',
'������',
'��',
'����',
'����',
'�Բ�',
'����',
'�|��',
'�ͯ�',
'���',
'������',
'�ĸ���',
'������',
'������',
'��','��','��','��',
'û����',
'�����',
'���˼��',
'����˼��',
'ϸ���СŮ�������',
'ϸ���С�к������',
'����',
'��Ϊ�����ľ���',
'ײ������ɱ������',
'���ܺ����۶ϵľ���',
'�����ɿ��',
'��֮��',
'����',
'��̬',
'��h',
'����',
'΢��',
'Ī������',
'�޴����',
'����ů¯',
'�ǻ�',
'��Ȼ��',
'����֮ˮ',
'���һ����',
'���',
'�Ļ�',
'���Ͻ�',
'�����',
'�����',
'��ë',
'������',
'Թ��',
'�ޱ�','�ޱ�',
'���粨','���粨','���粨','���粨',
'����֮��',
'�Խ�',
'ŧ','ŧ','ŧ',
'��֮��',
'��Ѫ',
'���ӷ�Ӧԭ��',
'��Ӧ¯��ȴˮ',
'������ըҩ',
'�Խ������ױ���',
'����������',
'����',
'������',
'���µ�һ������˫����޵�����dz���Խ��������p���ǰ���ǹ�����޼᲻�������ܺ���',
'��'
);

+if(!function_exists('str_split')){
function str_split($string,$split_length=1){
$count = strlen($string);
if($split_length < 1){
return false;
} elseif($split_length > $count){
return array($string);
} else {
$num = (int)ceil($count/$split_length);
$ret = array();
for($i=0;$i<$num;$i++){
$ret[] = substr($string,$i*$split_length,$split_length);
}
return $ret;
}
}
}
//��������(�������ִ�)X��pointer������ƶ�X��Ȼ�󴫻ظ�λ�õ�Ԫ����
//�����н�β����ͷ��ʼ
$pointer=0;
function get_element($id){
if(!is_numeric($id)) return 'Error!';
else{
global $elements;
global $pointer;
eval("\$pointer+=$id;");
$pointer%=count($elements);
return $elements[$pointer];
}
}
$result_string='';

+if( isset($member[username]) ){
+ if (strlen($member[username]) > 256){
+ $result_string='�����������̫���ˡ�';
+ } else {
$input_string = strtoupper($member[username]);
+ $input_hash = md5($input_string);
+ $hase_length=strlen($input_hash);
+ $chunks=str_split($input_hash,2);
+ include('./parasy/stupid_stories.php');
// $elist[�ɷ����]=�ɷݺ��
+ $total_quantity=0;//�ɷ����
+ for($i=0; $i < count($chunks); $i+=2){
+ $current_component=get_element("0x{$chunks[$i]}");
+ eval("\$current_quantity=0x{$chunks[$i+1]};");
+ $current_quantity*=$current_quantity*$current_quantity;//���η���������ɷݸ�����ɷֵľ������
+ $total_quantity+=$current_quantity;
+ if(isset( $elist[$current_component] ) ){
+ $elist[$current_component]+=$current_quantity;
+ } else {
+ $elist[$current_component]=$current_quantity;
+ }
+ }
//sort
arsort($elist);
+ $result_string.="\n<ul class=items>\n";
+ foreach($elist as $k => $v){
$percent=number_format( 100*$elist[$k]/$total_quantity, 2);
+ if( ereg('0.0[0-9]',$percent) ) continue; //̫�ٵĶ���Ͳ���ʾ��
+ else{
+ $result_string.="<li>{$k}��{$percent}%</li>\n";
+ }
+ }
+ $result_string.="</ul>\n";
+ }
+}
+?>
\ No newline at end of file

Added: trunk/upload/parasy/stupid_stories.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy/stupid_stories.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,186 @@
+<?php
eval("\$pointer2+=0x{$chunks[1]};");
switch($pointer2 % 26){

+ case 1:

+ $result_string=<<<ST1

+<p>.....ƣ����{$input_string}�����ڴ��ϣ�������ij������ڲ�ס�����������塣
</p>

+<p>"Ϊʲô��Ҫ���ˣ�"</p>

+<p>�뵽����{$input_string}���������������Լ����е���ɫ��Ӱ���ᡣ</p>

+<p>����{$input_string}���ԸɰǾ��ˣ�ʲô��ûʣ��</p>

+ST1;

+ break;

+ case 2:

+ $result_string=<<<ST2

+<p>{$input_string}����ʵ�ɷ֣�</p>

+<ul>

+<li>�߷�֮��ʮ�ŵı�̬</li>

+<li>�˷�֮��ʮ��Ĵ��̬</li>

+<li>�ŷ�֮��ʮ�������</li>

+</ul>

+<p>·�ߵ�СŮ��Ҳ˵�ˣ�{$input_string}�DZ�̬��</p>

+ST2;

+ break;

+ case 3:

+
$result_string="<p>��һ�߷���һ�߿��¹����{$input_string}���ݏ�����Ű�ž޴����һ�㣬�ڹ������ϻ���һ��һ����˿ڡ�����������Ѫ���ز���Ļ��棬ʵ�����˲��̡�</p>";

+ break;

+ case 4:

+ $result_string="<p>�ɰ���{$input_string}����ʵ��ϲ����ܾ��ˣ����ҽ���ò��ã���������ģ���ġ�</p>";

+ break;

+ case 5:

+ $result_string="<p>{$input_string}������ģ�������������ģ����������ô������</p>";

+ break;

+ case 6:

+ $result_string="<p>��Ҫ��Ϊ������谭���ǵİ��飬
{$input_string}���ҽ������ƴ��������ҲҪ�����飡</p>";

+ break;

+ case 7:

+ $result_string="<p>������ĶԴ��ң����������{$input_string}�Ļ����һ����͵�.....</p>";

+ break;

+ case 8:

+ $result_string="<p>�;������ˣ�����ɣ�{$input_string}������İ�����Ұɣ�</p>";

+ break;

+ case 9:

+ $result_string="<p>�����˼����Ҫ�����ÿ�����Ӫҵ���ȴ��������{$input_string}�������һ�졣</p>";

+ break;

+ case 10:

+ $result_string="<p>���ڴ��ͷ�Ӧ¯�Լ����ܼ���ķ�����������������ս���ľ޴󻯡�</p>\n<p>������ߴ�����ߣ�������{$input_string}ָ�ӵij��罢������ĵ������ǿϮս������</p>";

+ break;

+ case 11:

+ $result_string="<p>�ҵ�{$input_string}С�������׷��ѽ��<br /><br />������[ɳ̲�ϵ�׷��]���ǧ��ٰ�ʮ�ż�</p>";

+ break;

+ case 12:

+ $result_string=<<<ST12

+<p>����A��ѧ����Ϊʲô���{$input_string}�Ĺ�ϵ��ô���أ�</p>

+<p>����B����ΪֻҪ��{$input_string}�ڵĵط����ͻ�����ɱ���������ù�ϵ���Ͳ�����ûҵ�����</p>

+<p>����A��ม�ԭ���˰���</p>

+ST12;

+ break;

+ case 13:

+ $result_string="<p>{$input_string}���Ҳ���˵���ˣ��õ���ʦ���������ã����õ���ʦ����ס�׷���\n<p>�����˵���ˣ���û�У���û�У���û�У���û�����(ˤ��)</p>";

+ break;

+ case 14:

+ $result_string="<p>����è�ܡ�</p>";

+ break;

+ case 15:

+ $result_string="<p>������{$input_string}����������������޳�Ʊ��̤����ǰ�����Ů����ó̡�</p>";

+ break;

+ case 16:

+ $result_string=<<<ST16

+<pre>��ǰ�и�ũ�����{$input_string}�����Ǽ�����������ֲ�����Ϊ��

+

+��һ�죬����������һ���������ر��

+��е��dz������죬�ر���չ���������

+

+�������������Խ��Խ��Խ��Խ��

+����������޷�֧����������������ʱ�������������

+{$input_string}��������ؼ��Ժ󣬰�������ʿ�

+������澹Ȼ��һ���֭(!?)���������Ů

+

+���������ǣ�����ﶼ���������

+�ٶ�֭���������Ů��һ������ë̫�������.... (�������Ķ���ë��...)

+{$input_string}�������������̫�ò���Ї@��"��˵������˹ϣ�Ϊʲô���������������أ�"

+

+�������Ů��Ϊȫ����ë����Ҷ�������������

+����ܲ������ֵ����������Ծ�

+�벻��������õ��Ժ����ӷ�ѿ������ö�ö���������Ů

+��������������ţ�Ҫ��ռ�����õ���ȫ����������

+

+��Ϲ�ܽ��ţ�½���վ�Ը��������ǣ�ֻ������������˽�������{$input_string}�

+����{$input_string}�㲻��(ɶ?��û���չ˺����ǵ�����?����ǣ���!!)

+

+{$input_string}�����˸����߰����Ժ�֪���Լ���Ӧ�ò���ϧˮ��

+���Ǹ�������������ף�������Ǵ��ܸж������Ǿ��{$input_string}�ͽ�

+

+�������ʱ���漣������!!

+

+�������Ů�ǵ�ë��Ȼ�����ˣ���������������Ů(ԭ���....�����ë��Ů XD)

+{$input_string}�������һ����һֱû��ע�⵽����

+

+������Dz����Ƥ�Ե�!!!

+

+���{$input_string}���������������Dz�����ˮ��

+��ĵ��˿ڷ��ӣ���������ǹ����Ҹ����ֵ����

+

+

+��ϲ�ɺ�...��ϲ�ɺ�....��!?</pre>

+ST16;

+ break;

+ case 17:

+ $result_string=<<<ST17

+<p>{$input_string}һ�����㣬�ȴ�һ�b�ţ�һ��˵���ˡ�</p>

+<p>�ٴ�����һ�b�ţ�˵���ѽ����ᴩ����ᴩ��</p>

+<p>�һ��������С�Ƕǣ�{$input_string}һ�����㣿</p>

+ST17;

+ break;

+ case 18:

+ $result_string=<<<ST18

+<pre>���{$input_string}

+����ˮ�������

+��ȥ���������СèС����ʮ��ǮӲ��

+���ǵ�Թ��Թ���ڳ���ʱ��Ĵ߻���

+���ͳɵ�һ�ֶ���

+

+���ͳɵ�{$input_string}�ǰ�ɫ��״��

+��̫��ɹ���ͻ�������

+����������������

+�������㹻������Թ��

+����Խ�ԽŨ

+�����Ŀ�����΢�ֵ���������

+

+�ȵ��������൱�̶ȵ�����Թ��

+�ﵽ��ߵľ���ʱ

+������ȫ�������

+�����Խ��Լ�������Ũ��

+������

+

+Ҳ��{$input_string}���������....</pre>

+ST18;

+ break;

+ case 19:

+ $result_string=<<<ST19

+<p>��Ҫ���Ա���˵���˽ڿ��֣�����������ʲô����֪���ʱ��</p>

+<p>�����㲻���һ��¶�˵ĸ�׽ڿ��֣�����һ�ִȱ���</p>

+<p>������������������������������������ժ��"{$input_string}�Դ�-�Ҳ��ó�"</p>

+ST19;

+ break;

+ case 20:

+ $result_string=<<<ST20

+<p>"��Ҫ�ߵĻ������ÿ��Dz���ְɡ��ҿ��Ƕ�õ�廨��ҹ��������Һܺá�"��{$input_string}��ô��С����˵��</p>

+<p>"�ԡ�ҹ��ķ�һ�㶼���䡫�㿴���Ҳ����䣬��������չ�ҵĴ��ء�"</p>

+<p>"���"</p>

+ST20;

+ break;

+ case 21:

+ $result_string="<p>\"��ʲô���������СèС��С��С�ϻ������ɽ��ҿ��Ƕ��д̵�õ����\"��{$input_string}һ������˵�ţ�һ��������צ����չ����ĸ�̡�</p>";

+ break;

+ case 22:

+ $result_string=<<<ST22

+<p>"��....�㲻����ģ��������..."</p>

+<p>����û˵�꣬һ���۵�����Ѿ���ӵ����</p>

+<p>"{$input_string}�����Ѿ������ˡ��Ƚ�������Ժ���������������ЩǮ���ú�һ���˹����..."</p>

+<p>"Ǯ��ʲôǮ��"</p>

+<p>���в�����ƣ����е�Ϧ�������������׼�������б��ϡ�<br />

+����ʦ���ٹ������ر��Ƴ���˲��¹�ͷ��ʳ�����ա�</p>

+<p>ÿ����ֻҪ�ɽ���ʮ����ţ�����������򱾹�˾��ȡ��ɽ��ɽ����</p>

+<p>�ż�ͣ������٣����ڼ��뻹���͸߹�󷽵�ˮ���������顣</p>

+<p><br />"���ˣ��㣬����E�Ӵ̵��Һ�ʹ��"</p>

+ST22;

+ break;

+ case 23:

+ $result_string="<p>˵���ַ����ʽ׼ȷ������ͬ�ôǺ����㷭
һҳ��Ȼ������һҳ�����ҵ��Լ�������һ��IJ���˼�顣</p>";

+ break;

+ case 24:

+ $result_string="<p>{$input_string}����Ҫ�ǵã�������ר�õ���ʥ���������ǿף��ƱƲ��Ʊơ�</p>";

+ break;

+ case 25:

+ $result_string=<<<ST25

+<p>��ĥ����10Ԫ</p>

+<p>���̣�299Ԫ</p>

+<p>PHPʥ������500Ԫ</p>

+<p>�����������1680Ԫ</p>

+<p>�����õ�ϸ���СŮ���������3680Ԫ</p>

+<p>���Լ����Բ���{$input_string}������ʮ���˱�ɱ�������˳��Ū�ñ��˵Ļ����޼�</p>

+ST25;

+ break;

+ default:

+ $result_string='<p>�Һ�æ��û�գ��㲻�����....��һλ��</p>';

+}

+$result_string.="\n</td></tr><tr><td colspan=2 align=left
class=section_even style=padding-left: 20px>";

+?>


Added: trunk/upload/parasy_channel.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_channel.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,205 @@
+<?php
+/* Project Parasynthesis
+* This code is based on Project Babel
+* Original Author: Livid Torvalds
+* Rework:Fujiwara Sai
+* Usage: Rss Reader
+*/
+
+require_once './include/common.inc.php';
+require_once DISCUZ_ROOT.'./include/libs/magpierss/rss_fetch.inc';
+require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
+
+define('MAGPIE_CACHE_DIR', DISCUZ_ROOT.'/forumdata/rss');
+define('MAGPIE_OUTPUT_ENCODING', 'utf-8');
+
+if ($_GET['channel_id']) {
+ $channel_id = intval($_GET['channel_id']);
+ if ($channel_id != '') {
+ $sql = $db->query("SELECT chl_id, chl_fid, chl_title, chl_url,
chl_dateline FROM {$tablepre}channel WHERE chl_id={$channel_id}");
+ if (mysql_num_rows($sql) == 1) {
+ $db->fetch_array($query);
+ $O = mysql_fetch_object($sql);
+ mysql_free_result($sql);
+ $chl_id = $O->chl_id;
+ $chl_fid = $O->chl_fid;
+ $chl_title = $O->chl_title;
+ $chl_url = 'http://'.$O->chl_url;
+ $chl_created = $O->chl_created;
+ $rss = fetch_rss($chl_url);
+ $O = null;
+ if ($chl_title == '') {
+ $chl_title = iconv('utf-8', 'gbk',$rss->channel['title']);
+ $sql = $db->query("UPDATE {$tablepre}channel SET chl_title
= '{$chl_title}' WHERE chl_id = {$chl_id} LIMIT 1");
+ }
+ } else {
+ mysql_free_result($sql);
+ $chl_id = 0;
+ $chl_fid = 0;
+ $chl_title = '';
+ $chl_url = '';
+ $chl_created = 0;
+ $rss = null;
+ dheader("Location: {$boardurl}");
+
+ }
+ } else {
+ $chl_id = 0;
+ $chl_fid = 0;
+ $chl_title = '';
+ $chl_url = '';
+ $chl_created = 0;
+ $rss = null;
+ dheader("Location: {$boardurl}");
+ }
+
+ $forum = $_DCACHE['forums'][$chl_fid];
+ $navtitle = "$chl_title - ";
+ $query = $db->query("SELECT chl_id FROM {$tablepre}favorites WHERE
uid = '{$discuz_uid}'");
+ include template('header');
+ echo('<div class="nav"><img src="'.IMGDIR.'/map.png"
align="absmiddle" alt="You are here" class="map" /> <a
href="'.$bbsdir.'">' . $bbname . '</a> &gt; <a href="'.$bbsdir.'/go/' .
$forum['board_name'] . '" target="_self">' . $forum['name'] . '</a>
&gt; ' . make_plaintext($chl_title));
+ echo('</div></div>');
+ echo('<div class="maintable" align="left">');
+ echo('<span class="text_large">');
+ $fav_count = mysql_num_rows($query);
+ if ($fav_count > 0){
+ $fav_icon = 'star';
+ } else {
+ $fav_icon = 'channel';
+ }
+ echo('<img src="'.IMGDIR.'/ico_' . $fav_icon . '.gif"
align="absmiddle" class="home" />' . make_plaintext($chl_title).'</span>');
+ /*
+ if ($discuz_uid) {
+ if ($fav_count > 0){
+ echo(' <img src="'.IMGDIR.'/lightning_add.png" align="absmiddle" />-');
+ } else {
+ echo(' <img src="'.IMGDIR.'/lightning_add.png" align="absmiddle" />');
+ }
+ }*/
+ echo('<br />��Ƶ���й��� ' . count($rss->items) . ' ����Ϣ');
+ echo('���������۰� <a href="'.$bbsdir.'/go/' .
$forum['board_name'] . '" class="nod">' . $forum['name'] . '</a>');
+ if ($fav_count > 0) {
+ echo('�����Ѿ��ղ��˴�Ƶ��');
+ }
+
+ $chl_query = $db->query("SELECT chl_title,chl_id FROM
{$tablepre}channel WHERE chl_fid = '{$chl_fid}'");
+ $chl_count = mysql_num_rows($chl_query);
+ if ($chl_count > 0){
+ echo(' , '.$chl_count.' �����Ƶ��<hr class="board"><div class="channels">');
+ while ($Channel = mysql_fetch_object($chl_query)) {
+ if (trim($Channel->chl_title) == '') {
+ $Channel->chl_title = $Channel->chl_url;
+ }
+ if ($Channel->chl_id == $channel_id) {
+ echo('<strong class="p_cur"><img src="' .
IMGDIR . '/bullet_feed.png" align="absmiddle" />' . make_plaintext($Channel->chl_title) . '</strong> ');
+ } else {
+ $css_color = rand_color();
+ echo('<img src="' . IMGDIR . '/bullet_feed.png" align="absmiddle"
/><a href="'.$bbsdir.'/channel/' . $Channel->chl_id . '.html"
class="var" style="color: ' . $css_color . '">' .make_plaintext($Channel->chl_title) . '</a> ');
+ }
+ }
+ echo('</div>');
+ } else {
+ echo (' , û�����Ƶ��');
+ }
+
+ echo('</div>');
+ echo('<div class="maintable" align="left">');
+ echo('<span class="rss_t">');
+ if (isset($rss->image['url'])) {
+ echo('<img src="' . $rss->image['url'] . '" align="absmiddle"
style="margin: 5px 5px 0px 5px;" alt="' . $rss->channel['title'] . '" />&nbsp;&nbsp;');
+ } else {
+ echo('<img src="'.IMGDIR.'/feed.png" align="absmiddle" />&nbsp;&nbsp;');
+ }
+ if (isset($rss->channel['link'])) {
+ echo('<a href="' . $rss->channel['link'] . '" target="_blank">' .
make_plaintext($chl_title) . '</a> <img src="'.IMGDIR.'/ext.png"
align="absmiddle" />');
+ } else {
+ echo(make_plaintext($chl_title));
+ }
+
+ if (isset($rss->channel['description'])) {
+ echo('&nbsp;&nbsp;&nbsp;<span class="tip_i">' . iconv('utf-8', 'gbk',strip_tags($rss->channel['description'])) . '</span>');
+ }
+ echo('</span>');
+ echo('<div></div>');
+ echo('<hr class="board" />');
+ $i = 0;
+ foreach ($rss->items as $Item) {
+ $i++;
+ $css_color = rand_color(0, 2);
+ echo('<div id="rss_' . $i . '" style="border: 2px solid #FFF;
-moz-border-radius: 7px;"><div class="rss_entry_title"
id="rss_entry_' . $i . '"><span class="rss_t"><a href="' .
$Item['link'] . '" target="_blank" style="color: ' . $css_color . '"
class="var">' . iconv('utf-8', 'gbk',
make_plaintext($Item['title'])) . '</a>&nbsp;<img
src="'.IMGDIR.'/ext.png" align="absmiddle" /></span>');
+
+ if (isset($Item['pubdate'])) { // RSS 2.0
+ $int_time = strtotime($Item['pubdate']);
+ } else {
+ if (isset($Item['dc']['date'])) { // RSS 0.9
+ $int_time = strtotime($Item['dc']['date']);
+ } else {
+ if (isset($Item['created'])) { // Atom
+ $int_time = strtotime($Item['created']);
+ } else {
+ if (isset($Item['issued'])) { // Atom
+ $int_time = strtotime($Item['issued']);
+ } else {
+ if (isset($Item['published'])) { // Atom
+ $int_time = strtotime($Item['published']);
+ }
+ }
+ }
+ }
+ }
+
+ if ($int_time > 0 && $int_time < time()) {
+ echo('<br /><small>Published on ');
+ echo(date('Y-n-j G:i:s', $int_time));
+ if (isset($Item['author'])) {
+ echo(' by ' . $Item['author']);
+ }
+ echo('</small>');
+ }
+ echo('</div>');
+ /* S: content */
+ if (isset($Item['description'])) {
+ if (isset($Item['content']['encoded'])) {
+ $txt_content = iconv('utf-8', 'gbk', trim($Item['content']['encoded']));
+ } else {
+ $txt_content = iconv('utf-8', 'gbk', trim($Item['description']));
+ }
+ if (!preg_match('/(<br >)|(<table>)|(<div>)|(<p>)|(<\/p>)|(<p >)|
(<br \/>)|(<br>)|(<br\/>)/i', $txt_content)) {
+ $txt_content = nl2br($txt_content);
+ } else {
+ $txt_content = make_safe_display($txt_content);
+ }
+ } else {
+ if (isset($Item['content']['encoded'])) {
+ $txt_content = trim($Item['content']['encoded']);
+ if (!preg_match('/(<br >)|(<table>)|(<div>)|(<p>)|(<\/p>)|(<p >)|
(<br \/>)|(<br>)|(<br\/>)/i', $txt_content)) {
+ $txt_content =iconv('utf-8', 'gbk', nl2br($txt_content));
+ } else {
+ $txt_content = iconv('utf-8', 'gbk',make_safe_display($txt_content));
+ }
+ } else {
+ if (isset($Item['atom_content'])) {
+ $txt_content = trim($Item['atom_content']);
+ if (!preg_match('/(<br >)|(<table>)|(<div>)|(<p>)|(<\/p>)|(<p >)|
(<br \/>)|(<br>)|(<br\/>)/i', $txt_content)) {
+ $txt_content = iconv('utf-8', 'gbk',nl2br($txt_content));
+ } else {
+ $txt_content = iconv('utf-8', 'gbk',make_safe_display($txt_content));
+ }
+ } else {
+ $txt_content = '<a href="' . $Item['link'] . '"
target="_blank">read more on ' . $Item['link'] . '</a>';
+ }
+ }
+ }
+ echo '<div class="rss_entry_content">' . $txt_content . '</div></div>';
+ echo('<hr class="board" />');
+ /* E: content */
+ }
+ echo('<div id="rss_bottom"><span class="tip_i"><small>' . $i . ' items</small></span></div>');
+ echo('<hr class="board" />');
+ echo('<img src="'.IMGDIR.'/feed.png" align="absmiddle" /> ��ӭʹ��
RSS �Ķ����ı�ҳ���� <a href="' . $chl_url . '" rel="nofollow
external">' . $chl_url . '</a>');
+ echo('</div>');
+ include template('footer');
+} else {
+ dheader("Location: {$boardurl}");
+}
+?>
\ No newline at end of file

Added: trunk/upload/parasy_geo.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_geo.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,593 @@
+<?php
+/* Project Parasynthesis
+* This code is based on Project Babel
+* Original Author: Livid Torvalds
+* Rework:Fujiwara Sai
+*/
+
+define('CURSCRIPT', 'geo');
+
+require_once './include/common.inc.php';
+
+switch ($action) {
+ case 'geo_home':
+ $Geo = new Geo($geo, $Geo->map);
+ $geo_md5 = md5($geo);
+ $geos_all_children = $Geo->nmGetRecursiveChildrenArray('', true);
+ $geos_all_children_sql = implode(',', $geos_all_children);
+ $Geo->geo->description->cn = iconv('utf-8', 'gbk', $Geo->geo->description->cn);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->geo->name->cn);
+ $navtitle = $Geo->geo->name->cn.' - ' ;
+ include template('header');
+ echo('<img src="'.IMGDIR.'/map.png" align="absmiddle" alt="You are
here" class="map" /> <a
href="'.$bbsdir.'/'.$indexname.'">'.$bbname.'</a> &gt; ����
&gt; '.$Geo->geo->name->cn.' <span class="tip_i"><small>portal</small></span></div>');
+ echo('<div class="maintable" align="left">');
+ if ($geo_user==$Geo->geo->geo) {
+ $status="�����ҵĵ�ǰ���ڵ�";
+ } else {
+ $status='<a href="'.$bbsdir.'/geo/'.$geo_user.'" class="t">����'.$portal.'</a>';
+ }
+ echo('<span class="text_large"><img src="'.IMGDIR.'/pico_web.gif"
align="absmiddle" border="0" /> '.$Geo->geo->name->cn.'</span> <span class="tip_i">');
+ if ($discuz_uid) {
+ echo(' ... '.$status.' / <a href="'.$bbsdir.'/user/move.nnm" class="t">�޸��ҵ����ڵ�</a>');
+ }
+ echo('... Ŀǰ�� ? ����ȥ'.$Geo->geo->name->cn);
+ if ($discuz_uid) {
+ $query = $db->query("SELECT ggg_id FROM cdb_geo_going WHERE ggg_geo
= '{$Geo->geo->geo}' AND ggg_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ $geo_flag_going = true;
+ } else {
+ $geo_flag_going = false;
+ }
+ mysql_free_result($query);
+ if ($geo_flag_going) {
+ echo(' / <a href="'.$bbsdir.'/revert/going/' . $Geo->geo->geo . '"
class="t">�Ҳ���ȥ' . $Geo->geo->name->cn . '</a>');
+ } else {
+ echo(' / <a href="'.$bbsdir.'/set/going/'.$Geo->geo->geo.'" class="t">����ȥ'.$Geo->geo->name->cn.'</a>');
+ }
+ }
+ echo(' ... Ŀǰ�� ? ��ȥ��'.$Geo->geo->name->cn);
+ if ($discuz_uid) {
+ $query = $db->query("SELECT gbn_id FROM cdb_geo_been WHERE gbn_geo
= '{$Geo->geo->geo}' AND gbn_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ $geo_flag_been = true;
+ } else {
+ $geo_flag_been = false;
+ }
+ mysql_free_result($query);
+ if ($geo_flag_been) {
+ echo('/ <a href="'.$bbsdir.'/revert/been/' . $Geo->geo->geo . '"
class="t">��û��ȥ��' . $Geo->geo->name->cn . '</a>');
+ } else {
+ echo('/ <a href="'.$bbsdir.'/set/been/' . $Geo->geo->geo . '" class="t">��ȥ��'.$Geo->geo->name->cn.'</a>');
+ }
+ }
+ if (isset($_SESSION['geo_message'])) {
+ if ($_SESSION['geo_message'] != '') {
+ echo('<hr class="board" />');
+ echo ('<div class="notify">' . $_SESSION['geo_message'] . '</div>');
+ $_SESSION['geo_message'] = '';
+ }
+ }
+ echo('</span>');
+ echo('<hr class="board" />');
+ $geo_route = $Geo->nmGetRoute();
+ echo('<div class="geo_home_middle" style="margin-bottom: 5px;" ><img
src="'.IMGDIR.'/gt.gif" align="absmiddle" /> ');
+ $i = 0;
+ foreach ($geo_route as $g => $g_name) {
+ $i++;
+ if ($i == 1) {
+ if ($g == $geo) {
+ echo($g_name);
+ } else {
+ echo('<a href="'.$bbsdir.'/geo/' . $g . '" class="o">' . $g_name . '</a>');
+ }
+ } else {
+ if ($g == $geo) {
+ echo(' &gt; ' . $g_name);
+ } else {
+ echo(' &gt; <a href="'.$bbsdir.'/geo/' . $g . '" class="o">' . $g_name . '</a>');
+ }
+ }
+ }
+ if ($Geo->geo->description->cn != '') {
+ echo('<div class="geo_home_desc">');
+ echo $Geo->geo->description->cn;
+ echo('</div>');
+ }
+ echo('</div>');
+ echo('<table cellpadding="0" cellspacing="0" border="0" width="99%">');
+ echo('<tr>');
+ echo('<td width="60%" align="left" valign="top" style="border-right:
1px solid #EEE; border-top: 1px solid #EEE; border-bottom: 1px solid #EEE;">');
+ echo('<div class="geo_home_bar_top"><img
src="'.IMGDIR.'/award_star_gold_2.png" align="absmiddle" />
ͬ�������»�Ծ����<span class="tip_i"> ... <img
src="'.IMGDIR.'/pico_feed.gif" align="absmiddle" alt="RSS" /> <a
href="/feed/geo/' . $Geo->geo->geo . '">RSS �������</a></span></div>');
+ echo('<div class="geo_home_content">');
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_LATEST_DIR.'/geo_latest_'.$geo.'.php');
+
if((@!include('forumdata/'.GEO_LATEST_DIR.'/geo_latest_'.$geo.'.php')) |
| $latest_expiration < time()) {
+ $geo_topic = geo_latest_update($geo);
+ } else {
+ $geo_topic = $latest;
+ }
+ if (is_array($geo_topic)&&count($geo_topic) > 0) {
+ foreach ($geo_topic as $thread) {
+ $name_color = rand_color();
+ $thread['bg'] = $v2bg = isset($v2bg) && $v2bg == 'even' ? 'odd' : 'even';
+ echo('<div class="geo_home_entry_'.$thread['bg'].'"><img
src="'.$bbsdir.'/'.$thread['avatar'].'" class="portrait"
align="absmiddle" border="0" /> <a
href="viewthread.php?tid='.$thread['tid'].'">'.$thread['subject'].'</a>
<span class="tip_i">...</span> <a
href="'.$bbsdir.'/u-'.$thread['authorid'].'.html"
style="color:'.$name_color.'" class="var">'.$thread['author'].'</a></div>');
+ }
+ } else {
+ echo '<img src="'.IMGDIR.'/exclamation.png" alt="stats"
align="absmiddle" /> '.$Geo->geo->name->cn.'�Ļ�Ա��û�з����ظ�������';
+ }
+ echo('</div>');
+ echo('</td>');
+ echo('<td width="40%" align="left" valign="top" style="border-top:
1px solid #EEE; border-bottom: 1px solid #EEE;">');
+ echo('<div class="geo_home_bar_top"><img
src="'.IMGDIR.'/award_star_gold_1.png" align="absmiddle" /> ����ͬ������������</div>');
+ echo('<div class="geo_home_content">');
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_HOT_DIR.'/geo_hot_'.$geo.'.php');
+ if((@!include('forumdata/'.GEO_HOT_DIR.'/geo_hot_'.$geo.'.php')) ||
$hot_expiration < time()) {
+ $geo_hot = geo_hot_update($geo);
+ } else {
+ $geo_hot = $hot;
+ }
+ if (is_array($geo_hot)&&count($geo_hot) > 0) {
+ foreach ($geo_hot as $thread) {
+ $a++;
+ $name_color = rand_color();
+ $thread['bg'] = $v2bg = isset($v2bg) && $v2bg == 'even' ? 'odd' : 'even';
+ echo('<div class="geo_home_entry_'.$thread['bg'].'"><small
class="fade">'.$a.'.</small> <a
href="viewthread.php?tid='.$thread['tid'].'">'.$thread['subject'].'</a>
<span class="tip_i"><small> ... '.$thread['replies'].' / '.$thread['views'].'...</small></span></div>');
+ }
+ } else {
+ echo '<img src="'.IMGDIR.'/exclamation.png" alt="stats"
align="absmiddle" /> '.$Geo->geo->name->cn.'��û����������';
+ }
+ echo('</div>');
+ echo('<hr class="board" />');
+ echo('<div class="geo_home_bar"><img src="'.IMGDIR.'/group.png"
align="absmiddle" /> ��' . $Geo->geo->name->cn . '�Ļ�Ա<span
class="tip_i"> ... �� ' . $geo_count . ' ��</span></div>');
+
+ echo('<div class="geo_home_content"><div class="geo_home_entry_odd" align="left">');
+ echo('<span class="tip_i">coming soon ... <small><a
href="#/who/settle/' . $Geo->geo->geo . '" class="o">more</a> &gt;</small></span></div>');
+ echo('</div>');
+ echo('<hr class="board" />');
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_NOW_DIR.'/geo_now_'.$geo.'.php');
+ if((@!include('forumdata/'.GEO_NOW_DIR.'/geo_now_'.$geo.'.php')) ||
$now_expiration < time()) {
+ $geo_now = geo_now_update($geo);
+ } else {
+ $geo_now = $now;
+ }
+ echo('<div class="geo_home_bar"><img src="'.IMGDIR.'/rainbow.png"
align="absmiddle" /> ' . $Geo->geo->name->cn . '����������ʲô��</span></div>');
+ echo('<div class="geo_home_content">');
+ if (is_array($geo_now)&&count($geo_now) > 0) {
+ foreach ($geo_now as $thread) {
+ $name_color = rand_color();
+ $thread['bg'] = $v2bg = isset($v2bg) && $v2bg == 'even' ? 'odd' : 'even';
+ echo('<div class="geo_home_entry_'.$thread['bg'].'"><img
src="'.$bbsdir.'/'.$thread['avatar'].'" class="portrait"
align="absmiddle" border="0" /> <a
href="'.$bbsdir.'/now-'.$thread['vid'].'.html">'.$thread['content'].'</a>
<span class="tip_i">...</span> <a
href="'.$bbsdir.'/u-'.$thread['authorid'].'.html"
style="color:'.$name_color.'" class="var">'.$thread['author'].'</a></div>');
+ }
+ } else {
+ echo '<img src="'.IMGDIR.'/exclamation.png" alt="stats"
align="absmiddle" /> '.$Geo->geo->name->cn.'�Ļ�Ա��û�и��¹�Nowhere';
+ }
+ echo('</div>');
+ echo('</td>');
+ echo('</tr>');
+ echo('</table>');
+ /* Start: geos_children */
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_CHILDREN_DIR.'/geo_children_'.$geo.'.php');
+
if((@!include('forumdata/'.GEO_CHILDREN_DIR.'/geo_children_'.$geo.'.php'))) {
+ $geos_children = $Geo->nmGetChildrenArray($geo);
+ foreach ($geos_children as $g => $g_name) {
+ $data['geos_children'][$g]=$g_name;
+ }
+ if(!empty($geos_children)){
+ $data['children_expiration'] = 3600 + time();
+ nmwritetocache('geo_children_'.$geo, '', nmgetcachevars($data),'', GEO_CHILDREN_DIR);
+ }
+ }
+ if (count($geos_children) > 0) {
+ $len_total = 0;
+ foreach ($geos_children as $elem) {
+ $len_total = $len_total + mb_strlen($elem, 'UTF-8');
+ }
+ $len_avg = floor($len_total / count($geos_children));
+ $br = calc_geo_break($len_avg);
+ $o = '';
+ $o .= '<div class="geo_home_bar"><img src="'.IMGDIR.'/fico_web.gif"
align="absmiddle" /> ������' . $Geo->geo->name->cn . '������</div>';
+ $o .= '<div class="geo_home_content">';
+ $o .= '<blockquote>';
+ $i = 0;
+ foreach ($geos_children as $g => $g_name) {
+ $i++;
+ $css_color = rand_color();
+ $o .= '<a href="'.$bbsdir.'/geo/' . $g . '" class="var"
style="color: ' . $css_color . ';">' . $g_name . '</a>&nbsp; ';
+ if ($i % $br == 0) {
+ $o .= '<br />';
+ }
+ }
+ $o .= '</blockquote>';
+ $o .= '</div>';
+ echo $o;
+ }
+ /* End: array geos_children */
+ /* Start: array geos_parallel */
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_PARALLEL_DIR.'/geo_parallel_'.$geo.'.php');
+
if((@!include('forumdata/'.GEO_PARALLEL_DIR.'/geo_parallel_'.$geo.'.php'))) {
+ $geos_parallel = $Geo->nmGetParallelArray($geo);
+ foreach ($geos_parallel as $g => $g_name) {
+ $data['geos_parallel'][$g]=$g_name;
+ }
+ if(!empty($geos_parallel)){
+ $data['parallel_expiration'] = 3600 + time();
+ nmwritetocache('geo_parallel_'.$geo, '', nmgetcachevars($data),'',GEO_PARALLEL_DIR);
+ }
+ }
+ if (count($geos_parallel) > 0) {
+ $len_total = 0;
+ foreach ($geos_parallel as $elem) {
+ $len_total = $len_total + mb_strlen($elem, 'UTF-8');
+ }
+ $len_avg = floor($len_total / count($geos_parallel));
+ $br = calc_geo_break($len_avg);
+ echo('<hr class="board" />');
+ $o = '';
+ $o .= '<div class="geo_home_bar"><img
src="'.IMGDIR.'/world_link.png" align="absmiddle" /> ��' . $Geo->geo->name->cn . 'ƽ�е�����</div>';
+ $o .= '<div class="geo_home_content">';
+ $o .= '<blockquote>';
+ $i = 0;
+ foreach ($geos_parallel as $g => $g_name) {
+ $i++;
+ $css_color = rand_color();
+ $o .= '<a href="'.$bbsdir.'/geo/' . $g . '" class="var"
style="color: ' . $css_color . ';">' . $g_name . '</a>&nbsp; ';
+ if ($i % $br == 0) {
+ $o .= '<br />';
+ }
+ }
+ $o .= '</blockquote>';
+ $o .= '</div>';
+ echo $o;
+
+ }
+ /* End: array geos_parallel */
+ echo('<div class="geo_home_middle" style="margin-bottom: 5px;" ><img
src="'.IMGDIR.'/gt.gif" align="absmiddle" /> ');
+ $i = 0;
+ foreach ($geo_route as $g => $g_name) {
+ $i++;
+ if ($i == 1) {
+ if ($g == $geo) {
+ echo($g_name);
+ } else {
+ echo('<a href="'.$bbsdir.'/geo/' . $g . '" class="o">' . $g_name . '</a>');
+ }
+ } else {
+ if ($g == $geo) {
+ echo(' &gt; ' . $g_name);
+ } else {
+ echo(' &gt; <a href="'.$bbsdir.'/geo/' . $g . '" class="o">' . $g_name . '</a>');
+ }
+ }
+ }
+ echo('</div>');
+ include template('footer');
+ break;
+
+ case 'user_move':
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ if (get_magic_quotes_gpc()) {
+ $geo = stripslashes($geo);
+ }
+ /*if (!$Geo->nmIsExist($geo)) {
+ $geo = 'earth';
+ }*/
+ } else {
+ $geo = $geo_user;
+ }
+ $geo_md5 = md5($geo);
+ //$geo_real = mysql_real_escape_string($geo, $db);
+ $Geo = new Geo($geo, $Geo->map);
+ $geos_all_children = $Geo->nmGetRecursiveChildrenArray('', true);
+ $geos_all_children_sql = implode(',', $geos_all_children);
+ $Geo->geo->description->cn = iconv('utf-8', 'gbk', $Geo->geo->description->cn);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->geo->name->cn);
+ $navtitle = $Geo->geo->name->cn.' - ' ;
+
+ include template('header');
+ include template('geo_move');
+ echo('��ǰ���� &gt; ');
+ $geo_route = $Geo->nmGetRoute();
+ $i = 0;
+ foreach ($geo_route as $g => $n) {
+ $i++;
+ if ($g == $geo) {
+ if ($i == 1) {
+ echo($n);
+ } else {
+ echo(' &gt; ' . $n);
+ }
+ } else {
+ if ($i == 1) {
+ echo('<a href="'.$bbsdir.'/user/move/' . $g . '" class="o">' . $n . '</a>');
+ } else {
+ echo(' &gt; <a href="'.$bbsdir.'/user/move/' . $g . '"
class="o">' . $n . '</a>');
+ }
+ }
+ }
+ if ($geo == $geo_user) {
+ echo(' <img src="'.IMGDIR.'/geo_here.gif" align="absmiddle" />');
+ } else {
+ echo(' <a href="'.$bbsdir.'/user/settle/' . $geo . '"
class="var"><img src="'.IMGDIR.'/geo_set.gif" align="absmiddle"
border="0" /></a>');
+ }
+ echo('<hr class="board" />');
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_CHILDREN_DIR.'/geo_children_'.$geo.'.php');
+
if((@!include('forumdata/'.GEO_CHILDREN_DIR.'/geo_children_'.$geo.'.php'))) {
+ $geos_children = $Geo->nmGetChildrenArray($geo);
+ foreach ($geos_children as $g => $g_name) {
+ $data['geos_children'][$g]=$g_name;
+ }
+ if(!empty($geos_children)){
+ $data['children_expiration'] = 3600 + time();
+ nmwritetocache('geo_children_'.$geo, '',
nmgetcachevars($data),'', GEO_CHILDREN_DIR);
+ }
+ }
+ if (count($geos_children) > 0) {
+ $len_total = 0;
+ foreach ($geos_children as $elem) {
+ $len_total = $len_total + mb_strlen($elem, 'UTF-8');
+ }
+ $len_avg = floor($len_total / count($geos_children));
+ switch ($len_avg) {
+ case 2:
+ default:
+ $br = 12;
+ break;
+ case 3:
+ $br = 10;
+ break;
+ case 4;
+ $br = 8;
+ break;
+ case 5:
+ $br = 6;
+ break;
+ case 6:
+ $br = 4;
+ break;
+ }
+ echo('<img src="'.IMGDIR.'/gt.gif" align="absmiddle" /> ������' . $Geo->geo->name->cn . '������');
+ echo('<blockquote>');
+ $i = 0;
+ foreach ($geos_children as $g => $n) {
+ $i++;
+ $css_color = rand_color();
+ echo('<a href="/bbs/user/move/' . $g . '" class="var"
style="color: ' . $css_color . ';">' . $n . '</a>&nbsp; ');
+ if ($i % $br == 0) {
+ echo('<br />');
+ }
+ }
+ echo('</blockquote>');
+
+ }
+
+ @include(DISCUZ_ROOT.'./forumdata/'.GEO_PARALLEL_DIR.'/geo_parallel_'.$geo.'.php');
+
if((@!include('forumdata/'.GEO_PARALLEL_DIR.'/geo_parallel_'.$geo.'.php'))) {
+ $geos_parallel = $Geo->nmGetParallelArray($geo);
+ foreach ($geos_parallel as $g => $g_name) {
+ $data['geos_parallel'][$g]=$g_name;
+ }
+ if(!empty($geos_parallel)){
+ $data['parallel_expiration'] = 3600 + time();
+ nmwritetocache('geo_parallel_'.$geo, '', nmgetcachevars($data),'',GEO_PARALLEL_DIR);
+ }
+ }
+ if (count($geos_parallel) > 0) {
+ $len_total = 0;
+ foreach ($geos_parallel as $elem) {
+ $len_total = $len_total + mb_strlen($elem, 'UTF-8');
+ }
+ $len_avg = floor($len_total / count($geos_parallel));
+ switch ($len_avg) {
+ case 2:
+ default:
+ $br = 12;
+ break;
+ case 3:
+ $br = 10;
+ break;
+ case 4;
+ $br = 8;
+ break;
+ case 5:
+ $br = 6;
+ break;
+ case 6:
+ $br = 4;
+ break;
+ }
+ echo('<img src="'.IMGDIR.'gt.gif" align="absmiddle" /> ��' . $Geo->geo->name->cn . 'ƽ�е�����');
+ echo('<blockquote>');
+ $i = 0;
+ foreach ($geos_parallel as $g => $n) {
+ $i++;
+ $css_color = rand_color();
+ echo('<a href="/bbs/user/move/' . $g . '" class="var"
style="color: ' . $css_color . ';">' . $n . '</a>&nbsp; ');
+ if ($i % $br == 0) {
+ echo('<br />');
+ }
+ }
+ echo('</blockquote>');
+ }
+
+ echo('<hr class="board" />');
+
+ if ($Geo->geo->geo != $geo_user) {
+ echo('<img src="'.IMGDIR.'/gt.gif" align="absmiddle"
/> �ҵ�ǰ���úõ����ڵ� &gt <a href="/bbs/user/move/' . $geo_user . '"
class="o">' . $Geo->map['name'][$geo_user] = iconv('utf-8', 'gbk', $Geo->map['name'][$geo_user]) . '</a>');
+
+ }
+ echo('<hr class="board" />');
+ echo('<div class="geo_home_middle">');
+ if (mb_strlen($Geo->geo->description->cn, 'UTF-8') > 0) {
+ echo('<span class="geo_home_desc">' . $Geo->geo->description->cn . '</span>');
+ } else {
+ echo ('<span class="tip_i"><small>no description yet ...</small></span>');
+ }
+ echo('</div>');
+
+ echo('<hr class="board" />');
+
+ echo('<img src="'.IMGDIR.'/information.png" align="absmiddle"
class="ico" />��������Ҫ����Ϊ���ڵص�����֮����������Ҳ���ɫ����������</span>');
+
+ $sql = "SELECT COUNT(*) FROM cdb_members WHERE usr_geo IN ({$geos_all_children_sql})";
+ $rs = mysql_query($sql);
+ $geo_count = intval(mysql_result($rs, 0, 0));
+ mysql_free_result($rs);
+ echo('<hr class="board" />');
+ echo('<img src="'.IMGDIR.'/gt.gif" align="absmiddle" /> �� <a
href="/who/settle/' . $geo . '" class="t">&nbsp;' .
$geo_count . '&nbsp;</a> ����' . $Geo->geo->name->cn . '��');
+ echo('</div>');
+ include template('footer');
+ break;
+
+ case 'settle':
+ if($discuz_uid) {
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ $Geo = new Geo($geo);
+ if ($Geo->geo->geo) {
+ $geo_md5 = md5($geo);
+ $geos_all_children = $Geo->nmGetRecursiveChildrenArray('', true);
+ $geos_all_children_sql = implode(',', $geos_all_children);
+ $query = $db->query("UPDATE cdb_members SET usr_geo = '{$geo}'
WHERE uid = $discuz_uid");
+ updatenmcache('geo_newthread_'.$geo_md5);
+ updatenmcache('geo_now_'.$geo_md5);
+ dheader("Location: {$boardurl}user/move.nnm");
+ } else {
+ dheader("Location: {$boardurl}user/move.nnm");
+ }
+ } else {
+ dheader("Location: {$boardurl}user/move.nnm");
+ }
+ }
+ break;
+
+ case 'set_going':
+ if($discuz_uid) {
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ $Geo = new Geo($geo);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->map['name'][$geo]);
+ if ($Geo->geo->geo) {
+ $query = $db->query("SELECT ggg_id FROM cdb_geo_going WHERE
ggg_geo = '{$geo}' AND ggg_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ mysql_free_result($query);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'�Ѿ�����������ȥ�ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ } else {
+ mysql_free_result($query);
+ $now = time();
+ $sql = "INSERT INTO cdb_geo_going(ggg_geo, ggg_uid, ggg_created)
VALUES('{$geo}', {$discuz_uid}, {$now})";
+ mysql_unbuffered_query($sql);
+ geo_going_update($discuz_uid);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'�Ѿ���������ȥ�ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ }
+ break;
+
+ case 'revert_going':
+ if($discuz_uid) {
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ $Geo = new Geo($geo);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->map['name'][$geo]);
+ if ($Geo->geo->geo) {
+ $query = $db->query("SELECT ggg_id FROM cdb_geo_going WHERE
ggg_geo = '{$geo}' AND ggg_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ mysql_free_result($query);
+ $sql = "DELETE FROM cdb_geo_going WHERE ggg_geo = '{$geo}' AND
ggg_uid = {$discuz_uid}";
+ mysql_unbuffered_query($sql);
+ geo_going_update($discuz_uid);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'����������ȥ�ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ } else {
+ mysql_free_result($query);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'��������ȥ�ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ }
+ break;
+
+ case 'set_been':
+ if($discuz_uid) {
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ $Geo = new Geo($geo);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->map['name'][$geo]);
+ if ($Geo->geo->geo) {
+ $query = $db->query("SELECT gbn_id FROM cdb_geo_been WHERE
gbn_geo = '{$geo}' AND gbn_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ mysql_free_result($query);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'�Ѿ���������ȥ��ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ } else {
+ mysql_free_result($query);
+ $now = time();
+ $sql = "INSERT INTO cdb_geo_been(gbn_geo, gbn_uid, gbn_created)
VALUES('{$geo}', {$discuz_uid}, {$now})";
+ mysql_unbuffered_query($sql);
+ geo_going_update($discuz_uid);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'�Ѿ�������ȥ��ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ }
+ break;
+
+ case 'revert_been':
+ if($discuz_uid) {
+ if (isset($_GET['geo'])) {
+ $geo = strtolower(make_single_safe($_GET['geo']));
+ $Geo = new Geo($geo);
+ $Geo->geo->name->cn = iconv('utf-8', 'gbk', $Geo->map['name'][$geo]);
+ if ($Geo->geo->geo) {
+ $query = $db->query("SELECT gbn_id FROM cdb_geo_been WHERE
gbn_geo = '{$geo}' AND gbn_uid = {$discuz_uid}");
+ if (mysql_num_rows($query) == 1) {
+ mysql_free_result($query);
+ $sql = "DELETE FROM cdb_geo_been WHERE gbn_geo = '{$geo}' AND
gbn_uid = {$discuz_uid}";
+ mysql_unbuffered_query($sql);
+ geo_going_update($discuz_uid);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'��������ȥ��ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ } else {
+ mysql_free_result($query);
+ session_start();
+ $_SESSION['geo_message'] = $Geo->geo->name->cn.'������ȥ��ĵط�';
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ } else {
+ dheader("Location: {$boardurl}geo/{$geo}");
+ }
+ }
+ break;
+
+ default:
+ dheader("Location: {$boardurl}geo/{$geo}");
+ break;
+}
+?>
\ No newline at end of file

Added: trunk/upload/parasy_m_view.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_m_view.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,300 @@
+<?php
+
+/*
+ [Discuz!] (C)2001-2007 Comsenz Inc.
+ This is NOT a freeware, use is subject to license terms
+
+ $RCSfile: viewthread.php,v $
+ $Revision: 1.166.2.13 $
+ $Date: 2007/05/14 13:32:08 $
+*/
+define('CURSCRIPT', 'viewthread');
+define('SQL_ADD_THREAD', ' t.dateline, t.special, t.lastpost AS lastthreadpost,');
+
+require_once './include/common.inc.php';
+require_once DISCUZ_ROOT.'./include/forum.func.php';
+supe_dbconnect();
+
+
+$page = max(1, intval($page));
+
+if($cachethreadlife && $forum['threadcaches'] && !$discuz_uid && $page
== 1 && !$forum['special']) {
+
+ $forum['livedays'] = ceil(($timestamp - $forum['dateline']) / 86400);
+ $forum['lastpostdays'] = ceil(($timestamp - $forum['lastthreadpost'])
/ 86400);
+
+ $threadcachemark = 100 - (
+ $forum['displayorder'] * 15 +
+ $forum['digest'] * 10 +
+ min($forum['views'] / max($forum['livedays'], 10) * 2, 50) +
+ max(-10, (15 - $forum['lastpostdays'])) +
+ min($forum['replies'] / $_DCACHE['settings']['postperpage'] * 1.5, 15));
+
+ if($threadcachemark < $forum['threadcaches']) {
+
+ $threadcache = getcacheinfo($tid);
+
+ if($timestamp - $threadcache['filemtime'] > $cachethreadlife) {
+ @unlink($threadcache['filename']);
+ define('CACHE_FILE', $threadcache['filename']);
+
+ } else {
+ readfile($threadcache['filename']);
+
+ $supe_pushstatusadd = '';
+ viewthread_updateviews();
+
+ $debug && debuginfo();
+ die('<script
type="text/javascript">document.getElementById("debuginfo").innerHTML
= " '.($debug ? 'Update at '.gmdate("H:i:s", $threadcache['filemtime']
+ 3600 * 8).', Processed in '.$debuginfo['time'].'
second(s), '.$debuginfo['queries'].' Queries'.($gzipcompress ? ', Gzip enabled' : '') : '').'";</script>');
+ }
+ }
+}
+
+require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
+
+$discuz_action = 3;
+
+$query = $db->query("SELECT * FROM {$tablepre}threads t WHERE
tid='$tid' AND displayorder>='0'");
+
+$lastmod = array();
+
+if(!$thread = $db->fetch_array($query)) {
+
+ $tid = $_GET['tid'];
+ if(is_numeric($tid) && $supe['status'] && !empty($supe_fromsupesite)
&& md5("$discuz_auth_key-$tid") == $supe_fromsupesite) {
+ supe_dbconnect();
+ $supe['db']->query("UPDATE {$supe[tablepre]}spaceitems SET tid='0'
WHERE tid='$tid'");
+ }
+
+ wapshowmessage('thread_nonexistence');
+
+}
+
+$supe_fromdiscuz = $supe['status'] && $thread['itemid'] ? md5("$discuz_auth_key-$thread[itemid]") : '';
+$iscircle = $supe['status'] && $supe['circlestatus'] &&
$forum['status'] == 2 && $thread['sgid'];
+
+$codecount = 0;
+$thread['subjectenc'] = rawurlencode($thread['subject']);
+$fromuid = $creditspolicy['promotion_visit'] && $discuz_uid ? '&amp;fromuid='.$discuz_uid : '';
+
+$oldtopics = isset($_DCOOKIE['oldtopics']) ? $_DCOOKIE['oldtopics'] : 'D';
+if(strpos($oldtopics, 'D'.$tid.'D') === FALSE) {
+ $oldtopics = 'D'.$tid.$oldtopics;
+ if(strlen($oldtopics) > 3072) {
+ $oldtopics = preg_replace("((D\d+)+D).*$", "\\1", substr($oldtopics,
0, 3072));
+ }
+ dsetcookie('oldtopics', $oldtopics, 3600);
+}
+
+if($lastvisit < $thread['lastpost'] && (!isset($_DCOOKIE['fid'.$fid]) |
| $thread['lastpost'] > $_DCOOKIE['fid'.$fid])) {
+ dsetcookie('fid'.$fid, $thread['lastpost'], 3600);
+}
+$navigation = '&raquo; '.$forum['name'].' &raquo; '.$thread['subject'];
+$navtitle = $thread['subject'];
+if($forum['type'] == 'sub') {
+ $query = $db->query("SELECT fid, name FROM {$tablepre}forums WHERE fid='$forum[fup]'");
+ $fup = $db->fetch_array($query);
+ $navigation = '&raquo; <a href="'.($iscircle ? $supe['siteurl'].'?action_mygroup_gid_'.$thread['sgid'].'_op_list_type_bbs_fid_'.$fup[fid] : 'forumdisplay.php?fid='.$fup[fid]).'">'.$fup[name].'</a> '.$navigation;
+ $navtitle = $navtitle.' - '.strip_tags($fup['name']);
+}
+$navtitle .= ' - ';
+
+if($thread['typeid'] &&
isset($forum['threadtypes']['types'][$thread['typeid']])) {
+ $thread['subject'] = ($forum['threadtypes']['listable'] ? '<a href="forumdisplay.php?fid='.$fid.'&amp;filter=type&amp;typeid='.$thread['typeid'].'">['.$forum['threadtypes']['types'][$thread['typeid']].']</a>' : '['.$forum['threadtypes']['types'][$thread['typeid']].']').' '.$thread['subject'];
+}
+if(empty($forum['allowview'])) {
+ if(!$forum['viewperm'] && !$readaccess) {
+ wapshowmessage('group_nopermission', NULL, 'NOPERM');
+ } elseif($forum['viewperm'] && !forumperm($forum['viewperm'])) {
+ $navtitle = '';
+ wapshowmessage('forum_nopermission', NULL, 'NOPERM');
+ }
+}
+
+if($forum['password'] && $forum['password'] !=
$_DCOOKIE['fidpw'.$fid]) {
+ dheader("Location: {$boardurl}forumdisplay.php?fid=$fid&amp;sid=$sid");
+}
+
+if($thread['readperm'] && $thread['readperm'] > $readaccess
&& !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) {
+ wapshowmessage('thread_nopermission', NULL, 'NOPERM');
+}
+
+$raterange = $modratelimit && $adminid == 3
&& !$forum['ismoderator'] ? array() : $raterange;
+
+$extra = rawurlencode($extra);
+
+$allowgetattach = !empty($forum['allowgetattach']) || ($allowgetattach
&& !$forum['getattachperm']) || forumperm($forum['getattachperm']);
+
+$postlist = array();
+$attachpids = $announcepm = 0;
+if(empty($action) && $tid) {
+
+ $showsettings = str_pad(decbin($showsettings), 3, '0', STR_PAD_LEFT);
+
+ $customshow = $discuz_uid ? str_pad(base_convert($customshow, 10, 3),
3, '0', STR_PAD_LEFT) : '222';
+
+ $showsignatures = $customshow{0} == 2 ? $showsettings{0} : $customshow{0};
+ $showavatars = $customshow{1} == 2 ? $showsettings{1} : $customshow{1};
+ $showimages = $customshow{2} == 2 ? $showsettings{2} : $customshow{2};
+ $allowpaytoauthor = $forum['allowpaytoauthor'];
+
+ $ppp = M_PER_PAGE;
+
+ $totalpage = ceil(($thread['replies'] + 1) / $ppp);
+ $page > $totalpage && $page = $totalpage;
+
+ $pagebydesc = $page > 50 && $page > ($totalpage / 2) ? TRUE : FALSE;
+
+ if($pagebydesc) {
+ $firstpagesize = ($thread['replies'] + 1) % $ppp;
+ $ppp2 = $page == $totalpage && $firstpagesize ? $firstpagesize : $ppp;
+ $realpage = $totalpage - $page + 1;
+ $start_limit = max(0, ($realpage - 2) * $ppp + $firstpagesize);
+ $numpost = ($page - 1) * $ppp;
+ $pageadd = "ORDER BY dateline DESC LIMIT $start_limit, $ppp2";
+ } else {
+ $start_limit = $numpost = ($page - 1) * $ppp;
+ if($start_limit > $thread['replies']) {
+ $start_limit = $numpost = 0;
+ $page = 1;
+ }
+ $pageadd = "ORDER BY dateline LIMIT $start_limit, $ppp";
+ }
+
+ $multipage = now_wap_multi($thread['replies'] + 1, $ppp,
$page, "{$boardurl}t/$tid/$p_page/", $threadcount);
+
+ if($thread['special'] > 0) {
+ include_once DISCUZ_ROOT.'./include/special.inc.php';
+ }
+
+ $extcredits_thread = array();
+
+ if(!empty($extcredits)) {
+ foreach($extcredits as $key => $value) {
+ if($value['showinthread']) {
+ $extcredits_thread['extcredits'.$key] = array('title' =>
$value['title'], 'unit' => $value['unit']);
+ }
+ }
+ }
+
+ $fieldsadd = '';
+ if(is_array($_DCACHE['fields_thread'])) {
+ foreach($_DCACHE['fields_thread'] as $field) {
+ $fieldsadd .= ', mf.field_'.$field['fieldid'];
+ }
+ }
+
+ $newpostanchor = $postcount = $ratelogpids = 0;
+
+ $onlineauthors = array();
+ $query = $db->query("SELECT p.*, m.uid, m.username, m.groupid,
m.adminid, m.regdate, m.lastactivity, m.posts,
+ m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3,
m.extcredits4, m.extcredits5, m.extcredits6,
+ m.extcredits7, m.extcredits8, m.invisible $fieldsadd
+ FROM {$tablepre}posts p
+ LEFT JOIN {$tablepre}members m ON m.uid=p.authorid
+ WHERE p.tid='$tid' AND p.invisible='0' $pageadd");
+
+ while($post = $db->fetch_array($query)) {
+
+ if(!$newpostanchor && $post['dateline'] > $lastvisit) {
+ $post['newpostanchor'] = '<a name="newpost"></a>';
+ $newpostanchor = 1;
+ } else {
+ $post['newpostanchor'] = '';
+ }
+ $post['lastpostanchor'] = $numpost == $thread['replies'] ? '<a name="lastpost"></a>' : '';
+
+ if($pagebydesc) {
+ $post['number'] = $numpost + $ppp2--;
+ } else {
+ $post['number'] = ++$numpost -1;
+ }
+ $post['count'] = $postcount++;
+ $post['dbdateline'] = $post['dateline'];
+ $post['dateline'] = gmdate("$dateformat $timeformat",
$post['dateline'] + $timeoffset * 3600);
+ $post['groupid'] = $_DCACHE['usergroups'][$post['groupid']] ?
$post['groupid'] : 7;
+
+ if($post['username']) {
+ $onlineauthors[] = $post['authorid'];
+ $post['groupid'] = getgroupid($post['authorid'],
$_DCACHE['usergroups'][$post['groupid']], $post);
+ $post['readaccess'] = $_DCACHE['usergroups'][$post['groupid']]['readaccess'];
+ if($userstatusby == 1 ||
$_DCACHE['usergroups'][$post['groupid']]['byrank'] === '0') {
+ $post['authortitle'] = $_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
+ $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars'];
+ } elseif($userstatusby == 2) {
+ foreach($_DCACHE['ranks'] as $rank) {
+ if($post['posts'] > $rank['postshigher']) {
+ $post['authortitle'] = $rank['ranktitle'];
+ $post['stars'] = $rank['stars'];
+ break;
+ }
+ }
+ }
+ $post['authoras'] = !$post['anonymous'] ? ' '.addslashes($post['author']) : '';
+ $post['regdate'] = gmdate($dateformat, $post['regdate'] +
$timeoffset * 3600);
+ $post['allowuseblog'] = $_DCACHE['usergroups'][$post['groupid']]['allowuseblog'];
+
+ } else {
+
+ if(!$post['authorid']) {
+ $post['useip'] = substr($post['useip'], 0, strrpos($post['useip'], '.')).'.x';
+ }
+
+ }
+
+ if($ratelogrecord && $post['ratetimes']) $ratelogpids .= ','.$post['pid'];
+
+ $forum['allowbbcode'] = $forum['allowbbcode'] ?
($_DCACHE['usergroups'][$post['groupid']]['allowcusbbcode'] ? 2 : 1) : 0;
+
+ $post['ratings'] = karmaimg($post['rate'], $post['ratetimes']);
+ $post['message'] = discuzcode($post['message'], 1,
$post['bbcodeoff'], $post['htmlon'], 0, $forum['allowbbcode'], (0 &&
$showimages ? 1 : 0), $forum['allowhtml'], ($forum['jammer'] &&
$post['authorid'] != $discuz_uid ? 1 : 0), 0, $post['authorid']);
+ $post['signature'] = $post['usesig'] ? $post['signature'] : '';
+ $postlist[$post['pid']] = $post;
+ }
+
+ if(empty($postlist)) {
+ wapshowmessage('undefined_action', NULL, 'HALTED');
+ }
+
+
+ $usesigcheck = $discuz_uid && $sigstatus ? 'checked' : '';
+ $allowpostreply = ((!$thread['closed'] && !checkautoclose()) ||
$forum['ismoderator']) && ((!$forum['replyperm'] && $allowreply) ||
($forum['replyperm'] && forumperm($forum['replyperm'])) || $forum['allowreply']);
+ $allowpost = (!$forum['postperm'] && $allowpost) ||
($forum['postperm'] && forumperm($forum['postperm'])) || $forum['allowpost'];
+
+ if($allowpost) {
+ $allowpostpoll = $allowpostpoll && ($forum['allowpostspecial'] & 1);
+ $allowposttrade = $allowposttrade && ($forum['allowpostspecial'] & 2);
+ $allowpostreward = $allowpostreward && ($forum['allowpostspecial'] &
4) && isset($extcredits[$creditstrans]);
+ $allowpostactivity = $allowpostactivity &&
($forum['allowpostspecial'] & 8);
+ } else {
+ $allowpostpoll = $allowposttrade = $allowpostreward =
$allowpostactivity = FALSE;
+ }
+
+ viewthread_updateviews();
+
+ include template($iscircle && empty($frombbs) ? 'supesite_viewthread' : 'mobile_view');
+
+}
+
+function viewthread_updateviews() {
+ global $delayviewcount, $supe_pushstatusadd, $timestamp, $tablepre,
$tid, $db, $adminid;
+
+ if(($delayviewcount == 1 || $delayviewcount == 3)
&& !$supe_pushstatusadd) {
+ $logfile = './forumdata/cache/cache_threadviews.log';
+ if(substr($timestamp, -2) == '00') {
+ require_once DISCUZ_ROOT.'./include/misc.func.php';
+ updateviews('threads', 'tid', 'views', $logfile);
+ }
+ if(@$fp = fopen(DISCUZ_ROOT.$logfile, 'a')) {
+ fwrite($fp, "$tid\n");
+ fclose($fp);
+ } elseif($adminid == 1) {
+ showmessage('view_log_invalid');
+ }
+ } else {
+ $db->query("UPDATE {$tablepre}threads SET views=views+1
$supe_pushstatusadd WHERE tid='$tid'", 'UNBUFFERED');
+ }
+ unset($supe_pushstatusadd);
+}
+
+?>
\ No newline at end of file

Added: trunk/upload/parasy_now_api.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_now_api.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,70 @@
+<?php
+require_once './parasy/SimpleCommon.inc.php';
+
+if ($action == "api"){
+ switch ($type) {
+ case 'input':
+ break;
+ case 'output_everyone':
+ break;
+ case 'output_personal':
+ break;
+ case 'output_friends':
+ break;
+ default:
+ break;
+ }
+}
+
+if ($action == "feed"){
+ switch ($type) {
+ case 'public':
+ $title ='�������ʲô';
+ require_once DISCUZ_ROOT.'./forumdata/cache/cache_nowhere.php';
+ dheader("Content-type: application/xml");
+ echo "<?xml version=\"1.0\" encoding=\"gbk\"?>\n";
+ include template('feed_nowhere');
+ break;
+ }
+}
+
+if ($action == "stats_xml"){
+ switch ($type) {
+ case 'data':
+ $statscachelife = $statscachelife *30;
+ $author = trim($author);
+ $query = $db->query("SELECT username,uid FROM {$tablepre}members
WHERE username='".$author."'");
+ $count = mysql_num_rows($query);
+ if ($count == 0) {
+ dheader("Location: {$boardurl}now");
+ } else {
+ $member = $db->fetch_array($query);
+ $innow_query = $db->query("SELECT COUNT(*) FROM
{$tablepre}plugin_now WHERE authorid = '".$member['uid']."'");
+ $innow_count = $db->result($innow_query, 0);
+ if ($innow_count == 0){
+ $message['iconshow'] ='N/A';
+ } else {
+ $message_list = array();
+ $icons_query = $db->query("SELECT icons,COUNT(icons) FROM
cdb_plugin_now WHERE authorid = '".$member['uid']."' AND icons !=0
GROUP BY icons");
+ while ($message = $db->fetch_array($icons_query)) {
+ $message['iconshow'] = nwxmlICONS($message['icons']);
+ $message['counts'] = $message['COUNT(icons)'];
+ $message_list[] = $message;
+ }
+ }
+ header("Content-Type:text/html;charset=utf-8");
+ include template('now_stats_xml');
+ }
+ break;
+
+ case 'setting':
+ $title_xml = '{title}';
+ $value_xml = '{value}';
+ $percent_xml = '{percents}';
+ header("Content-Type:text/html;charset=utf-8");
+ include template('now_stats_xml_setting');
+ break;
+ }
+}
+
+?>
\ No newline at end of file

Added: trunk/upload/parasy_operation.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_operation.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,115 @@
+<?php
+/* Project Parasynthesis
+* Author: Fujiwara Sai
+* Usage: Operation
+*/
+
+define('NOROBOT', TRUE);
+define('CURSCRIPT', 'operation');
+require_once './include/common.inc.php';
+
+if(empty($discuz_uid)){
+ dheader("Location: {$boardurl}");
+}
+
+if(empty($type)){
+ dheader("Location: {$boardurl}");
+}
+
+if ($type = "svp"){
+ if ($operation = "new"){
+ if (isset($_POST['url'])){
+ $url = trim($_POST['url']);
+ if (strlen($url) == 0) {
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ }
+ if (substr(strtolower($url), 0, 7) == 'http://') {
+ $url = substr($url, 7, strlen($url) - 7);
+ }
+ $url = mysql_real_escape_string(strip_quotes($url));
+ $query = $db->query("SELECT svp_id FROM {$tablepre}savepoint WHERE
svp_uid = '$discuz_uid' AND svp_url = '{$url}'");
+ if (mysql_num_rows($query) == 0) {
+ mysql_free_result($query);
+ $query = $db->query("SELECT svp_id FROM {$tablepre}savepoint WHERE
svp_uid = '$discuz_uid'");
+ if (mysql_num_rows($query) < 25) {
+ $query = $db->query("INSERT INTO {$tablepre}savepoint (svp_uid,
svp_url, svp_created, svp_lastupdated)
VALUES('{$discuz_uid}', '{$url}', '" . time() . "', '" . time() ."')");
+ svp_update($discuz_uid);
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ } else {
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ }
+ } else {
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ }
+ }
+ }
+
+ if ($operation = "del"){
+ if (isset($_GET['savepoint_id'])) {
+ $savepoint_id = intval($_GET['savepoint_id']);
+ $query = $db->query("SELECT svp_id, svp_uid FROM
{$tablepre}savepoint WHERE svp_id = {$savepoint_id}");
+ if (mysql_num_rows($query) == 1) {
+ $svp = $db->fetch_array($query);
+ if ($discuz_uid == $svp['svp_uid']) {
+ $query = $db->query("DELETE FROM {$tablepre}savepoint WHERE
svp_id = {$savepoint_id} LIMIT 1");
+ svp_update($discuz_uid);
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ } else {
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ }
+ } else {
+ dheader("Location: {$boardurl}u-".$discuz_uid.".html");
+ }
+ }
+ }
+}
+
+if ($type = "chl") {
+ if ($operation = "new"){
+ if (isset($_POST['chl_url'])){
+ $chl_url = trim($_POST['chl_url']);
+ if (!$chl_title) {
+ $chl_title = 'Feed'.rand(1,999);
+ }
+ if (strlen($chl_url) == 0) {
+ dheader("Location: {$boardurl}dashboard");
+ }
+ if (substr(strtolower($chl_url), 0, 7) == 'http://') {
+ $chl_url = substr($chl_url, 7, strlen($chl_url) - 7);
+ }
+ $chl_url = mysql_real_escape_string(strip_quotes($chl_url));
+ $query = $db->query("SELECT chl_id FROM {$tablepre}channel WHERE
chl_uid = '$discuz_uid' AND chl_url = '{$chl_url}'");
+ if (mysql_num_rows($query) == 0) {
+ mysql_free_result($query);
+ $query = $db->query("SELECT chl_id FROM {$tablepre}channel WHERE
chl_uid = '$discuz_uid'");
+ if (mysql_num_rows($query) < 15) {
+ $query = $db->query("INSERT INTO {$tablepre}channel (chl_uid,
chl_url, chl_title, chl_dateline)
VALUES('{$discuz_uid}', '{$chl_url}', '{$chl_title}', '" . time() ."')");
+ dheader("Location: {$boardurl}dashboard");
+ } else {
+ dheader("Location: {$boardurl}dashboard");
+ }
+ } else {
+ dheader("Location: {$boardurl}dashboard");
+ }
+ }
+ }
+
+ if ($operation = "del"){
+ if (isset($_GET['chl_id'])) {
+ $chl_id = intval($_GET['chl_id']);
+ $query = $db->query("SELECT chl_id, chl_uid FROM {$tablepre}channel
WHERE chl_id = {$chl_id}");
+ if (mysql_num_rows($query) == 1) {
+ $chl = $db->fetch_array($query);
+ if ($discuz_uid == $chl['chl_uid']) {
+ $query = $db->query("DELETE FROM {$tablepre}channel WHERE chl_id
= {$chl_id} LIMIT 1");
+ dheader("Location: {$boardurl}dashboard");
+ } else {
+ dheader("Location: {$boardurl}dashboard");
+ }
+ } else {
+ dheader("Location: {$boardurl}dashboard");
+ }
+ }
+ }
+}
+?>
\ No newline at end of file

Added: trunk/upload/parasy_section.php
==============================================================================
--- (empty file)
+++ trunk/upload/parasy_section.php Sat Nov 10 20:07:29 2007
@@ -0,0 +1,74 @@
+<?php
+/* Project Parasynthesis
+* Author: Fujiwara Sai
+* Usage: Section Page
+*/
+define('CURSCRIPT', 'section');
+
+require_once './include/common.inc.php';
+require_once DISCUZ_ROOT.'./include/forum.func.php';
+require_once DISCUZ_ROOT.'./include/cache.func.php';
+
+/* Loading Cache */
+require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
+@include(DISCUZ_ROOT.'./forumdata/cache/cache_section_'.$gid.'.php');
+
+$discuz_action = 1;
+$section_cachelife = 1800;
+
+$navigation = $navtitle = '';
+$rsshead = $rssstatus ? ('<link rel="alternate"
type="application/rss+xml" title="'.$bbname.'"
href="'.$boardurl.'rss.php?auth='.$rssauth."\" />\n") : '';
+
+$catlist = $forumlist = $sublist = $pmlist = array();
+$threads = $posts = $todayposts = $fids = $announcepm = 0;
+
+$gid = !empty($gid) ? intval($gid) : 0;
+if(!$gid) {
+ header('location:index.php');
+} else {
+ require_once DISCUZ_ROOT.'./include/category.inc.php';
+
+ foreach($_DCACHE['forums'] as $forum_all) {
+ if($forum_all['type'] == 'group' ) {
+ $visible[$forum_all['fid']] = true;
+ } elseif($forum_all['type'] == 'forum' && $forum_all['fup']== $gid
&& isset($visible[$forum_all['fup']]) && (!$forum_all['viewperm'] ||
($forum_all['viewperm'] && forumperm($forum_all['viewperm'])) ||
strstr($forum_all['users'], "\t$discuz_uid\t"))) {
+ $_forums[] =$forum_all['fid'];
+ $visible[$forum_all['fid']] = true;
+ }
+ }
+ $forum_list_sql = implode(',', $_forums);
+ if((@!include('./forumdata/cache/cache_section_'.$gid.'.php')) ||
$section_expiration < time()) {
+ $data = array();
+ $query_new = $db->query("SELECT t.tid, t.fid,
t.author,t.subject,t.replies,t.views FROM {$tablepre}threads t WHERE
t.displayorder!='-1' and t.fid IN ({$forum_list_sql}) ORDER BY dateline
DESC LIMIT 0, 10");
+ while($idx_forum_topic_new = $db->fetch_array($query_new)) {
+ $data['newthread'][$idx_forum_topic_new[tid]]['tid'] = $idx_forum_topic_new['tid'];
+ $data['newthread'][$idx_forum_topic_new[tid]]['author'] =
$idx_forum_topic_new['author'] ? $idx_forum_topic_new['author'] : '�ο�';
+ $data['newthread'][$idx_forum_topic_new[tid]]['views'] = $idx_forum_topic_new['views'];
+ $data['newthread'][$idx_forum_topic_new[tid]]['replies'] = $idx_forum_topic_new['replies'];
+ $data['newthread'][$idx_forum_topic_new[tid]]['subjectc'] =
cutstr($idx_forum_topic_new['subject'], 50);
+ }
+ $query_reply = $db->query("SELECT t.tid, t.fid,
t.author,t.subject,t.replies,t.views FROM {$tablepre}threads t WHERE
t.displayorder!='-1' and t.fid IN ({$forum_list_sql}) ORDER BY lastpost
DESC LIMIT 0, 10");
+ while($idx_forum_topic_reply = $db->fetch_array($query_reply)) {
+ $data['newreply'][$idx_forum_topic_reply[tid]]['tid'] = $idx_forum_topic_reply['tid'];
+ $data['newreply'][$idx_forum_topic_reply[tid]]['author'] =
$idx_forum_topic_reply['author'] ? $idx_forum_topic_reply['author'] : '�ο�';
+ $data['newreply'][$idx_forum_topic_reply[tid]]['views'] = $idx_forum_topic_reply['views'];
+ $data['newreply'][$idx_forum_topic_reply[tid]]['replies'] = $idx_forum_topic_reply['replies'];
+ $data['newreply'][$idx_forum_topic_reply[tid]]['subjectc'] =
cutstr($idx_forum_topic_reply['subject'], 50);
+ }
+ $data['section_expiration'] = $section_cachelife + time();
+ writetocache('section_'.$gid, '', getcachevars($data));
+ $newthread=$data['newthread'];
+ $newreply=$data['newreply'];
+ }
+
+ $query_rand = $db->query("SELECT t.tid, t.fid,
t.author,t.subject,t.replies,t.views FROM {$tablepre}threads t WHERE
t.displayorder!='-1' and t.fid IN ({$forum_list_sql}) ORDER BY rand()
LIMIT 0, 10");
+ while($idx_forum_topic = $db->fetch_array($query_rand)) {
+ $idx_forum_topic['uid'] = $idx_forum_topic['uid'];
+ $idx_forum_topic['subjectc'] = cutstr($idx_forum_topic['subject'], 50);
+ $forum_topic_list[] = $idx_forum_topic;
+ }
+}
+
+include template('section');
+
+?>
\ No newline at end of file

Modified: trunk/upload/plugins/now/now.inc.php
==============================================================================
--- trunk/upload/plugins/now/now.inc.php (original)
+++ trunk/upload/plugins/now/now.inc.php Sat Nov 10 20:07:29 2007
@@ -1,9 +1,16 @@
<?php
+/* Project Parasynthesis
+* Author: Fujiwara Sai
+* Usage: Nowhere
+*/
+
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
+
$ver = "V0.5.5.071106";
-$perpage= "30";
+$perpage= NOW_PER_PAGE;
+$m_perpage= M_PER_PAGE;

if ($action == "index") {
$navtitle = "��ҵĴ�ʱ�˿� - ";
@@ -19,7 +26,7 @@
}
}

-if ($action == "") {
+if (empty($action)) {
$author = make_single_safe($author);
if ($author == $discuz_userss) {
$navtitle = $discuz_userss."�Ĵ�ʱ�˿� - ";
@@ -40,9 +47,9 @@
$multipage = now_multi($nowcount, $perpage,
$page, "{$boardurl}now/".rawurlencode($discuz_userss)."/", $threadmaxpages);
$query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.authorid = '{$discuz_uid}' ORDER BY dateline
DESC LIMIT {$start_limit},{$perpage}");
} else {
- $start_limit = ($page - 1) * 10;
- $multipage = now_wap_multi($nowcount, 10,
$page, "{$boardurl}now/".rawurlencode($discuz_userss)."/", $threadmaxpages);
- $query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.authorid = '{$discuz_uid}' ORDER BY dateline
DESC LIMIT {$start_limit},10");
+ $start_limit = ($page - 1) * $m_perpage;
+ $multipage = now_wap_multi($nowcount, $m_perpage,
$page, "{$boardurl}now/".rawurlencode($discuz_userss)."/", $threadmaxpages);
+ $query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.authorid = '{$discuz_uid}' ORDER BY dateline
DESC LIMIT {$start_limit},{$m_perpage}");
}

$count = mysql_num_rows($query);
@@ -89,9 +96,9 @@
$multipage = now_multi($nowcount, $perpage,
$page, "{$boardurl}now/".rawurlencode($author)."/", $threadmaxpages);
$query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.author = '".$author."' ORDER BY dateline DESC
LIMIT {$start_limit},{$perpage}");
} else {
- $start_limit = ($page - 1) * 10;
- $multipage = now_wap_multi($nowcount, 10,
$page, "{$boardurl}now/".rawurlencode($author)."/", $threadmaxpages);
- $query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.author = '".$author."' ORDER BY dateline DESC
LIMIT {$start_limit},10 ");
+ $start_limit = ($page - 1) * $m_perpage;
+ $multipage = now_wap_multi($nowcount, $m_perpage,
$page, "{$boardurl}now/".rawurlencode($author)."/", $threadmaxpages);
+ $query = $db->query("SELECT n.*,mf.avatar FROM
{$tablepre}plugin_now n LEFT JOIN {$tablepre}memberfields mf ON
mf.uid=n.authorid WHERE n.author = '".$author."' ORDER BY dateline DESC
LIMIT {$start_limit},{$m_perpage}");
}
$count = mysql_num_rows($query);
if ($count < 4) {
@@ -349,7 +356,6 @@
if (!$fontcolor) {
$fontcolor = "#000";
}
-
/*
$query = $db->query("SELECT * FROM {$tablepre}plugin_now WHERE
authorid = ".$discuz_uid." ORDER BY dateline DESC LIMIT 1");
$row = $db->fetch_array($query);

Modified: trunk/upload/templates/babel/css.htm
==============================================================================
--- trunk/upload/templates/babel/css.htm (original)
+++ trunk/upload/templates/babel/css.htm Sat Nov 10 20:07:29 2007
@@ -462,18 +462,16 @@
}

.popupmenu_popup {
- width: 14em;
-moz-opacity: .9;
opacity: .9;
filter: alpha(opacity=90);
background-color: #FFF;
padding-top: 3px;
padding-bottom: 3px;
- border-bottom: 1px solid #CCC;
- border-right: 1px solid #CCC;
- border-left: 1px solid #CCC;
+ border: 1px solid #CCC;
}
.popupmenu_option {
+ font-size:12px;
background: {MENUBG};
color: {MENUTEXT};
white-space: nowrap;

Modified: trunk/upload/templates/babel/dashboard.htm
==============================================================================
--- trunk/upload/templates/babel/dashboard.htm (original)
+++ trunk/upload/templates/babel/dashboard.htm Sat Nov 10 20:07:29 2007
@@ -105,7 +105,7 @@
<ul class="news">
<!--{if $board_favlist}-->
<!--{loop $board_favlist $fav}-->
- <li><a href="$bbsidr/go/$fav[board_name]" target="_blank">$fav[name]</a></li>
+ <li><a href="$bbsdir/go/$fav[board_name]" target="_blank">$fav[name]</a></li>
<!--{/loop}-->
<!--{else}-->
<li>{lang memcp_nofavs}</li>

Modified: trunk/upload/templates/babel/footer.htm
==============================================================================
--- trunk/upload/templates/babel/footer.htm (original)
+++ trunk/upload/templates/babel/footer.htm Sat Nov 10 20:07:29 2007
@@ -21,7 +21,7 @@
Processed in $debuginfo[time] second(s), $debuginfo[queries]
queries<!--{if $gzipcompress}-->, Gzip enabled<!--{/if}-->
<!--{/if}--></small></span>
{eval updatesession();}
-</div>
+</div></div></div>
<!--{if !empty($jsmenu) && (empty($bbclosed) || $adminid ==
1)}-->{template jsmenu}<!--{/if}-->
<!--{if $_DCACHE['settings']['frameon'] && in_array(CURSCRIPT,
array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes'}-->
<script type="text/javascript" src="include/javascript/iframe.js"></script>

Modified: trunk/upload/templates/babel/header.htm
==============================================================================
--- trunk/upload/templates/babel/header.htm (original)
+++ trunk/upload/templates/babel/header.htm Sat Nov 10 20:07:29 2007
@@ -20,17 +20,20 @@
<script type="text/javascript">var IMGDIR = '{IMGDIR}';var SMDIR = '{SMDIR}';</script>
</head>
<body onkeydown="if(event.keyCode==27) return false;">
-<div id="top_right">
- <!--{if $discuz_uid}--><div class="hi">Hi,<a
href="$bbsdir/u-$discuz_uid.html" class="tr1">$discuz_userss</a>!</div>
<a href="$bbsdir/memcp.nnm" target="_self" class="tr">�������</a>
<!--{if $discuz_uid && in_array($adminid, array(1, 2, 3))}-->| <a
href="$bbsdir/admincp.php" target="_blank" class="tr">{lang
admincp}</a> <!--{/if}-->| <a href="$bbsdir/logout-{FORMHASH}.nnm"
class="tr" target="_self">�dz�</a><!--{loop $extcredits $id $credit}-->
| <a href="#;"
class="tr"><small>$GLOBALS[extcredits.$id]</small>$credit[unit]&nbsp;$credit[title]</a><!--{/loop}-->
<!--<a href="#;" class="tr" title="����������ռ�ٷֱ�"><small>$percentmine %</small></a>-->
- <!--{else}-->
- <a href="$bbsdir/login.nnm" class="tr">{lang login}</a> | <a
href="$bbsdir/passwd.nnm" class="tr">�һ�����</a> | <a
href="$bbsdir/signup.nnm" class="tr">ע��</a><!--{/if}-->&nbsp;
-</div>
+<div align="center">
+<div id="parasy">
+
<!--{if $_SESSION['hits']==38}-->
<!--{eval $topbg = 'luckystar';}-->
<!--{else}-->
<!--{eval $topbg = rand(1,2);}-->
<!--{/if}-->
-<div id="top_banner" style="background: url('{IMGDIR}/bg_$topbg.jpg');">
+<div id="top_banner" style="background:
url('{IMGDIR}/bg_$topbg.jpg');" align="left">
+<div id="top_right">
+ <!--{if $discuz_uid}--><div class="hi">Hi,<a
href="$bbsdir/u-$discuz_uid.html" class="tr1">$discuz_userss</a>!</div>
<a href="$bbsdir/memcp.nnm" target="_self" class="tr">�������</a>
<!--{if $discuz_uid && in_array($adminid, array(1, 2, 3))}-->| <a
href="$bbsdir/admincp.php" target="_blank" class="tr">{lang
admincp}</a> <!--{/if}-->| <a href="$bbsdir/logout-{FORMHASH}.nnm"
class="tr" target="_self">�dz�</a><!--{loop $extcredits $id $credit}-->
| <a href="#;"
class="tr"><small>$GLOBALS[extcredits.$id]</small>$credit[unit]&nbsp;$credit[title]</a><!--{/loop}-->
<!--<a href="#;" class="tr" title="����������ռ�ٷֱ�"><small>$percentmine %</small></a>-->
+ <!--{else}-->
+ <a href="$bbsdir/login.nnm" class="tr">{lang login}</a> | <a
href="$bbsdir/passwd.nnm" class="tr">�һ�����</a> | <a
href="$bbsdir/signup.nnm" class="tr">ע��</a><!--{/if}-->&nbsp;
+</div>
<div id="top_banner_logo">
<a href="/"><img src="{IMGDIR}/logo_$topbg.jpg" border="0"
alt="::NoName Magazine ������־" /></a>
</div>
@@ -78,130 +81,6 @@
<div id="sidebar"></div>
<div id="menu" align="center">
<!--{if $discuz_uid}-->
-<!--{if $discuz_action == 7}-->
-<div class="menu_fav" align="left"><img src="{IMGDIR}/cog.gif"
align="absmiddle" /> <a href="$bbsdir/memcp.nnm">�ҵĿ������</a>
-
-<table width="99%" cellpadding="0" cellspacing="0" border="0" class="fav">
-<tbody>
-<!--{if $action == 'profile'}-->
- <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_profile}</td></tr>
-<!--{else}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="modify.nnm">{lang memcp_profile}</a></td></tr>
-<!--{/if}-->
-
-</tbody>
-
-<!--{if $exchangestatus || $transferstatus || $ec_ratio}-->
- <tbody><tr style="background: {ALTBG1}"><td width="10"
align="center"><a href="###"
onclick="toggle_collapse('menu_credits')"><img id="menu_credits_img"
<!--{if ($action == 'credits' && in_array($operation,
array('exchange', 'transfer', 'addfunds'))) ||
!isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_credits ') ===
FALSE}-->src="{IMGDIR}/menu_collapsed_no.gif"<!--{else}-->src="{IMGDIR}/menu_collapsed_yes.gif"<!--{/if}-->
border="0" alt="" /></a></td><td colspan="2"><a href="###"
onclick="toggle_collapse('menu_credits')">{lang memcp_credits}</a></td></tr></tbody>
-
- <tbody id="menu_credits" <!--{if ($action == 'credits' &&
in_array($operation, array('exchange', 'transfer', 'addfunds'))) ||
!isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_credits ') ===
FALSE}--><!--{else}-->style="display: none"<!--{/if}-->>
-
- <!--{if $exchangestatus}-->
- <!--{if $operation == 'exchange'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_exchange}</b></td></tr>
- <!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-exchange.nnm">{lang memcp_credits_exchange}</a></td></tr>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $transferstatus}-->
- <!--{if $operation == 'transfer'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_transfer}</b></td></tr>
- <!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-transfer.nnm">{lang memcp_credits_transfer}</a></td></tr>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $ec_ratio}-->
- <!--{if $operation == 'addfunds'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_addfunds}</b></td></tr>
- <!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-addfunds.nnm">{lang memcp_credits_addfunds}</a></td></tr>
- <!--{/if}-->
- <!--{/if}-->
- </tbody>
-<!--{/if}-->
-
-<tbody>
-<tr style="background: {ALTBG1}"><td width="10" align="center"><a
href="###" onclick="toggle_collapse('menu_creditslog')"><img
id="menu_creditslog_img" <!--{if ($action == 'credits' &&
in_array($operation,
array('creditslog', 'paymentlog', 'incomelog', 'rewardpaylog', 'rewardincomelog')))
|| !isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_creditslog ') ===
FALSE}-->src="{IMGDIR}/menu_collapsed_no.gif"<!--{else}-->src="{IMGDIR}/menu_collapsed_yes.gif"<!--{/if}-->
border="0" alt="" /></a></td><td><a href="###"
onclick="toggle_collapse('menu_creditslog')">{lang memcp_credits_log}</a></td></tr>
-</tbody>
-
-<tbody id="menu_creditslog" <!--{if ($action == 'credits' &&
in_array($operation,
array('creditslog', 'paymentlog', 'incomelog', 'rewardpaylog', 'rewardincomelog')))
|| !isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_creditslog ') ===
FALSE}--><!--{else}-->style="display: none"<!--{/if}-->>
-
-<!--{if $operation == 'creditslog'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_transaction}</b></td></tr>
-<!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-log.nnm">{lang memcp_credits_log_transaction}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $operation == 'paymentlog'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_payment}</b></td></tr>
-<!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-paymentlog.nnm">{lang memcp_credits_log_payment}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $operation == 'incomelog'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_income}</b></td></tr>
-<!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-incomelog.nnm">{lang memcp_credits_log_income}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $operation == 'rewardpaylog'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_reward_log_payment}</b></td></tr>
-<!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-rewardpaylog.nnm">{lang memcp_reward_log_payment}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $operation == 'rewardincomelog'}-->
- <tr class="bold"><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_reward_log_income}</b></td></tr>
-<!--{else}-->
- <tr><td width="10"></td><td>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-rewardincomelog.nnm">{lang memcp_reward_log_income}</a></td></tr>
-<!--{/if}-->
-
-</tbody><tbody>
-
-<!--{if $allowmultigroups}-->
- <!--{if $action == 'usergroups'}-->
- <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_usergroups}</td></tr>
- <!--{else}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="usergroups.nnm">{lang memcp_usergroups}</a></td></tr>
- <!--{/if}-->
-<!--{/if}-->
-
-<!--{if $action == 'buddylist'}-->
- <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_buddylist}</td></tr>
-<!--{else}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="buddylist.nnm">{lang memcp_buddylist}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $spacestatus || $supe['status'] && $xspacestatus}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="memcp.php?action=spacemodule" target="_blank">{lang space_settings}</a></td></tr>
-<!--{/if}-->
-
-<!--{if $supe['status'] && !$xspacestatus}-->
- <!--{if $spacestatus}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="$supe[siteurl]/index.php?action/register" target="_blank">{lang space_upgrade_space}</a></td></tr>
- <!--{else}-->
- <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="$supe[siteurl]/index.php?action/register" target="_blank">{lang supe_signin_xspace}</a></td></tr>
- <!--{/if}-->
-<!--{/if}-->
-</tbody>
-</table></div>
-<!--{/if}-->
<div class="menu_inner" align="left">
<ul class="menu">
<!--{if $maxpmnum}-->
@@ -216,7 +95,25 @@
<li><hr class="board"><img src="{IMGDIR}/key_go.png"
align="absmiddle" />&nbsp;<a href="$bbsdir/logout-{FORMHASH}.nnm" class="menu">�dz�</a></li>
</ul>
</div>
+{template memcp_side}
<div class="menu_fav" align="left"><img src="{IMGDIR}/star.png"
align="absmiddle" />&nbsp;<a href="$bbsdir/favorite.nnm" class="menu">�ҵ��ղؼ�</a>
+<!--{if $fav}-->
+ <hr class="board">
+ <ul class="news">
+ <!--{loop $fav $fav}-->
+ <li><a href="$bbsdir/go/$fav[board_name]"><img
src="{IMGDIR}/table_multiple.png" align="absmiddle" border="0"
/></a>&nbsp;<a href="$bbsdir/go/$fav[board_name]">$fav[name]</a></li>
+ <!--{/loop}-->
+ </ul>
+<!--{/if}-->
+</div>
+<!--{/if}-->
+<!--{if $discuz_action != '61' && $member['uid'] != $discuz_uid && $buddy}-->
+<div class="menu_fav" align="left"><img src="{IMGDIR}/star.png"
align="absmiddle" />&nbsp;<a href="$bbsdir/favorite.nnm" class="menu">�ҵĺ���</a>
+<hr class="board">
+<!--{loop $buddy $buddy}-->
+<!--{eval $buddy[friendavatar] = avRESIZE($buddy[friendavatar],'s');}-->
+<a href="$bbsdir/u-$buddy[buddyid].html" class="var"
title="$buddy[username]"><img src="$bbsdir/$buddy[friendavatar]"
alt="$buddy[username]" class="mp" /></a>
+<!--{/loop}-->
</div>
<!--{/if}-->
<div class="menu_inner" align="left">

Modified: trunk/upload/templates/babel/i_fav.htm
==============================================================================
--- trunk/upload/templates/babel/i_fav.htm (original)
+++ trunk/upload/templates/babel/i_fav.htm Sat Nov 10 20:07:29 2007
@@ -1,5 +1,5 @@
<!--{if $show_cloud == 0}-->
- <!--{eval $show_num=5;}-->
+<!--{eval $show_num=5;}-->
<!--{else}-->
<!--{eval $show_num=10;}-->
<!--{/if}-->

Modified: trunk/upload/templates/babel/login_wap.htm
==============================================================================
--- trunk/upload/templates/babel/login_wap.htm (original)
+++ trunk/upload/templates/babel/login_wap.htm Sat Nov 10 20:07:29 2007
@@ -1,15 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head><meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
-<title>Nowhere Mobile</title>
+<title>{MOBILE_NAME} Mobile</title>
<link rel="stylesheet" type="text/css"
href="$bbsdir/templates/css/mobile.css" />
</head>
<body>
-<h1>Nowhere Mobile</h1>
-<div class="content"><small><a href="$bbsdir/now">Nowhere</a> &gt; ��¼</small></div>
+<h1>{MOBILE_NAME} Mobile</h1>
+<div class="content"><small><!--{if $mobile==1}--><a
href="$bbsdir/m">{MOBILE_NAME}</a><!--{else}--><a
href="$bbsdir/now">Nowhere</a><!--{/if}--> &gt; ��¼</small></div>
<div class="content">
<form method="post" name="login" action="logging.php?action=login&amp;">
<input type="hidden" name="formhash" value="{FORMHASH}">
+<!--{if $mobile==1}-->
+<input type="hidden" name="mobile" value="1">
+<!--{/if}-->
<input type="hidden" name="referer" value="now">
<input type="hidden" name="cookietime" value="315360000">
<div><input class="radio" type="radio" name="loginfield"
value="username" checked
onclick="document.login.username.focus();">{lang username}<input
class="radio" type="radio" name="loginfield" value="uid"
onclick="document.login.username.focus();">{lang uid} : <input
type="text" name="username" size="25" maxlength="40" tabindex="2"></div>
@@ -24,7 +27,7 @@
<option value="6">{lang security_question_6}</option>
<option value="7">{lang security_question_7}</option>
</select>
-<div> {lang security_answer} <input type="text" name="answer"
size="50" tabindex="5"></div>
+<div> {lang security_answer} <input type="text" name="answer"
size="25" tabindex="5"></div>
<br />
<input class="go" type="submit" name="loginsubmit" value="{lang submit}">
</form>

Modified: trunk/upload/templates/babel/memcp_navbar.htm
==============================================================================
--- trunk/upload/templates/babel/memcp_navbar.htm (original)
+++ trunk/upload/templates/babel/memcp_navbar.htm Sat Nov 10 20:07:29 2007
@@ -12,5 +12,4 @@
<!--{/if}-->
<!--{/if}-->
</div></div>
-
-<div class="maintable" align="left">
+<div class="maintable" align="left">
\ No newline at end of file

Added: trunk/upload/templates/babel/memcp_side.htm
==============================================================================
--- (empty file)
+++ trunk/upload/templates/babel/memcp_side.htm Sat Nov 10 20:07:29 2007
@@ -0,0 +1,124 @@
+<!--{if $discuz_action == 7}-->
+<div class="menu_fav" align="left"><img src="{IMGDIR}/cog.gif"
align="absmiddle" /> <a href="$bbsdir/memcp.nnm">�ҵĿ������</a>
+
+<table width="99%" cellpadding="0" cellspacing="0" border="0" class="fav">
+<tbody>
+<!--{if $action == 'profile'}-->
+ <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_profile}</td></tr>
+<!--{else}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="modify.nnm">{lang memcp_profile}</a></td></tr>
+<!--{/if}-->
+
+</tbody>
+
+<!--{if $exchangestatus || $transferstatus || $ec_ratio}-->
+ <tbody><tr style="background: {ALTBG1}"><td width="10"
align="center"><a href="###"
onclick="toggle_collapse('menu_credits')"><img id="menu_credits_img"
<!--{if ($action == 'credits' && in_array($operation,
array('exchange', 'transfer', 'addfunds'))) ||
!isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_credits ') ===
FALSE}-->src="{IMGDIR}/menu_collapsed_no.gif"<!--{else}-->src="{IMGDIR}/menu_collapsed_yes.gif"<!--{/if}-->
border="0" alt="" /></a></td><td colspan="2"><a href="###"
onclick="toggle_collapse('menu_credits')">{lang memcp_credits}</a></td></tr></tbody>
+
+ <tbody id="menu_credits" <!--{if ($action == 'credits' &&
in_array($operation, array('exchange', 'transfer', 'addfunds'))) ||
!isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_credits ') ===
FALSE}--><!--{else}-->style="display: none"<!--{/if}-->>
+
+ <!--{if $exchangestatus}-->
+ <!--{if $operation == 'exchange'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_exchange}</b></td></tr>
+ <!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-exchange.nnm">{lang memcp_credits_exchange}</a></td></tr>
+ <!--{/if}-->
+ <!--{/if}-->
+ <!--{if $transferstatus}-->
+ <!--{if $operation == 'transfer'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_transfer}</b></td></tr>
+ <!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-transfer.nnm">{lang memcp_credits_transfer}</a></td></tr>
+ <!--{/if}-->
+ <!--{/if}-->
+ <!--{if $ec_ratio}-->
+ <!--{if $operation == 'addfunds'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_addfunds}</b></td></tr>
+ <!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-addfunds.nnm">{lang memcp_credits_addfunds}</a></td></tr>
+ <!--{/if}-->
+ <!--{/if}-->
+ </tbody>
+<!--{/if}-->
+
+<tbody>
+<tr style="background: {ALTBG1}"><td width="10" align="center"><a
href="###" onclick="toggle_collapse('menu_creditslog')"><img
id="menu_creditslog_img" <!--{if ($action == 'credits' &&
in_array($operation,
array('creditslog', 'paymentlog', 'incomelog', 'rewardpaylog', 'rewardincomelog')))
|| !isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_creditslog ') ===
FALSE}-->src="{IMGDIR}/menu_collapsed_no.gif"<!--{else}-->src="{IMGDIR}/menu_collapsed_yes.gif"<!--{/if}-->
border="0" alt="" /></a></td><td><a href="###"
onclick="toggle_collapse('menu_creditslog')">{lang memcp_credits_log}</a></td></tr>
+</tbody>
+
+<tbody id="menu_creditslog" <!--{if ($action == 'credits' &&
in_array($operation,
array('creditslog', 'paymentlog', 'incomelog', 'rewardpaylog', 'rewardincomelog')))
|| !isset($_COOKIE['discuz_collapse']) ||
strpos($_COOKIE['discuz_collapse'], 'menu_creditslog ') ===
FALSE}--><!--{else}-->style="display: none"<!--{/if}-->>
+
+<!--{if $operation == 'creditslog'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_transaction}</b></td></tr>
+<!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-log.nnm">{lang memcp_credits_log_transaction}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $operation == 'paymentlog'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_payment}</b></td></tr>
+<!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-paymentlog.nnm">{lang memcp_credits_log_payment}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $operation == 'incomelog'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_credits_log_income}</b></td></tr>
+<!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-incomelog.nnm">{lang memcp_credits_log_income}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $operation == 'rewardpaylog'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_reward_log_payment}</b></td></tr>
+<!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-rewardpaylog.nnm">{lang memcp_reward_log_payment}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $operation == 'rewardincomelog'}-->
+ <tr class="bold"><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<b>{lang memcp_reward_log_income}</b></td></tr>
+<!--{else}-->
+ <tr><td width="10"></td><td>
+ &nbsp;&nbsp;&nbsp;&nbsp;<a href="credits-rewardincomelog.nnm">{lang memcp_reward_log_income}</a></td></tr>
+<!--{/if}-->
+
+</tbody><tbody>
+
+<!--{if $allowmultigroups}-->
+ <!--{if $action == 'usergroups'}-->
+ <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_usergroups}</td></tr>
+ <!--{else}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="usergroups.nnm">{lang memcp_usergroups}</a></td></tr>
+ <!--{/if}-->
+<!--{/if}-->
+
+<!--{if $action == 'buddylist'}-->
+ <tr class="bold" style="background: {ALTBG1}"><td
width="10"></td><td>{lang memcp_buddylist}</td></tr>
+<!--{else}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="buddylist.nnm">{lang memcp_buddylist}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $spacestatus || $supe['status'] && $xspacestatus}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="memcp.php?action=spacemodule" target="_blank">{lang space_settings}</a></td></tr>
+<!--{/if}-->
+
+<!--{if $supe['status'] && !$xspacestatus}-->
+ <!--{if $spacestatus}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="$supe[siteurl]/index.php?action/register" target="_blank">{lang space_upgrade_space}</a></td></tr>
+ <!--{else}-->
+ <tr style="background: {ALTBG1}"><td width="10"></td><td><a
href="$supe[siteurl]/index.php?action/register" target="_blank">{lang supe_signin_xspace}</a></td></tr>
+ <!--{/if}-->
+<!--{/if}-->
+</tbody>
+</table></div>
+<!--{/if}-->
\ No newline at end of file

Added: trunk/upload/templates/babel/mobile_home.htm
==============================================================================
--- (empty file)
+++ trunk/upload/templates/babel/mobile_home.htm Sat Nov 10 20:07:29 2007
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
+<head><meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
+<title>NoName Mobile</title>
+<link rel="stylesheet" type="text/css"
href="$bbsdir/templates/css/mobile.css" />
+</head>
+<body>
+<h1>NoName Mobile</h1>
+<!--{eval $discuz_userssen = rawurlencode($discuz_userss);}-->
+<div class="content"><small><!--{if $discuz_uid}-->$discuz_userss - <a
href="$bbsdir/now/$discuz_userssen">Nowhere</a> - <a
href="$bbsdir/$link_logout">�dz�</a><!--{else}--><a
href="$bbsdir/login-m.nnm">��¼</a><!--{/if}--> - <!--{if
$shuffle}--><a href="$bbsdir/m/shuffle">Shuffle!</a> - <a
href="$bbsdir/m">Normal</a><!--{else}--><a href="$bbsdir/m/shuffle">Shuffle!</a><!--{/if}--></small></div>
+<div class="content"><ul>
+<!--{loop $data['topics'] $thread}-->
+<li><a href="$bbsdir/t/$thread[tid]/$page/1">$thread[subject]</a>
<small>$thread[views]/$thread[replies] </small></li>
+<!--{/loop}-->
+</ul></div>
+<!--{if empty($shuffle)}-->
+<div class="content">
+<small>$multipage</small>
+</div>
+<!--{/if}-->
+<div class="content"><small>&copy; 2007 NoNameMagazine</small></div>
+<!--{if debuginfo() && in_array($adminid, array(1, 2, 3))}-->
+<small>Processed in $debuginfo[time] second(s), $debuginfo[queries]
queries<!--{if $gzipcompress}-->, Gzip enabled<!--{/if}--></small>
+<!--{/if}-->
+{eval updatesession();}
+</body>
+</html>
+{eval output();}
\ No newline at end of file

Added: trunk/upload/templates/babel/mobile_view.htm
==============================================================================
--- (empty file)
+++ trunk/upload/templates/babel/mobile_view.htm Sat Nov 10 20:07:29 2007
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
+<head><meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
+<title>$navtitle {MOBILE_NAME} Mobile</title>
+<link rel="stylesheet" type="text/css"
href="$bbsdir/templates/css/mobile.css" />
+</head>
+<body>
+<h1>{MOBILE_NAME} Mobile</h1>
+<!--{eval $discuz_userssen = rawurlencode($discuz_userss);}-->
+<div class="content"><small><!--{if $discuz_uid}-->$discuz_userss - <a
href="$bbsdir/now/$discuz_userssen">Nowhere</a> - <a
href="$bbsdir/$link_logout">�dz�</a><!--{else}--><a href="$bbsdir/login-m.nnm">��¼</a><!--{/if}--></small></div>
+<div class="content"><small><a
href="$bbsdir/m/$p_page">{MOBILE_NAME}</a> $navigation</small></div>
+<!--{loop $postlist $post}-->
+<!--{if $post['number'] == 0}-->
+<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
+<h2>$thread[subject]</h2>
+<div class="author">
+<small class="author">by <a
href="space.php?uid=$post[authorid]">$post[author]</a> <!--{if
$thread['special'] != 3 || $thread['price'] >= 0 || $thread['dateline']
+ 1 != $post['dbdateline'] || $post['first']}-->at $post[dateline]<!--{/if}--></small>
+</div>
+<!--{if $adminid !=1 && $bannedmessages && (($post['authorid']
&& !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
+<span class="text">{lang message_banned}</span>
+<!--{else}-->
+<span class="text">$post[message]</span>
+<!--{/if}-->
+<!--{/if}-->
+<!--[member reply]-->
+<!--{else}-->
+<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
+<div class="author">
+<small><strong># $post[number]</strong> - <a
href="$bbsdir/u-$post[authorid].html">$post[author]</a> at $post[dateline]</small></div>
+<!--{else}-->
+<div class="author">
+<small><strong># $post[number]</strong> - ������ʿ at $post[dateline]</small></div>
+<!--{/if}-->
+<!--{if $adminid !=1 && $bannedmessages && (($post['authorid']
&& !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
+<div class="content">{lang message_banned}</div>
+<!--{else}-->
+<div class="content">$post[message]</div>
+<!--{/if}-->
+<!--{/if}-->
+<!--{/loop}-->
+<div class="content">
+<small>$multipage</small>
+</div>
+<div class="content"><form
action="$bbsdir/mobile-post-$fid-$tid-$p_page.html" method="post" id="postform">
+<input type="hidden" name="formhash" value="{FORMHASH}">
+<textarea name="message" id="message" class="textbox" cols="30"
rows="4" maxlength="1000"></textarea><br /><input type="submit"
value="�� ��" class="go" /><small> &nbsp; �ظ����ܳ��� 1000 ��</small></form></div>
+
+<div class="content"><small>&copy; 2007 NoNameMagazine</small></div>
+<!--{if debuginfo() && in_array($adminid, array(1, 2, 3))}-->
+<small>Processed in $debuginfo[time] second(s), $debuginfo[queries]
queries<!--{if $gzipcompress}-->, Gzip enabled<!--{/if}--></small>
+<!--{/if}-->
+{eval updatesession();}
+</body>
+</html>
+{eval output();}
\ No newline at end of file

Modified: trunk/upload/templates/babel/now_wap.htm
==============================================================================
--- trunk/upload/templates/babel/now_wap.htm (original)
+++ trunk/upload/templates/babel/now_wap.htm Sat Nov 10 20:07:29 2007
@@ -7,7 +7,7 @@
<body>
<h1>Nowhere Mobile</h1>
<!--{eval $discuz_userssen = rawurlencode($discuz_userss);}-->
-<div class="content"><small><!--{if $discuz_uid}--><a
href="$bbsdir/now/$discuz_userssen">$discuz_userss</a> - <a
href="$bbsdir/now/$discuz_userssen/friends">�ҵĺ���</a> - <a
href="$bbsdir/$link_logout">�dz�</a><!--{else}--><a href="$bbsdir/$link_login">��¼</a><!--{/if}--></small></div>
+<div class="content"><small><!--{if $discuz_uid}--><a
href="$bbsdir/now/$discuz_userssen">$discuz_userss</a> - <a
href="$bbsdir/now/$discuz_userssen/friends">�ҵĺ���</a> - <a
href="$bbsdir/m">��̳</a> - <a
href="$bbsdir/$link_logout">�dz�</a><!--{else}--><a
href="$bbsdir/m">��̳</a> - <a href="$bbsdir/$link_login">��¼</a><!--{/if}--></small></div>
<!--{if $author}-->
<div class="content"><small><a href="$bbsdir/now">Nowhere</a> &gt;
$author<!--{if $action == friends}--> &gt; �ҵĺ���<!--{/if}--></small></div>
<!--{/if}-->

Modified: trunk/upload/templates/babel/showmessage_wap.htm
==============================================================================
--- trunk/upload/templates/babel/showmessage_wap.htm (original)
+++ trunk/upload/templates/babel/showmessage_wap.htm Sat Nov 10
20:07:29 2007
@@ -1,14 +1,22 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head><meta http-equiv="Content-Type" content="text/html;
charset=gb2312" />
-<title>��¼��ת | Nowhere Mobile/IM</title>
+<title>��¼��ת | {MOBILE_NAME} Mobile/IM</title>
<link rel="stylesheet" type="text/css"
href="$bbsdir/templates/css/mobile.css" />
$extrahead
</head>
<body>
-<h1>Nowhere Mobile/IM</h1>
-��ӭ���¼Nowhere Mobile/IM<br />
-<a href="$url_forward">��������޷�ֱ����ת��������</a>
+<h1>{MOBILE_NAME} Mobile/IM</h1>
+<!--{eval $discuz_userssen = rawurlencode($discuz_userss);}-->
+<div class="content"><small><!--{if $discuz_uid}-->$discuz_userss - <a
href="$bbsdir/now/$discuz_userssen">Nowhere</a> - <a
href="$bbsdir/$link_logout">�dz�</a><!--{else}--><a href="$bbsdir/login-m.nnm">��¼</a><!--{/if}--></small></div>
+$show_message
+<br />
+<!--{if $url_forward}-->
+ <a href="$url_forward">{lang message_forward}</a>
+<!--{elseif stristr($show_message, '{lang return}')}-->
+ <a href="$bbsdir/m">{lang message_go_back}</a>
+<!--{/if}-->
+
<div><small>&copy; 2007 Saicn.com</small></div>
{eval updatesession();}
</body>

Modified: trunk/upload/templates/babel/topic.htm
==============================================================================
--- trunk/upload/templates/babel/topic.htm (original)
+++ trunk/upload/templates/babel/topic.htm Sat Nov 10 20:07:29 2007
@@ -6,7 +6,7 @@
<ul style="padding: 0; margin:0; list-style: none;">
<!--{loop $topic $thread}-->
<!--{eval $name_color = rand_color();}-->
-<!--{if $action == topic_latest}-->
+<!--{if $action == 'topic_latest'}-->
<!--{eval $thread[dateline] = make_descriptive_time($thread[dateline]);}-->
<!--{else}-->
<!--{eval $thread[dateline] = make_descriptive_time($thread[lastpost]);}-->

Modified: trunk/upload/templates/css/css_babel.css
==============================================================================
--- trunk/upload/templates/css/css_babel.css (original)
+++ trunk/upload/templates/css/css_babel.css Sat Nov 10 20:07:29 2007
@@ -1,12 +1,18 @@
body, html {
-background:url('/bbs/images/way/simple_bg.jpg') repeat-x;
margin: 0px;
padding: 0px;
-background-color: #FBFBF6;
color: #000;
font-family: Verdana, "Lucida Grande", "Lucida Sans", sans, Hei;
+background: #FBFBF6 url("/bbs/images/way/bg_try.jpg") 50% 0 fixed no-repeat;
+/*background:url('/bbs/images/way/simple_bg.jpg') repeat-x;*/
min-width:750px;
}
+
+div#parasy {
+max-width: 960px;
+width:expression( documentElement.clientWidth > 960 ?
(documentElement.clientWidth == 0 ? (body.clientWidth
>960 ? "960" : "auto") : "960px") : "auto" );
+}
+
img {
border: 0;
}
@@ -169,9 +175,21 @@
margin: 0px;
}

+div#a_top_right {
+position: absolute;
+top: 5px;
+padding-left: 455px;
+z-index: 0;
+font-size: 11px;
+line-height: 12px;
+width: 500px;
+height: 40px;
+color: #667;
+text-align: right;
+}
+
div#top_right {
float: right;
-position: absolute;
z-index: 5;
top: 0px;
right: 0px;
@@ -189,7 +207,6 @@

* html div#top_right {
float: right;
-position: absolute;
z-index: 5;
top: 0px;
right: 0px;
@@ -455,6 +472,19 @@
ul.menu li {
padding-top: 2px;
}
+
+ul.news {
+margin: 0;
+padding:0 0 5px 5px;
+font-size: 12px;
+list-style: none;
+color: #666;
+}
+ul.news li {
+padding: 3px;
+
+}
+

ul.items {
margin: 0px 0px 5px 0px;

Modified: trunk/upload/viewpro.php
==============================================================================
--- trunk/upload/viewpro.php (original)
+++ trunk/upload/viewpro.php Sat Nov 10 20:07:29 2007
@@ -12,7 +12,6 @@
define('NOROBOT', TRUE);
define('CURSCRIPT', 'viewpro');
require_once './include/common.inc.php';
-require_once DISCUZ_ROOT.'./parasy/ParasyCache.php';

$uid = empty($uid) ? 0 : intval($uid);
$username = !isset($username) || $uid ? '' : $username;
@@ -188,7 +187,7 @@
if($viewspace) {
include template('space');
} else {
- require_once './component_check.php';
+ require_once './parasy/component_check.php';
include template('viewpro_classic');
}
?>

Reply all
Reply to author
Forward
0 new messages