nickname_description.pl
48 lines of code
1
#!/usr/local/bin/perl
2
3
# must have's!
4
use strict;
5
use warnings;
6
use CGI::Carp qw(fatalsToBrowser);
7
use DBI;
8
use URI::Escape;
9
10
use Html qw(pre_html_header);
11
use Bc_chef qw(cookie_get);
12
use Bc_misc qw(get_param);
13
use Bc_sql qw(
14
              get_constant
15
              sql_execute
16
              user_exists
17
              $QUERY_PAGE
18
              $QUERY_UID
19
              $LOGGEDIN
20
21
              $DB
22
             );
23
24
use Security qw(banned);
25
26
my $DEBUG = 0;
27
28
if (not user_exists($LOGGEDIN) or
29
    banned($LOGGEDIN) or
30
    not isUserAdmin($LOGGEDIN)) {
31
  my $msg =  "Access Denied";
32
  if ($DEBUG) { $msg .= " (nickname_description.pl)"; }
33
  print error_redir("/", $msg);
34
35
  exit 1;
36
}
37
38
my $output = pre_html_header(); # this is JUST a placeholder
39
40
############################################################
41
42
43
44
############################################################
45
46
print $output;
47
48
exit 1;