###############################################################################
# Greymatter 1.7.2
# Copyright (c)2000-2007, The Greymatter team
# http://greymatterforum.proboards82.com/
# By possessing this software, you agree not to hold the author responsible for
# any problems that may arise from your installation or usage of Greymatter
# itself, or from any content generated by yourself or others through the use of
# this program. You may freely modify and redistribute this program, so
# long as every copyright notice (including in this manual and in the Greymatter
# code) remains fully intact. Finally, you may not sell or in any way
# make a financial profit from this program, either in original or modified form.
# Your possession of this software signifies that you agree to these terms;
# please delete your copy of this software if you don't agree to these terms.
# Original Creators Noah Grey
###############################################################################
use lib 'libs';
use Gm_Constants;
use Gm_Utils qw( println );
use Gm_Web;
use Gm_Storage;
# PF
use Gm_Trace;
### GLOBAL VARS
my $newTemplates = (); # init to empty
my $newConfigs = (); # init to empty
$cookiename = "gm_password";
# -----------------
# program variables
# -----------------
# NOTE that the version is MAJOR NUMBER.YEAR.NO_OF_REL_THAT_YEAR
# e.g. a major refactoring is done in 2007 the release would be 2.7.1
# later that year a security fix comes out so release would be 2.7.2
$gmversion = Gm_Constants::GM_VERSION;
$gmfonttag = qq();
## Todo, make this seperate file, doesn't need to be in code to change
$gmadmincss = qq#
#;
$gmheadtag = qq#
$gmfonttaggreymatter $gmversion
);
$statusnote = Gm_Constants::EMPTY;
# ------------------
# emoticons subroutine
# ------------------
# added by flipped cracker 9/17/2003
# version 1.3
# DEPRECATED: Gm_Core::translateEmoticons
sub gm_emoticons {
&gm_readconfig;
$_ = shift;
if( (($emoticonsallowed eq Gm_Constants::BOTH) || ($emoticonsallowed eq $returnto)) && ($thisentryemoticonsallowed eq Gm_Constants::YES) ) {
s/\:\)/
);
$gmframebottomtwo = qq($gmfonttag);
$gmframetoptwo = qq( $gmfonttag);
$gmframebottom = qq(
/g;
s/\:O/
/g;
s/\:\(/
/g;
s/\:D/
/g;
s/\:P/
/g;
s/\;\)/
/g;
s/\:angry:/
/g;
s/\:blush:/
/g;
s/\:confused:/
/g;
s/\:cool:/
/g;
s/\:crazy:/
/g;
s/\:cry:/
/g;
s/\:doze:/
/g;
s/\:hehe:/
/g;
s/\:laugh:/
/g;
s/\:plain:/
/g;
s/\:rolleyes:/
/g;
s/\:satisfied:/
/g;
}
return($_);
}
# merged in version 1.3
# ------------------
# emoticons code display subroutine
# ------------------
# added by flipped cracker 9/17/2003
# version 1.3
sub gm_emoticons_code {
&gm_readconfig;
$emoticonsmaincode = Gm_Constants::EMPTY;
if( ($emoticonsallowed eq Gm_Constants::BOTH) || ($emoticonsallowed eq Gm_Constants::ENTRIES) ) {
$emoticonsmaincode = "