<?php

/**
 * @copyright 2024 Double Bastion LLC <www.doublebastion.com>
 *
 * @author Double Bastion LLC
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
 *
 * 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.  See the
 * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
 *
 * You should have received a copy of the GNU Affero General Public
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

if ($_SESSION['loggedtorspanel'] == true) {

?>
            <div class="modal fade" id="scrollmodal" tabindex="-1" role="dialog" aria-labelledby="scrollmodalLabel" aria-hidden="true">
                <div class="modal-dialog modal-lg" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h5 class="modal-title" id="scrollmodalLabel"></h5>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <div class="modal-body">
                           <div id="modal-logo"><img src="images/red-scarf-suite-panel_logo_about.svg" alt="RED SCARF Suite Panel logo" /></div>
                           <div id="modal-text">
                             <span class="about-paragraph">
                              "RED SCARF Suite Panel is an admin panel that displays all components of "RED SCARF Suite" installed on the server, 
                               specifies if any service is in a failed state, shows available storage space and real time CPU, RAM and network 
                               usage, lists infected files detected by ClamAV during periodic scanning, and provides a way to access with one click 
                               the customized login URL of any website or web application installed on the server.<br><br>

                               Its main purpose is to provide a general view of the server's capabilities and
                               health status and to facilitate access to different login pages.<br><br>

                               Copyright (C) 2024  Double Bastion LLC<br><br>

                               Version: 1.0.0
                             </span>
                           </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" id ="modalOkButton" class="btn btn-primary" data-dismiss="modal">OK</button>
                        </div>
                    </div>
                </div>
            </div>

<?php

} else {
     header("Location: panel-login.php");
  }

?>

