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


PHP wfUtils::getSiteBaseURL方法代碼示例

本文整理匯總了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()));
 }
開發者ID:ashenkar,項目名稱:sanga,代碼行數:9,代碼來源:wordfenceClass.php

示例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;
?>
開發者ID:arobbins,項目名稱:davis,代碼行數:31,代碼來源:email_unlockRequest.php


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