post.htm
8.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!--{template common/header}-->
<!--{block actiontitle}-->
<!--{if $_GET['action'] == 'newthread'}-->
<!--{if $special == 0}-->{lang post_newthread}
<!--{elseif $special == 1}-->{lang post_newthreadpoll}
<!--{elseif $special == 2}-->{lang post_newthreadtrade}
<!--{elseif $special == 3}-->{lang post_newthreadreward}
<!--{elseif $special == 4}-->{lang post_newthreadactivity}
<!--{elseif $special == 5}-->{lang post_newthreaddebate}
<!--{elseif $specialextra}-->{$_G['setting']['threadplugins'][$specialextra][name]}
<!--{/if}-->
<!--{elseif $_GET['action'] == 'reply'}-->
{lang join_thread}
<!--{elseif $_GET['action'] == 'edit'}-->
<!--{if $special == 2}-->{lang edit_trade}<!--{else}-->{lang edit_thread}<!--{/if}-->
<!--{/if}-->
<!--{/block}-->
<!--{if $_GET['action'] != 'newthread'}-->
<!--{eval $subjectcut = cutstr($thread[subject], 30);}-->
<!--{/if}-->
<!--{block actionsubject}-->
<!--{if $_GET['action'] == 'reply'}-->
<em>›</em><a href="forum.php?mod=viewthread&tid=$thread[tid]">$subjectcut</a>
<!--{elseif $_GET['action'] == 'edit'}-->
<em>›</em><a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid">$subjectcut</a>
<!--{/if}-->
<!--{/block}-->
<!--{block upnavlink}-->
forum.php?mod=forumdisplay&fid={$_GET[fid]}&mobile=yes
<!--{/block}-->
<!--{if $_G['forum']['type'] == 'forum'}-->
<div class="box"><a href="forum.php" title="$_G['setting']['navs'][2]['navname']">$_G['setting']['navs'][2]['navname']</a> <em> > </em> <a href="forum.php?mod=forumdisplay&fid={$_G['forum']['fid']}">{$_G['forum']['name']}</a> $actionsubject <em> > </em> $actiontitle</div>
<!--{else}-->
<div class="box"><a href="forum.php" title="$_G['setting']['navs'][2]['navname']">$_G['setting']['navs'][2]['navname']</a> <em> > </em> <a href="forum.php?mod=forumdisplay&fid={$fup['fid']}">$fup['name']</a> <em> > </em> <a href="forum.php?mod=forumdisplay&fid={$_G['fid']}">{$_G['forum']['name']}</a> $actionsubject <em> > </em> $actiontitle</div>
<!--{/if}-->
<div class="tz ptn">
<!--{if !$_G['forum']['allowspecialonly']}--><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]" title="{lang send_threads}" <!--{if ($_GET[sortid] || !$special) && $_GET['action'] != 'edit' && $_GET['action'] != 'reply'}-->class="xw1"<!--{/if}-->>{lang send_threads}</a><span class="pipe">|</span><!--{/if}--><!--{if $_G['group']['allowpostpoll']}--><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=1" <!--{if !$_GET[sortid] && $special == 1}-->class="xw1"<!--{/if}-->>{lang post_newthreadpoll}</a><span class="pipe">|</span><!--{/if}--><!--{if $_G['group']['allowpostreward']}--><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=3" <!--{if !$_GET[sortid] && $special == 3}-->class="xw1"<!--{/if}-->>{lang post_newthreadreward}</a> <span class="pipe">|</span><!--{/if}--><!--{if $_G['group']['allowpostdebate']}--><a href="forum.php?mod=post&action=newthread&fid=$_G[fid]&special=5" <!--{if !$_GET[sortid] && $special == 5}-->class="xw1"<!--{/if}-->>{lang post_newthreaddebate}</a><span class="pipe">|</span><!--{/if}-->
<!--{if $_G['setting']['threadplugins']}-->
<!--{loop $_G['forum']['threadplugin'] $tpid}-->
<!--{if array_key_exists($tpid, $_G['setting']['threadplugins']) && @in_array($tpid, $_G['group']['allowthreadplugin'])}-->
<a href="forum.php?mod=post&action=newthread&fid={$_G[fid]}&specialextra=$tpid" <!--{if $specialextra==$tpid}-->class="xw1"<!--{/if}-->>{$_G[setting][threadplugins][$tpid][name]}</a><span class="pipe">|</span></li>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
</div>
<!--{if $special != 2 && $special != 4 }-->
<!--{eval $adveditor = $isfirstpost && $special && ($_GET['action'] == 'newthread' || $_GET['action'] == 'reply' && !empty($_GET['addtrade']) || $_GET['action'] == 'edit' );}-->
<form method="post" id="postform" enctype="multipart/form-data"
{if $_GET[action] == 'newthread'}action="forum.php?mod=post&action={if $special != 2}newthread{else}newtrade{/if}&fid=$_G[fid]&extra=$extra&topicsubmit=yes&mobile=yes"
{elseif $_GET[action] == 'reply'}action="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$extra&replysubmit=yes&mobile=yes"
{elseif $_GET[action] == 'edit'}action="forum.php?mod=post&action=edit&extra=$extra&editsubmit=yes&mobile=yes" $enctype
{/if}>
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="posttime" id="posttime" value="{TIMESTAMP}" />
<!--{if !empty($_GET['modthreadkey'])}--><input type="hidden" name="modthreadkey" id="modthreadkey" value="$_GET['modthreadkey']" /><!--{/if}-->
<!--{if $_GET[action] == 'reply'}-->
<input type="hidden" name="noticeauthor" value="$noticeauthor" />
<input type="hidden" name="noticetrimstr" value="$noticetrimstr" />
<input type="hidden" name="noticeauthormsg" value="$noticeauthormsg" />
<!--{if $reppid}-->
<input type="hidden" name="reppid" value="$reppid" />
<!--{/if}-->
<!--{if $_GET[reppost]}-->
<input type="hidden" name="reppost" value="$_GET[reppost]" />
<!--{elseif $_GET[repquote]}-->
<input type="hidden" name="reppost" value="$_GET[repquote]" />
<!--{/if}-->
<!--{/if}-->
<!--{if $_GET[action] == 'edit'}-->
<input type="hidden" name="fid" id="fid" value="$_G[fid]" />
<input type="hidden" name="tid" value="$_G[tid]" />
<input type="hidden" name="pid" value="$pid" />
<input type="hidden" name="page" value="$_GET[page]" />
<!--{/if}-->
<!--{if $special}-->
<input type="hidden" name="special" value="$special" />
<!--{/if}-->
<!--{if $specialextra}-->
<input type="hidden" name="specialextra" value="$specialextra" />
<!--{/if}-->
<div class="box">
<!--{if $isfirstpost && !empty($_G['forum'][threadtypes][types])}-->
<div class="inbox">
<span class="xw1">{lang threadtype}</span>
<!--{if $_G['forum'][threadtypes][required] == 1}-->
<span class="xi1">{lang required}</span>
<!--{/if}-->
<select name="typeid" id="typeid" width="80" >
<option value="0">{lang select_thread_catgory}</option>
<!--{loop $_G['forum'][threadtypes][types] $typeid $name}-->
<!--{if empty($_G['forum']['threadtypes']['moderators'][$typeid]) || $_G['forum']['ismoderator']}-->
<option value="$typeid"{if $thread['typeid'] == $typeid || $_GET['typeid'] == $typeid} selected="selected"{/if}><!--{echo strip_tags($name);}--></option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>
<!--{/if}-->
<!--{if $adveditor}-->
<!--{if $special == 1}--><!--{template forum/post_poll}-->
<!--{elseif $special == 3}--><!--{template forum/post_reward}-->
<!--{elseif $special == 5}--><!--{template forum/post_debate}-->
<!--{elseif $specialextra}--><div>$threadplughtml</div>
<!--{/if}-->
<!--{/if}-->
<!--{if $isfirstpost && $sortid}-->
<div class="bm inbox xg1">
{lang threadsort_error}
</div>
<!--{else}-->
<div class="inbox<!--{if $_GET['action'] != 'reply'}--> bt mtn<!--{/if}-->">
<!--{if $_GET['action'] != 'reply'}-->
<span class="xw1">{lang subject}</span>
<input type="text" name="subject" value="$postinfo[subject]" class="txt" size="25" />
<!--{else}-->
RE: $thread['subject']
<!--{if $quotemessage}-->
$quotemessage
<!--{/if}-->
<!--{/if}-->
</div>
<div class="inbox">
<textarea name="$editor[textarea]" cols="24" rows="5" id="{$editorid}_textarea" class="txt" >$postinfo[message]</textarea>
</div>
<div class="inbox">
<!--{if $_GET[action] != 'edit' && ($secqaacheck || $seccodecheck)}-->
<!--{subtemplate common/seccheck}-->
<!--{/if}-->
</div>
<div class="inbox">
<input type="submit" id="postsubmit" name="{if $_GET[action] == 'newthread'}topicsubmit{elseif $_GET[action] == 'reply'}replysubmit{elseif $_GET[action] == 'edit'}editsubmit{/if}" value="<!--{if $_GET[action] == 'newthread'}-->{lang post_newthread}<!--{elseif $_GET[action] == 'reply'}-->{lang join_thread}<!--{elseif $_GET[action] == 'edit'}-->{lang edit_save}<!--{/if}-->" />
<!--{if $_GET[action] == 'edit' && $isorigauthor && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost) && !$rushreply && $_G['setting']['editperdel']}-->
<label><input type="checkbox" name="delete" id="delete" class="pc" value="1" title="{lang post_delpost}{if $thread[special] == 3}{lang reward_price_back}{/if}"> {lang delete_check}</label>
<!--{/if}-->
<input type="hidden" name="uid" value="$_G[uid]" />
<input type="hidden" name="type" value="image" />
<input type="hidden" name="hash" value="{echo md5(substr(md5($_G['config']['security']['authkey']), 8).$_G['uid'])}">
<input type="file" name="Filedata">
</div>
<!--{/if}-->
</div>
</form>
<!--{else}-->
<div class="box xg1">
<!--{if $special == '2'}-->
{lang send_special_trade_error}
<!--{elseif $special == '4'}-->
{lang send_special_activity_error}
<!--{/if}-->
</div>
<!--{/if}-->
<!--{template common/footer}-->