/** * 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); }
/** * 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'); }