本文整理汇总了PHP中License::checkLicense方法的典型用法代码示例。如果您正苦于以下问题:PHP License::checkLicense方法的具体用法?PHP License::checkLicense怎么用?PHP License::checkLicense使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::checkLicense方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: feature
<br/>
<div class="form" style="width: 600px;">
<div class="formTitle" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="400"><span class="formLabel" style="font-size: 14px; font-family: Arial; color: #6E6E6E;">Export diagram: <?php
echo $diagram->title;
?>
</span></td>
<td colspan="2"> </td>
</tr>
</table>
</div>
<?if(false && !$l->checkLicense() ){ ?>
<div>
This feature (export as PNG and as DMO) is disable in free version.
<p/>
Please <a href="./license.php"><img style="vertical-align: middle;" src="assets/images/upgrade-button.png" /></a> to be enable these feature.
</div>
<?} else if(false && $l->host != $currentHost) {?>
<div style="background-color: yellow; font-size: 30px;">
License host (<?php
echo $l->host;
?>
) is wrong. It should be: <?php
echo $currentHost;
?>
<p/>
Please <a href="./license.php"><img style="vertical-align: middle;" src="assets/images/upgrade-button.png" /></a> to be enable these feature.
示例2: dirname
?>
"></script>
</head>
<body>
<?php
require_once dirname(__FILE__) . '/header.php';
?>
<div id="content" style="text-align: left; /*border: solid 1px red;*/ padding-left: 100px;">
<?php
require_once dirname(__FILE__) . '/common/messages.php';
?>
<br/>
<?php
if (!$l->checkLicense()) {
?>
<div>
<div style="margin: 10px auto; width: 600px;">
This feature is disable in free version.
<p/>
Please <a href="./license.php"><img style="vertical-align: middle;" src="assets/images/upgrade-button.png" /></a> to be enable these feature.
</div>
</div>
<?php
} else {
if (false && $l->host != $currentHost) {
?>
<div style="margin: 10px auto; width: 600px;">
License host (<?php