<li>You <strong>build a specific type of site regularly</strong>, such as communities, a blog, or an ecommerce website.</li> </ul> <a href="#generate" class="ready">LET ME TRY IT!!</a> </div> <div class="grid_12" id="generate"> <h2>Customize your makefile</h2> <form id="generateForm" action="/generate.php" method="post"> <?php print formVersion($version); ?> <div id="generator"> <?php print formMakefile($version); ?> </div> <button type="submit">Generate makefile</button> </form> </div> <div class="grid_12" id="deploy"> <h2>Deploy your makefile</h2> <p><a href="http://drupal.org/project/drush">Drush</a> and <a href="http://drupal.org/project/drush_make">Drush Make</a> turn your makefile into a Drupal installation. Then you can get building!</p> </div> <?php include 'footer.php'; ?>
<?php include '_lib.php'; // collect variables and validate if necessary $ask = isset($_REQUEST['ask']) ? $_REQUEST['ask'] : FALSE; $v = isset($_REQUEST['v']) && is_numeric($_REQUEST['v']) ? $_REQUEST['v'] : $version; $output = ''; if ($ask) { switch ($ask) { case 'all': $output = formMakefile($v); break; case 'libraries': $output = formDownload('libraries', array('unique' => 'library')); break; case 'themes': $output = formDownload('themes', array('unique' => 'theme')); break; case 'modules': $output = formDownload('modules', array('unique' => 'module')); break; case 'includes': $output = formDownload('includes', array('unique' => 'include')); break; default: $output = 'ERROR :/'; break; } print $output; }
<ul> <li>You're tired of <strong>installing Drupal modules over and over</strong>.</li> <li>You find yourself wishing you could <strong>start with every module you need</strong> already installed.</li> <li>You <strong>build a specific type of site regularly</strong>, such as communities, a blog, or an ecommerce website.</li> </ul> <a href="#generate" class="ready">LET ME TRY IT!!</a> </div> <div class="grid_12" id="generate"> <h2>Customize your makefile</h2> <form id="generateForm" action="/generate.php" method="post"> <?php print formVersion($version); ?> <div id="generator"> <?php print formMakefile($version); ?> </div> <button type="submit">Generate makefile</button> </form> </div> <div class="grid_12" id="deploy"> <h2>Deploy your makefile</h2> <p><a href="http://drupal.org/project/drush">Drush</a> and <a href="http://drupal.org/project/drush_make">Drush Make</a> turn your makefile into a Drupal installation. Then you can get building!</p> </div> <?php include('footer.php'); ?> </body> </html>