本文整理汇总了PHP中wfUtils::getSiteBaseURL方法的典型用法代码示例。如果您正苦于以下问题:PHP wfUtils::getSiteBaseURL方法的具体用法?PHP wfUtils::getSiteBaseURL怎么用?PHP wfUtils::getSiteBaseURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wfUtils
的用法示例。
在下文中一共展示了wfUtils::getSiteBaseURL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setupAdminVars
private static function setupAdminVars()
{
$updateInt = wfConfig::get('actUpdateInterval', 2);
if (!preg_match('/^\\d+$/', $updateInt)) {
$updateInt = 2;
}
$updateInt *= 1000;
wp_localize_script('wordfenceAdminjs', 'WordfenceAdminVars', array('ajaxURL' => admin_url('admin-ajax.php'), 'firstNonce' => wp_create_nonce('wp-ajax'), 'siteBaseURL' => wfUtils::getSiteBaseURL(), 'debugOn' => wfConfig::get('debugOn', 0), 'actUpdateInterval' => $updateInt, 'tourClosed' => wfConfig::get('tourClosed', 0), 'welcomeClosed' => wfConfig::get('welcomeClosed', 0), 'cacheType' => wfConfig::get('cacheType'), 'liveTrafficEnabled' => wfConfig::liveTrafficEnabled()));
}
示例2:
Either you or someone else at IP address <b><?php
echo $IP;
?>
</b> requested instructions to<br />
regain access to the website <a href="<?php
echo wfUtils::getSiteBaseURL();
?>
"><b><?php
echo $siteName;
?>
</b></a>.<br />
<br />
Request was generated at: <?php
echo wfUtils::localHumanDate();
?>
<br />
<br />
If you did not request these instructions then you can safely ignore them.<br />
These instructions <b>will be valid for 30 minutes</b>
from the time they were sent.
<ul>
<li>
<a href="<?php
echo $unlockHref;
?>
&func=unlockMyIP">Click here to unlock your ability to sign-in and to access to the site.</a> Do this if you simply need to regain access because you were accidentally locked out.
</li>
<li>
<a href="<?php
echo $unlockHref;
?>