Exemple #1
0
	</div>
	<br/>
	<h1>Qcodo Release Information</h1>
	<div class="sbContent">
<?php 
if (QApplication::GetQcodoVersion(false)) {
    ?>
		<p><strong>Current Dev Release</strong><br/><a href="/downloads/">Qcodo v<?php 
    _p(QApplication::GetQcodoVersion(false));
    ?>
</a><br/><?php 
    _p(QApplication::GetQcodoVersionDate(false)->__toString('DDDD, MMMM D, YYYY'));
    ?>
</p>
		<p><strong>Current Stable Release</strong><br/><a href="/downloads/">Qcodo v<?php 
    _p(QApplication::GetQcodoVersion(true));
    ?>
</a><br/><?php 
    _p(QApplication::GetQcodoVersionDate(true)->__toString('DDDD, MMMM D, YYYY'));
    ?>
</p>
<?php 
} else {
    ?>
		<p>Currently performing a Qcodo build...</p>
<?php 
}
?>
	</div>
	<br/>
	<h1>Qcodo Development Information</h1>
Exemple #2
0
<?php

require '../../includes/prepend.inc.php';
$objCounter = Counter::LoadByToken(QApplication::PathInfo(0));
if (!$objCounter) {
    QApplication::Redirect('/');
}
$objCounter->Counter++;
$objCounter->Save();
if (substr($objCounter->Filename, 0, 2) == '//') {
    $strFilename = substr($objCounter->Filename, 1);
    if ($objCounter->Token == 'release_dev_targz' || $objCounter->Token == 'release_dev_zip') {
        $strFilename = str_replace('%', QApplication::GetQcodoVersion(false), $strFilename);
    } else {
        if ($objCounter->Token == 'release_stable_targz' || $objCounter->Token == 'release_stable_zip') {
            $strFilename = str_replace('%', QApplication::GetQcodoVersion(true), $strFilename);
        }
    }
    $strData = file_get_contents($strFilename);
    if (strpos($strFilename, '.gz')) {
        header("Content-type: application/x-gzip");
    } else {
        if (strpos($strFilename, '.zip')) {
            header("Content-type: application/zip");
        } else {
            if (strpos($strFilename, '.txt')) {
                header("Content-type: text/plain");
            } else {
                header("Content-type: application/other");
            }
        }
 /**
  * @return string
  */
 public static function GetQcodoVersionSize($blnStableVersion = true, $blnTarGz = true)
 {
     $strVersion = QApplication::GetQcodoVersion($blnStableVersion);
     if ($strVersion) {
         $strExtension = $blnTarGz ? '.tar.gz' : '.zip';
         return QApplication::DisplayByteSize(filesize(__QCODO_BUILDS__ . '/qcodo-' . $strVersion . $strExtension));
     }
 }
Exemple #4
0
</strong>
			</h3>
		</div>
<?php 
} else {
    ?>
		<p>Currently performing a Qcodo build...</p>
<?php 
}
?>



	<h1 style="margin-top: 24px;">Current Development Version</h1>
<?php 
if (QApplication::GetQcodoVersion(false)) {
    ?>
		<h3>
			version: <strong><?php 
    _p($strDevVersion);
    ?>
</strong>
			&nbsp;|&nbsp;
			released: <strong><?php 
    _p($dttDevDate->__toString(QDateTime::FormatDisplayDateTimeFull));
    ?>
</strong>
		</h3>
	
		<div style="margin-left: 25px; margin-top: 12px; font-size: 18px;">
			<strong><a href="/downloads/get.php/release_dev_targz/qcodo-<?php