%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/losik.varak.net/app/
Upload File :
Create Path :
Current File : /www/varak.net/losik.varak.net/app/generate-detailed-results.php

<?php
/**
 * Created by PhpStorm.
 * User: waritko
 * Date: 9. 3. 2019
 * Time: 10:44
 */

include "detailed-results.php";

$uuid = dibi::query("SELECT [guid] FROM [matches] WHERE [id]=%i", $id)->fetchSingle();

$text = $smarty->fetch('detailed-results.tpl');
//$text = tidy_repair_string($text, array('indent' => true, 'indent-spaces' => 4));
//$text = minify_html($text);
file_put_contents("detailed/" . $uuid . ".html", $text);
if(file_exists("detailed/" . $uuid . ".html.br"))
    unlink("detailed/" . $uuid . ".html.br");
if(file_exists("detailed/" . $uuid . ".html.gz"))
    unlink("detailed/" . $uuid . ".html.gz");

header("Location: detailed/" . $uuid . ".html");

Zerion Mini Shell 1.0