#!/usr/bin/perl ############################################################# # Ikonboard v2.1 # Copyright 2001 Ikonboard.com - All Rights Reserved # Ikonboard is a trademark of Ikonboard.com # # Software Distributed by: Ikonboard.com # Visit us online at http://www.ikonboard.com # Email us on boards@ikonboard.com # # All files written by Matthew Mecham ############################################################# use CGI::Carp "fatalsToBrowser"; # Output errors to browser use CGI qw(:standard); # Saves loads of work $CGI::POST_MAX=1024 * 150; # limit post data $CGI::DISABLE_UPLOADS = 1; # Disable uploads $CGI::HEADERS_ONCE = 1; # Kill redundant headers eval { ($0 =~ m,(.*)/[^/]+,) and unshift (@INC, "$1"); ($0 =~ m,(.*)\\[^\\]+,) and unshift (@INC, "$1"); require "ikon.lib"; # Require ikonboard () require "data/progs.cgi"; # Require prog names require "data/boardinfo.cgi";# Require board info require "data/styles.cgi"; # Require styles info }; if ($@) { print header('text/html; charset=windows-1251'); print start_html(-title=>"$ibtxt{'0025'}"); print "$ibtxt{'0026'} $@\n$ibtxt{'0027'}"; print end_html; exit; } $|++; # Unbuffer the output #################--- Begin the program ---################### $thisprog = "announcements.cgi"; $query = new CGI; $cookiepath = $query->url(-absolute=>1); $cookiepath =~ s/$thisprog//sg; for ('membername','password','announcementtitle','announcementpost','action','checked','number') { next unless defined $_; next if $_ eq 'SEND_MAIL'; $tp = $query->param($_); $tp = &cleaninput($tp); ${$_} = $tp; } $inmembername = $membername; $inpassword = $password; $inannouncementtitle = $announcementtitle; $inannouncementpost = $announcementpost; $IP="$ENV{'REMOTE_ADDR'} - $ENV{'HTTP_X_FORWARDED_FOR'} - $ENV{'HTTP_PROXY_CONNECTION'} - $ENV{'HTTP_VIA'}"; if (! $inmembername) { $inmembername = cookie("amembernamecookie"); } if (! $inpassword) { $inpassword = cookie("apasswordcookie"); } if ($inmembername eq "") { $inmembername = "$ibtxt{'0043'}"; } else { &getmemberstime("$inmembername"); } ### Print Header for the page. print header('text/html; charset=windows-1251'); &title; $output .= qq~
$boardname
$ibtxt{'0301'} |
|