function atomic_uploadable() { global $atomic_brdarr; if (!SUPPORT_UPLOAD) { return FALSE; } return bbs_is_attach_board($atomic_brdarr); }
?> &id=<?php echo $id; ?> "><?php echo $articles[1]['TITLE']; ?> </a><br/><br/> <?php if ($sessionid) { echo "<input type='hidden' name='sid' value='{$sessionid}' />"; } ?> 选择需要添加为附件的文件后点上传:<br/> <?php if (!bbs_is_attach_board($brdarr) && !($currentuser["userlevel"] & BBS_PERM_SYSOP)) { ?> 本版不能上传附件! <input type="hidden" name="attachfile" /> <?php } else { if ($filecount < BBS_MAXATTACHMENTCOUNT) { ?> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo BBS_MAXATTACHMENTSIZE; ?> " /> <input type="file" name="attachfile" size="20" /> <input type="button" value="上传" name="paste" onclick="addsubmit();" /> <?php } else {
?> <script type="text/javascript" src="static/www2-addons.js"></script> <script type="text/javascript"><!-- var o = new replyForm('<?php echo $brd_encode; ?> ',<?php echo $reid; ?> ,'<?php if ($reid) { echo addslashes($articles[1]["TITLE"]); } ?> ',<?php echo bbs_is_attach_board($brdarr) ? "1" : "0"; ?> ,<?php echo $currentuser["signum"]; ?> ,<?php echo $currentuser["signature"]; ?> ,<?php echo bbs_is_anony_board($brdarr) ? "1" : "0"; ?> ,<?php echo bbs_is_outgo_board($brdarr) ? "1" : "0"; ?> ,<?php $local_save = 0;
<form name="postform" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> ?board=<?php echo $brd_encode; ?> &id=<?php echo $id; ?> &ftype=<?php echo $ftype; ?> &do" class="large"> <fieldset><legend>修改文章 <?php if (bbs_is_attach_board($brdarr) || $currentuser["userlevel"] & BBS_PERM_SYSOP || $articles[1]['ATTACHPOS']) { echo ' (<a href="bbseditatt.php?bid=' . $brdnum . '&id=' . $id . '" target="_blank">修改附件</a>)'; } ?> </legend> 发信人: <?php echo $articles[1]['OWNER']; ?> , 信区: <?php echo $brd_encode; ?> [<a href="bbsdoc.php?board=<?php echo $brd_encode; ?> ">本讨论区</a>]<br/> 标 题: <input type="text" name="title" size="40" maxlength="100" value="<?php