Example #1
0
// php5 noetig, wg simple_xml
if (version_compare(phpversion(), $needed = '5.0.0', '<') == 1) {
    echo 'Requires PHP < ' . $needed;
    exit;
}
$name = null;
$version = null;
if (isset($argv) && count($argv) > 1) {
    if (!empty($argv[1])) {
        $version = $argv[1];
    }
    if (!empty($argv[2])) {
        $name = $argv[2];
    }
    // Start Build-Script
    buildRelease($name, $version);
} else {
    echo '
/**
 * Erstellt ein REDAXO Release.
 *
 *
 * Verwendung in der Console:
 *
 *  Erstelles eines Release mit Versionsnummer:
 *  "php release.php 4.2"
 *
 *
 * Vorgehensweise des release-scripts:
 *  - Ordnerstruktur kopieren nach release/redaxo_<Datum>
 *  - Dateien kopieren
Example #2
0
?>
.zip" style="line-height: 22px">
  Download Most Recent Version<br />
  <small style="font-weight: normal; font-size: 12px">v<?php 
echo $mostRecentVersion;
?>
</small>
</a>
</div>

<?php 
foreach ($releases as $release) {
    if (array_key_exists('released', $release) === true && $release['released'] === false) {
        continue;
    }
    echo buildRelease($release);
}
?>

<div class="section">
<h4>Development</h4>
<p><a href="https://github.com/oakmac/autocompletejs/">GitHub</a></p>
</div>

<?php 
include APP_PATH . 'pages/footer.php';
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function buildRelease($release)
{