📄 forwardtopic.pl
字号:
################################################################################ ForwardTopic.pl ################################################################################# UltraBoard Ver. 1.61 by UltraScripts.com ## Scripts written by Jacky W.W. Yung, WebMaster@UltraScripts.com ## Available from http://www.UltraScripts.com/UltraBoard/ ## --------------------------------------------------------------------------- ## PROGRAM NAME : UltraBoard ## VERSION : 1.61 ## LAST MODIFIED : 30/06/1999 ## =========================================================================== ## COPYRIGHT NOTICE : ## ## Copyright (c) 1999 Jacky Yung. All Rights Reserved. ## ## This program is free software; you can change or modify it as you see fit. ## However, modified versions cannot be sold or distributed. You cannot alter ## the copyright and "powered by" notices throughout the scripts. These ## notices must be clearly visible to the end users. ## ## WARRANTY DISCLAIMER: ## ## THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ## ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR ## FITNESS FOR A PARTICULAR PURPOSE. ################################################################################################################################################################ ForwardTopic ################################################################################sub ForwardTopic { my ($HTML); unless (-e "$DBPath/$in{'Board'}/board.list") { &ShowError("ACCESS DENIED","The board you want is not found.<br>Please contact the webmaster (".&Link("mailto:$EmailAddress","","").$EmailAddress."</a>".") for more information."); } unless (-e "$DBPath/$in{'Board'}/$in{'Post'}.post") { &ShowError("ACCESS DENIED","The topic you want is not found.<br>Please contact the webmaster (".&Link("mailto:$EmailAddress","","").$EmailAddress."</a>".") for more information."); } open(BOARD,"$DBPath/$in{'Board'}/board.list")||&CGIError("Couldn't open/read the board.list file<br>\nPath: $DBPath/$in{'Board'}<br>\nReason : $!"); flock(BOARD,1) if ($FLock); $BOARD_DATA=<BOARD>; close(BOARD); @BoardInfo=&DecodeDBOutput($BOARD_DATA); if ($Group ne "administrator") { if ($BoardInfo[5] ne "Active") { &ShowError("ACCESS DENIED","The \"$BoardInfo[1]\" board is currently inactive.<br>Please contact the webmaster (".&Link("mailto:$EmailAddress","","").$EmailAddress."</a>".") for more information."); } if (($BoardInfo[6] ne "Public")&&($BoardInfo[6] eq "Protected")&&($Group eq "Guest")) { print "Location: UltraBoard.$Ext?Action=SignIn&Ref=ShowPost&Board=$in{'Board'}&Post=$in{'Post'}&Idle=$in{'Idle'}&Sort=$in{'Sort'}&Order=$in{'Order'}&Page=$in{'Page'}\n\n"; }elsif ($BoardInfo[6] eq "Private") { require "$DBPath/$in{'Board'}/Access.db"; if (!exists ($Access{$MemberData[3]})) { print "Location: UltraBoard.$Ext?Action=SignIn&Ref=ShowPost&Board=$in{'Board'}&Post=$in{'Post'}&Idle=$in{'Idle'}&Sort=$in{'Sort'}&Order=$in{'Order'}&Page=$in{'Page'}\n\n"; } } }############################################################################### $HTML.= "<p>".&Form("UltraBoard.$Ext","POST","",""). &HiddenBox("Action","DoForwardTopic"). &HiddenBox("Board",$in{'Board'}). &HiddenBox("Post",$in{'Post'}). &HiddenBox("Idle",$in{'Idle'}). &HiddenBox("Sort",$in{'Sort'}). &HiddenBox("Order",$in{'Order'}). &HiddenBox("Page",$in{'Page'}). &HiddenBox("Session",$SessionID). &BTable($TableWidth,$TableAlign,"0","0",$TableCellSpacing,$TableCellPadding,$TableBorderColor,"",""). &Tr("","",$HeaderBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$HeaderTextSize,$HeaderTextColor). "<b>发送给朋友</b>". "</font>". "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>您的名称</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("FromName",$MemberData[1],$TextBoxSize,"20","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>您的电子邮件</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("FromEmail",$MemberData[4],$TextBoxSize,"128","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>您朋友的名称</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("ToName","",$TextBoxSize,"20","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>您朋友的电子邮件</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("ToEmail","",$TextBoxSize,"128","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>主题</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("Subject","",$TextBoxSize,"128","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>内容</b> ". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextArea("Message","",$TextBoxSize,"10","$TextAreaType","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). "<center>".&Submit("","发 送","width:$IETextBoxSize")."</center>". "</td>". "</tr>". &Tr("","",$MenuBGColor). &Td("","","2","","","","","",""). &PrintVersion(). "</td>". "</tr>". "</table></td></tr></table>". "</form>"; &PrintTheme("$UBName - 发送给朋友",$HTML); exit; }###############################################################################1;# End of ForwardTopic Function###############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -