コード例 #1
0
 public static function trigger()
 {
     $dl = current(DownloadModel::get($_GET["id"]));
     $dl->serveDownloadViaReadfile();
 }
コード例 #2
0
 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)]);
 }