本文整理汇总了PHP中QApplication::GetQcodoVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP QApplication::GetQcodoVersion方法的具体用法?PHP QApplication::GetQcodoVersion怎么用?PHP QApplication::GetQcodoVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QApplication
的用法示例。
在下文中一共展示了QApplication::GetQcodoVersion方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _p
</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>
示例2: substr
<?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");
}
}
示例3: GetQcodoVersionSize
/**
* @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));
}
}
示例4:
</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>
|
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