#!/usr/local/bin/perl ############################################################################### # UltraBoard.pl # ############################################################################### # UltraBoard Ver. 1.62 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.62 # # LAST MODIFIED : 29/07/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. # ############################################################################### ############################################################################### # Variables # ############################################################################### # sometime server don't understand the path with . in front, so change it to # # full path when you have error on creating admin profile data. # ############################################################################### $LibPath="./Sources/Libraries"; $VarsPath="./Variables"; $SrcPath="./Sources/UltraBoard"; ############################################################################### # Linking Library # ############################################################################### eval { require "$VarsPath/System.cfg"; require "$VarsPath/General.cfg"; require "$VarsPath/Style.cfg"; require "$LibPath/HTML.lib"; require "$LibPath/Common.lib"; require "$LibPath/UltraBoard.lib"; require "$LibPath/Stats.lib"; require "$LibPath/Crypt.pm"; }; if ($@) { print<
Couldn't load required libraries.
\nCheck that they exist, permissions are set correctly and that they compile.
\nReason: $@
".&Form("UltraBoard.$Ext","POST","",""). &HiddenBox("Action",$in{'Ref'}). &HiddenBox("Type",$in{'Type'}). &HiddenBox("Category",$in{'Category'}). &HiddenBox("Board",$in{'Board'}). &HiddenBox("Post",$in{'Post'}). &HiddenBox("ID",$in{'ID'}). &HiddenBox("Idle",$in{'Idle'}). &HiddenBox("Sort",$in{'Sort'}). &HiddenBox("Order",$in{'Order'}). &HiddenBox("Page",$in{'Page'}). &BTable($TableWidth,$TableAlign,"0","0",$TableCellSpacing,$TableCellPadding,$TableBorderColor,"",""). &Tr("","",$HeaderBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$HeaderTextSize,$HeaderTextColor). "LOGIN". "". "". "". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "UserName". "". "". "". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &TextBox("UserName",$Cookies{'UserName'},$TextBoxSize,"","width:$IETextBoxSize"). "". "". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "Password ". "". &Font($FontFace,$CategoryDesTextSize,$CategoryTextColor). &Link("UltraBoard.$Ext?Action=LostPassword&Type=$in{'Type'}&Category=$in{'Category'}&Board=$in{'Board'}&Post=$in{'Post'}&ID=$in{'ID'}&Idle=$in{'Idle'}&Sort=$in{'Sort'}&Order=$in{'Order'}&Page=$in{'Page'}","",""). "Lost your password?". "". "". "". "". &Tr("","",$RowOddBGColor). &Td("","","2","","","","","",""). &PasswordBox("Password","",$TextBoxSize,"","width:$IETextBoxSize"). "". "". &Tr("","",$CategoryBGColor). &Td("20","","","","","","","",""). &Checkbox("Remember","on","",$Remember). "". &Td("100%","","","","","","","",""). &Font($FontFace,$CategoryNameTextSize,$CategoryTextColor). "Remember Your Password?". "". "". "". &Tr("","",$CategoryBGColor). &Td("","","2","","","","","",""). "
$Message
HTML exit; #die @Message; } ############################################################################### # SignOut # ############################################################################### sub SignOut { my (@Cookies); push (@Cookies,"UserName","","Password",""); my ($Header); my ($Cookie,$Value,$Char); my (@Days) = ("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); my (@Months) = ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); my ($Sec,$Min,$Hour,$MDay,$Mon,$Year,$WDay) = gmtime(time+31536000); if ($Year>50) { $Year+=1900; }else{ $Year+=2000; } $Header="Location: $URLCGI/UltraBoard.$Ext?Action=$in{'Ref'}&Category=$in{'Category'}&Board=$in{'Board'}&Post=$in{'Post'}&ID=$in{'ID'}&Idle=$in{'Idle'}&Sort=$in{'Sort'}&Order=$in{'Order'}&Page=$in{'Page'}\n"; while(($Cookie,$Value)=@Cookies) { foreach $Char (@Cookie_Encode_Chars) { $Cookie =~ s/$Char/$Cookie_Encode_Chars{$Char}/g; $Value =~ s/$Char/$Cookie_Encode_Chars{$Char}/g; } $Header.="Set-Cookie: ".$Cookie."=". $Value."; "; $Header.="expires=$Days[$WDay], $MDay-$Months[$Mon]-$Year $Hour:$Min:$Sec GMT;"; $Header.="\n"; shift(@Cookies); shift(@Cookies); } $Header.="Content-type: text/html\n"; $Header.="\n"; print $Header; } ############################################################################### # End of UltraBoard.pl file ###############################################################################