Added .htaccess
Changed kwotes.conf.pl to not use "constant", and modified the rest of the scripts to reflect that
This commit is contained in:
12
kwotes.pl
12
kwotes.pl
@ -7,12 +7,12 @@
|
||||
# something about kwotes being GPL #
|
||||
###################################################
|
||||
|
||||
# bring in the config
|
||||
require "kwotes.conf.pl";
|
||||
|
||||
# bring in the required libs
|
||||
require "kwotes-lib.pl";
|
||||
|
||||
# bring in the config
|
||||
require "kwotes.conf.pl";
|
||||
|
||||
# is this getting called by the "delete" cronjob?
|
||||
if ($ARGV[0] eq "cleanup") {
|
||||
exit cleanup();
|
||||
@ -31,13 +31,13 @@ foreach my $key (keys %ENV) {
|
||||
$vars{$key} = $ENV{$key};
|
||||
}
|
||||
|
||||
# send the HTML header
|
||||
send_html_header();
|
||||
|
||||
# add information that is displayed on every page
|
||||
$vars{KWOTE_COUNT} = get_kwote_count();
|
||||
$vars{KWOTE_BACKUP_COUNT} = get_kwote_backup_count();
|
||||
|
||||
# send the HTML header
|
||||
send_html_header();
|
||||
|
||||
############
|
||||
# action: add (show add form)
|
||||
if ($action eq "add") {
|
||||
|
Reference in New Issue
Block a user