示例#1
0
 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
0
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;
?>