<div class="settingsPage">
    <div class="left-column">
            <?php include('settingsSideBar.php');?>
    </div>
    <div class="right-column margin-bottom">
        <div class="pageTitle">
            <h1>
                <span>About CFEngine</span>
            </h1>
        </div>

        <div class="margin-bottom">


<?php
$cf_version_array = explode(".", CFE_CORE_VERSION);
$cf_major_minor_version = "$cf_version_array[0]" . "." . "$cf_version_array[1]";
?>

            <h3>License information</h3>
            <ul class="unstyled">
            <?php if (!empty($licenseGranted)) { ?>
                <li>Granted <?= htmlspecialchars($licenseGranted) ?> licenses.</li>
                <?php if ($licenseType == 'Enterprise') { ?>
                    <li>Expiring on: <?= htmlspecialchars($details['expires']) ?></li>
                 <?php } ?>
                <li class="margin-bottom-small">Owner: <?php echo htmlspecialchars($licenseOwner) ?></li>
            <?php } ?>
                <li>Visit <a href="http://cfengine.com/terms" target="_blank">cfengine.com/terms</a> for terms.</li>
                <li>Visit <a href="https://docs.cfengine.com/docs/<?php echo $cf_major_minor_version ?>/legal.html" target="_blank">docs.cfengine.com/docs/<?php echo $cf_major_minor_version ?>/legal.html</a> for a list of 3rd party licenses.</li>
            </ul>
        </div>

        <div class="margin-top">
            <h3>CFEngine version</h3>
            <table class="table table-bordered no-hover" style="width:auto">
                <tbody>
                    <tr>
                        <td><?= htmlspecialchars(CFE_PRODUCT_NAME) ?></td>
                        <td><?= htmlspecialchars(CFE_HUB_VERSION) ?></td>
                    </tr>
                    <?php if (defined('CFE_UI_VERSION')) {
                        echo '<tr><td>UI</td><td>revision '. htmlspecialchars(CFE_UI_VERSION) .'</td></tr>';
                    }?>
                    <tr>
                        <td>CFEngine Community</td>
                        <td><?= htmlspecialchars(CFE_CORE_VERSION) ?></td>
                    </tr>
                </tbody>
            </table>
        </div>

        <span>Copyright <?= date('Y', time())?> Northern.tech AS - All rights reserved.</span>
    </div>
</div>

