📄 admindomodifygroup.pl
字号:
################################################################################ AdminDoModifyGroup.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. ################################################################################################################################################################ DoModifyGroup ################################################################################sub DoModifyGroup { &ShowError("MODIFYING PROBLEM","You forgot to select which group to modify.") if (!$in{'GroupID'});############################################################################### open(GROUPS,"$MembersPath/Groups.db")||&CGIError("Couldn't open/read the Groups.db file<br>\nPath: $MembersPath<br>\nReason : $!"); flock(GROUPS,1) if ($FLock); @GROUPS_DATA=<GROUPS>; close(GROUPS); for (my($i)=0;$i<=$#GROUPS_DATA;$i++) { @GroupInfo=&DecodeDBOutput($GROUPS_DATA[$i]); if ($GroupInfo[0] eq $in{'GroupID'}) { last; } }############################################################################### $HTML.= &Table($TableWidth,$TableAlign,"","6","",""). &Tr("","",""). &Td("","","","","","","nowrap","",""). &Form("UBAdmin.$Ext","POST","",""). &HiddenBox("Session",$SessionID). "</td>". "</tr>". &Tr("","",""). &Td("","","","","RIGHT","","","",""). &GetMenuList. "</td>". "</tr>". &Tr("","",""). &Td("","","","","","","nowrap","",""). "</form>". &Form("UBAdmin.$Ext","POST","",""). &HiddenBox("Action","DoModifyGroup2"). &HiddenBox("GroupID",$in{'GroupID'}). &HiddenBox("Session",$SessionID). "</td>". "</tr>". "</table>". &BTable($TableWidth,$TableAlign,"0","0",$TableCellSpacing,$TableCellPadding,$TableBorderColor,"",""). &Tr("","",$HeaderBGColor). &Td("","","","","","","","",""). &Font($FontFace,$HeaderTextSize,$HeaderTextColor). "<b>MODIFY MEMBERS GROUP (".uc($GroupInfo[0]).")</b>". "</font>". "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "<b>Group Name</b>". "</font>". "</td>". "</tr>". &Tr("","",$RowOddBGColor). &Td("","","","","","","",$ColumnOddBGColor,""). &TextBox("GroupName",$GroupInfo[1],$TextBoxSize,"","width:$IETextBoxSize"). "</td>". "</tr>". &Tr("","",$CategoryBGColor). &Td("","","","","","","","",""). "<center>".&Submit("","MODIFY THIS MEMBERS GROUP","width:$IETextBoxSize")."</center>". "</td>". "</tr>". &Tr("","",$MenuBGColor). &Td("","","","","","","","",""). &PrintVersion(). "</td>". "</tr>". "</table></td></tr></table>". "</form>"; &PrintTheme("$UBName Administrator Center - Modify Members Group",$HTML); exit;}###############################################################################1;# End of DoModifyGroup Function###############################################################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -