<?php
    session_start();
    if (isset($_SESSION["currentGrid"]))
        $currentGrid = $_SESSION["currentGrid"];
    else
        $currentGrid = ".";
?>
{
    "short_name": "Sudoku",
    "name": "Sudoku",
    "description": "Remplissez la grille de sorte que chaque ligne, colonne et région (carré de 3×3 cases) contienne tous les chiffres de 1 à 9.",
    "icons": [{
        "src": "thumbnail.php?size=48",
        "sizes": "48x48",
        "type": "image/png"
    }, {
        "src": "thumbnail.php?size=72",
        "sizes": "72x72",
        "type": "image/png"
    }, {
        "src": "thumbnail.php?size=96",
        "sizes": "96x96",
        "type": "image/png"
    }, {
        "src": "thumbnail.php?size=144",
        "sizes": "144x144",
        "type": "image/png"
    }, {
        "src": "thumbnail.php?size=168",
        "sizes": "168x168",
        "type": "image/png"
    }, {
        "src": "thumbnail.php?size=192",
        "sizes": "192x192",
        "type": "image/png"
    }],
    "start_url": ".",
    "background_color": "#fff",
    "display": "standalone",
    "scope": ".",
    "theme_color": "#fff",
    "orientation": "portrait-primary",
    "shortcuts": [
        {
            "name": "Sudoku : cette grille",
            "short_name": "Ce sudoku",
            "description": "Continuer cette grille de sudoku",
            "url": "<?=$currentGrid?>",
            "icons": [{
                    "src": "thumbnail.php?size=48",
                    "sizes": "48x48",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=72",
                    "sizes": "72x72",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=96",
                    "sizes": "96x96",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=144",
                    "sizes": "144x144",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=168",
                    "sizes": "168x168",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=192",
                    "sizes": "192x192",
                    "type": "image/png"
            }]
        },
        {
            "name": "Sudoku : Grille vierge",
            "short_name": "Sudoku vierge",
            "description": "Grille de sudoku vierge",
            "url": ".................................................................................",
            "icons": [{
                    "src": "thumbnail.php?size=48",
                    "sizes": "48x48",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=72",
                    "sizes": "72x72",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=96",
                    "sizes": "96x96",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=144",
                    "sizes": "144x144",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=168",
                    "sizes": "168x168",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=192",
                    "sizes": "192x192",
                    "type": "image/png"
            }]
        },
        {
            "name": "Sudoku : Nouvelle grille",
            "short_name": "Nouveau sudoku",
            "description": "Nouvelle grille de sudoku",
            "url": ".",
            "icons": [{
                    "src": "thumbnail.php?size=48",
                    "sizes": "48x48",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=72",
                    "sizes": "72x72",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=96",
                    "sizes": "96x96",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=144",
                    "sizes": "144x144",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=168",
                    "sizes": "168x168",
                    "type": "image/png"
                }, {
                    "src": "thumbnail.php?size=192",
                    "sizes": "192x192",
                    "type": "image/png"
            }]
        }
    ]
}
