Ejemplo n.º 1
0
</p>

<h3>Currently Supported Versions</h3>

<table class="standard">
	<thead>
		<tr>
			<th>Branch</th>
			<th colspan="2">Initial Release</th>
			<th colspan="2">Active Support Until</th>
			<th colspan="2">Security Support Until</th>
		</tr>
	</thead>
	<tbody>
		<?php 
foreach (get_active_branches(false) as $major => $releases) {
    ?>
			<?php 
    ksort($releases);
    ?>
			<?php 
    foreach ($releases as $branch => $release) {
        ?>
				<?php 
        $state = get_branch_support_state($branch);
        $initial = get_branch_release_date($branch);
        $until = get_branch_bug_eol_date($branch);
        $eol = get_branch_security_eol_date($branch);
        ?>
				<tr class="<?php 
        echo $state;
Ejemplo n.º 2
0
<?php

$_SERVER['BASE_PAGE'] = 'releases/active.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/branches.inc';
header('Content-Type: application/json; charset=UTF-8');
echo json_encode(get_active_branches());