File: /home/internet/public_html/webbtools.com/app/controllers/TeamsSystem.php
<?php
/*
* @copyright Copyright (c) 2021 AltumCode (https://altumcode.com/)
*
* This software is exclusively sold through https://altumcode.com/ by the AltumCode author.
* Downloading this product from any other sources and running it without a proper license is illegal,
* except the official ones linked from https://altumcode.com/.
*/
namespace Altum\Controllers;
use Altum\Alerts;
use Altum\Database\Database;
use Altum\Middlewares\Authentication;
use Altum\Middlewares\Csrf;
use Altum\Title;
use MaxMind\Db\Reader;
class TeamsSystem extends Controller {
public function index() {
Authentication::guard();
if(!\Altum\Plugin::is_active('teams')) {
redirect('dashboard');
}
/* Prepare the View */
$data = [];
$view = new \Altum\Views\View('teams-system/index', (array) $this);
$this->add_view_content('content', $view->run($data));
}
}