function branches_to_show()
{
    // Basically: show all 5.3+ branches with EOL dates > min_date().
    $branches = array();
    // Flatten out the majors.
    foreach (get_all_branches() as $major => $major_branches) {
        foreach ($major_branches as $branch => $version) {
            if (version_compare($branch, '5.3', 'ge') && get_branch_security_eol_date($branch) > min_date()) {
                $branches[$branch] = $version;
            }
        }
    }
    ksort($branches);
    return $branches;
}
Exemplo n.º 2
0
require_once "includes/functions.php";
?>

<?php 
require_once "includes/session.php";
confirm_logged_in();
?>
<html>
<head>
  <title></title>
  <link rel="stylesheet" type="text/css" href="stylesheets/all_.css">

</head>
<body>
  <?php 
// all branches
echo "<a href=\"logout.php\">logout</a>";
$branches_all = get_all_branches();
echo "<div id = \"branches\">";
echo "<div id = \"main\" >";
while ($branches = mysql_fetch_array($branches_all)) {
    echo "<div class=\"main_left\">";
    echo "<a href =\"branch.php?branch=" . urldecode($branches["branch_name"]) . "\"> {$branches['branch_name']} </a>";
    echo "</div>";
}
echo "</div>";
?>

</body>
</html>