本文整理汇总了PHP中IEM::decrypt方法的典型用法代码示例。如果您正苦于以下问题:PHP IEM::decrypt方法的具体用法?PHP IEM::decrypt怎么用?PHP IEM::decrypt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEM
的用法示例。
在下文中一共展示了IEM::decrypt方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: TestBounceSettingsDisplay
/**
* TestBounceSettingsDisplay
* Loads the template for the bounce test thickbox.
*
* @param Array $param Any parameters that needed to be passed to this function
*
* @return Void Doesn't return anything.
*/
private function TestBounceSettingsDisplay($param)
{
$test_bounce_details = array (
'server' => $_GET['bounce_server'],
'username' => $_GET['bounce_username'],
'password' => $_GET['bounce_password'],
'extra_settings' => $_GET['bounce_extrasettings'],
'imap' => (isset($_GET['bounce_imap']) && $_GET['bounce_imap'] == 1) ? 1 : 0,
);
// Decrypt the password.
$test_bounce_details['password'] = IEM::decrypt($test_bounce_details['password'], IEM::sessionGet('RandomToken'));
IEM::sessionSet('TestBounceDetails', $test_bounce_details);
$GLOBALS['Page'] = 'Lists';
$this->LoadLanguageFile('Bounce');
return $this->ParseTemplate('Bounce_Test_Window', true);
}
示例2: popupBounceTest
/**
* popupBounceTest
* Bootstraps the thickbox status window for checking bounce login details.
*
* @param boolean $in_place Whether the popup is mean to give results on this page (true) ore redirect (false).
*
* @return void Does not return anything.
*/
private function popupBounceTest($in_place = false)
{
$bounce_details = array (
'server' => $_GET['bounce_server'],
'username' => $_GET['bounce_username'],
'password' => $_GET['bounce_password'],
'extra_settings' => $_GET['bounce_extrasettings'],
'imap' => IEM::ifsetor($_GET['bounce_imap'], false),
'agreedeleteall' => IEM::ifsetor($_GET['bounce_agreedeleteall'], false),
'save_settings' => IEM::ifsetor($_GET['savebounceserverdetails'], false),
);
// Decrypt the password, as it was encrypted with a JavaScript XOR routine to send here.
$bounce_details['password'] = IEM::decrypt($bounce_details['password'], IEM::sessionGet('RandomToken'));
self::hold('TestBounceDetails', $bounce_details);
$GLOBALS['ProgressTitle'] = GetLang('Bounce_Connecting');
$GLOBALS['ProgressMessage'] = GetLang('Bounce_Connecting_Msg');
$GLOBALS['ProgressReport'] = ''.
$GLOBALS['ProgressStatus'] = '';
$GLOBALS['ProgressURLAction'] = 'index.php?Page=Bounce&Action=TestBounceSettings';
if ($in_place) {
$GLOBALS['ProgressURLAction'] .= '&InPlace=true';
}
$this->ParseTemplate('ProgressReport_Popup');
}