#! /usr/bin/perl
# Copyright 2001-2020 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 = ('Main' => 'Main',
'No Student(s) Found' => 'No Student(s) Found',
'Parent' => 'Parent',
'Access Control' => 'Access Control',
'Continue' => 'Continue',
'Homeroom' => 'Homeroom',
'Grade' => 'Grade',
'Blank=All' => 'Blank=All',
'Students' => 'Students',
'Select by' => 'Select by',
'Not Found' => 'Not Found',
'Error' => 'Error',
'Single Value Only' => 'Single Value Only',
'Check' => 'Check',
'Next Page' => 'Next Page',
'Report Card' => 'Report Card',
'Gradebook' => 'Gradebook',
'Disable' => 'Disable',
'Student' => 'Student',
'Lockout' => 'Lockout',
'Save' => 'Save',
'Records' => 'Records',
'Updated' => 'Updated',
);
my $self = 'setlockout.pl';
use DBI;
use CGI;
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;
my $dsn = "DBI:$dbtype:dbname=$dbase";
my $dbh = DBI->connect($dsn,$user,$password);
$dbh->{mysql_enable_utf8} = 1;
my $title = "$lex{Parent} $lex{'Access Control'}";
print qq{$doctype\n