#!/usr/bin/perl
# Copyright 2001-2021 Leslie Richardson
# This file is part of Open Admin for Schools.
# Open Admin for Schools is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
my %lex = ('Withdrawn Students' => 'Withdrawn Students',
'Name' => 'Name',
'Number' => 'Number',
'Grade' => 'Grade',
'Gender' => 'Gender',
'Birthdate' => 'Birthdate',
'Ident' => 'Ident',
'Main' => 'Main',
'Error' => 'Error',
'View' => 'View',
'Last,First/Last/First/Initials', 'Last,First/Last/First/Initials',
'School' => 'School',
'Search' => 'Search',
'Student' => 'Student',
);
use DBI;
use CGI;
my $self = 'globview.pl';
# Read config variables
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. " $@
\n";
die $lex{Error}. " $@
\n";
}
my $q = new CGI;
print $q->header( -charset, $charset );
my %arr = $q->Vars;
if ( not -e "$globdir/global.conf" ) {
print "Cannot read the global.conf file!";
print "