#!/usr/bin/perl
# Copyright 2001-2023 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',
'Export' => 'Export',
'Error' => 'Error',
'Add' => 'Add',
'Logo' => 'Logo',
'File' => 'File',
'Only' => 'Only',
'Cannot open file' => 'Cannot open file',
'Maximum File Upload size exceeded!' => 'Maximum File Upload size exceeded!',
'Uploaded' => 'Uploaded',
'Continue' => 'Continue',
'Alternate' => 'Alternate',
'Division' => 'Division',
'Report Card' => 'Report Card',
'Small' => 'Small',
'School' => 'School',
'Type' => 'Type',
'Name' => 'Name',
'Mistake' => 'Mistake',
);
use CGI;
use DBI;
my $self = 'logoadd.pl';
eval require "../../etc/admin.conf";
if ( $@ ) {
print $lex{Error}. ": $@
\n";
die $lex{Error}. ": $@\n";
}
eval require "../../etc/image.conf";
if ( $@ ) {
print $lex{Error}. ": $@
\n";
die $lex{Error}. ": $@\n";
}
my $q = new CGI;
my %arr= $q->Vars;
print $q->header( -charset, $charset );
my $dsn = "DBI:$dbtype:dbname=$dbase";
my $dbh = DBI->connect($dsn,$user,$password);
$dbh->{mysql_enable_utf8} = 1;
print qq{$doctype\n