ONO::Apps::Admin::Screen::Info

package ONO::Apps::Admin::Screen::Info;
################################################################################
# COPYRIGHT / LICENSE #
################################################################################
#
# This file is part of the ONO Software Project.
#
# Copyright (C) 2000-2025 Jos KIRPS [ www.kirps.com | jos_AT_kirps_DOT_com ]
# and The Joopita Project [ www.joopita.org | contact_AT_joopita_DOT_com ]
#
# This file, as well as other parts of the ONO Software Project or related
# elements, are FREE SOFTWARE available under the ARTISTIC LICENSE 2.0.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# For the full license, see /ono/osr/license/LICENSE.txt, or write to
# jos_AT_kirps_DOT_com or contact_AT_joopita_DOT_com.
#
################################################################################
# END OF COPYRIGHT / LICENSE, HERE COMES THE CODE ... #
################################################################################


use strict;

use ONO::Apps::Admin::Screen::Info::Info;
use ONO::Apps::Admin::Screen::Info::System;
use ONO::Apps::Admin::Screen::Info::Security;
use ONO::Apps::Admin::Screen::Info::Statistics;
use ONO::Apps::Admin::Screen::Info::Logfiles;

###############################################################################
# ONO
###############################################################################

#: This module is loading and calling required front end application screens.

sub screen {

my (
$self,
$db,
$community,
$lang,
$BLK_ref,
$vars_ref,
$sql_ref,
$ono_ref,
) = @_;

my %vars = %$vars_ref;

my ($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS);

if (!$vars{'mode'} || $vars{'mode'} eq "info") {
($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS) = ONO::Apps::Admin::Screen::Info::Info -> screen($db,$community,$lang,$BLK_ref,$vars_ref,$sql_ref,$ono_ref);
}
if ($vars{'mode'} =~ /^info_system/) {
($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS) = ONO::Apps::Admin::Screen::Info::System -> screen($db,$community,$lang,$BLK_ref,$vars_ref,$sql_ref,$ono_ref);
}
if ($vars{'mode'} =~ /^info_security/) {
($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS) = ONO::Apps::Admin::Screen::Info::Security -> screen($db,$community,$lang,$BLK_ref,$vars_ref,$sql_ref,$ono_ref);
}
if ($vars{'mode'} =~ /^info_statistics/) {
($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS) = ONO::Apps::Admin::Screen::Info::Statistics -> screen($db,$community,$lang,$BLK_ref,$vars_ref,$sql_ref,$ono_ref);
}
if ($vars{'mode'} =~ /^info_logfiles/) {
($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS) = ONO::Apps::Admin::Screen::Info::Logfiles -> screen($db,$community,$lang,$BLK_ref,$vars_ref,$sql_ref,$ono_ref);
}

return ($TITLE,$SUBTITLE,$SCREEN,$LEFT,$RIGHT,$TOOLS);

}

###############################################################################
# end of script
###############################################################################

1;

__END__