本文整理汇总了PHP中OC_Util::getHumanVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP OC_Util::getHumanVersion方法的具体用法?PHP OC_Util::getHumanVersion怎么用?PHP OC_Util::getHumanVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OC_Util
的用法示例。
在下文中一共展示了OC_Util::getHumanVersion方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
/**
* @NoAdminRequired
* @NoCSRFRequired
*/
public function index()
{
if (substr(\OC_Util::getHumanVersion(), 0, 3) != '8.0') {
// OC >= 8.1
$response = new TemplateResponse('passwords', 'main');
$csp = new ContentSecurityPolicy();
$csp->addAllowedImageDomain('https://icons.duckduckgo.com');
$csp->addAllowedImageDomain('https://www.google.com');
$response->setContentSecurityPolicy($csp);
return $response;
} else {
// OC =< 8.0.4
return new TemplateResponse('passwords', 'main');
}
}
示例2: p
p($l->t('Hardening and security guidance'));
?>
↗</a></li>
</ul>
</div>
<div class="section">
<h2><?php
p($l->t('Version'));
?>
</h2>
<strong><?php
p($theme->getTitle());
?>
</strong> <?php
p(OC_Util::getHumanVersion());
?>
<?php
include 'settings.development.notice.php';
?>
</div>
<?php
if (!empty($_['updaterAppPanel'])) {
?>
<div id="updater"><?php
print_unescaped($_['updaterAppPanel']);
?>
</div>
<?php
}
示例3: if
<?php if ($_['logFileSize'] > 0): ?>
<a href="<?php print_unescaped(OC::$server->getURLGenerator()->linkToRoute('settings.LogSettings.download')); ?>" class="button" id="downloadLog"><?php p($l->t('Download logfile'));?></a>
<?php endif; ?>
<?php if ($_['entriesremain']): ?>
<input id="moreLog" type="button" value="<?php p($l->t('More'));?>...">
<input id="lessLog" type="button" value="<?php p($l->t('Less'));?>...">
<?php endif; ?>
<?php if ($_['logFileSize'] > (100 * 1024 * 1024)): ?>
<br>
<em>
<?php p($l->t('The logfile is bigger than 100MB. Downloading it may take some time!')); ?>
</em>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="section">
<h2><?php p($l->t('Version'));?></h2>
<strong><?php p($theme->getTitle()); ?></strong> <?php p(OC_Util::getHumanVersion()) ?>
<?php if (OC_Util::getEditionString() === ''): ?>
<p>
<?php print_unescaped($l->t('Developed by the <a href="http://ownCloud.org/contact" target="_blank">ownCloud community</a>, the <a href="https://github.com/owncloud" target="_blank">source code</a> is licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank"><abbr title="Affero General Public License">AGPL</abbr></a>.')); ?>
</p>
<?php endif; ?>
</div>
<div class="section credits-footer">
<p><?php print_unescaped($theme->getShortFooter()); ?></p>
</div>
</div>