<?php require 'funcs.php';
$allVsts ReadCSV("store.csv");
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>GyL Synths VSTs</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <style>
            table { width: 100% }
            table, th, td { border: 1px solid black; border-collapse: collapse; }
            th, td { padding: 10px; }
        </style>
    </head>
    <body><div class="container">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
        <h1>GyL Synths VST Repository</h1>
        <p>This site provides simplified access to the excellent "GyL Synths" collection of free VST plug-ins provided by
        <a href="https://www.facebook.com/groups/1947861645438998/">Gyovai László</a>.
        </p>
        <p>This site is structured in a special way, to facilitate one-step automated download and
        installation using the free <a href="https://github.com/sdunnemucklow/VSTManager">VST Manager</a> program.
        See below under the heading "Open Source" for how this is done, by adding just one file called <em>store.csv</em> in the site's root directory.</p>
        <p>A new VST manager tool called <a href="https://github.com/DropSnorz/OwlPlug">OwlPlug</a> is also supported. OwlPlug
        requires a file in JSON format; the URL for this is <a href="owl.php">https://www.getdunne.net/GyL/owl.php</a>.</p>
        <h2>The GyL Synths collection</h2>
        <p><table>
            <tr>
                <th>Name</th>
                <th>Description</th>
            </tr>
        <?php foreach ($allVsts as $vst) { ?>
            <tr>
                <td><a href="vst.php?id=<?= $vst['folder'?>"><?= $vst['name'?></a></td>
                <td><?= str_replace('|'','$vst['desc']) ?></td>
            </tr>
            <?php ?>
        </table></p>
        <p>&nbsp;</p><h2>Open Source</h2>
        <p>This site is built with <a href="http://php.net/">PHP</a> and the
        <a href="http://getbootstrap.com/">Bootstrap</a> open-source web styles framework. It consists of just five files:
        <ul>
            <li><a href="index_src.php">index.php</a>, which is this page</li>
            <li><a href="vst_src.php">vst.php</a>, which is a template for the individual VST pages</li>
            <li><a href="funcs_src.php">funcs.php</a>, a small set of supporting PHP functions</li>
            <li><a href="storecsv_src.php">store.csv</a>, a simple data file</li>
            <li><a href="owl_src.php">owl.php</a>, which generates a JSON version of <em>store.csv</em> for
            <a href="https://github.com/DropSnorz/OwlPlug">OwlPlug</a>.
        </ul>
        </p>
    </div></body>
</html>