当前位置: 首页>>代码示例>>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;未经允许,请勿转载。