當前位置: 首頁>>代碼示例>>PHP>>正文


PHP QApplication::GetQcodoVersion方法代碼示例

本文整理匯總了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>
開發者ID:klucznik,項目名稱:qcodo-website,代碼行數:31,代碼來源:index.tpl.php

示例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");
            }
        }
開發者ID:qcodo,項目名稱:qcodo-website,代碼行數:31,代碼來源:get.php

示例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));
     }
 }
開發者ID:klucznik,項目名稱:qcodo-website,代碼行數:11,代碼來源:QApplication.class.php

示例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>
			&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 
開發者ID:qcodo,項目名稱:qcodo-website,代碼行數:31,代碼來源:index.tpl.php


注:本文中的QApplication::GetQcodoVersion方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。