Example #1
0
    } else {
        if ((bool) ini_get('allow_url_fopen')) {
            //if allow_url_fopen is available
            $latest_version = file_get_contents($version_url);
        } else {
            ?>
<span class='negative'><?php 
            echo CMTX_DASH_VERSION_CHECK_UNABLE;
            ?>
</span><?php 
            $issue = true;
        }
    }
    if (!$issue) {
        if (floatval($latest_version)) {
            if (version_compare(cmtx_get_current_version(), $latest_version, '<')) {
                ?>
<span class='negative'><?php 
                echo CMTX_DASH_VERSION_CHECK_NEWER;
                ?>
</span><?php 
            } else {
                ?>
<span class='positive'><?php 
                echo CMTX_DASH_VERSION_CHECK_LATEST;
                ?>
</span><?php 
            }
        } else {
            ?>
<span class='negative'><?php 
echo CMTX_LINK_HELP;
?>
</a>
</div>

<h3><?php 
echo CMTX_TITLE_VERSION;
?>
</h3>
<hr class="title"/>

<?php 
echo CMTX_DESC_REPORT_VERSION_1;
?>
 <b>v<?php 
echo cmtx_get_current_version();
?>
</b>. <?php 
echo CMTX_DESC_REPORT_VERSION_2;
?>

<p />

<table id="data" class="display" summary="Versions">
    <thead>
    	<tr>
        	<th><?php 
echo CMTX_TABLE_VERSION;
?>
</th>
			<th><?php