public static function trigger()
 {
     $dl = current(DownloadModel::get($_GET["id"]));
     $dl->serveDownloadViaReadfile();
 }
 public static function index()
 {
     $includeRestricted = false;
     View::load("index.twig", ["info" => Setting::get("info_box_content"), "leagues" => League::get(), "downloads" => Download::get(null, Download::TYPE_HOMEPAGE, null, $includeRestricted)]);
 }