function changepassword_maint_alm_users_BeforeShow(&$sender) { $changepassword_maint_alm_users_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $changepassword_maint; //Compatibility //End changepassword_maint_alm_users_BeforeShow //Preserve Password @7-21743877 if (!$Component->FormSubmitted) { $Component->password_Shadow->SetValue(CCEncryptString($Component->password->GetValue(), CCS_ENCRYPTION_KEY_FOR_COOKIE)); $Component->password->SetValue(""); } //End Preserve Password //Custom Code @8-2A29BDB7 // ------------------------- // Write your own code here. $changepassword_maint->alm_users->password->SetValue(""); $changepassword_maint->alm_users->password1->SetValue(""); $changepassword_maint->alm_users->ButtonUpdate->Visible = true; // ------------------------- //End Custom Code //Close changepassword_maint_alm_users_BeforeShow @2-C9D20B32 return $changepassword_maint_alm_users_BeforeShow; }
function users_maintcontent_alm_users_BeforeShow(&$sender) { $users_maintcontent_alm_users_BeforeShow = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $users_maintcontent; //Compatibility //End users_maintcontent_alm_users_BeforeShow //Preserve Password @4-21743877 if (!$Component->FormSubmitted) { $Component->password_Shadow->SetValue(CCEncryptString($Component->password->GetValue(), CCS_ENCRYPTION_KEY_FOR_COOKIE)); $Component->password->SetValue(""); } //End Preserve Password //Close users_maintcontent_alm_users_BeforeShow @3-0AE49795 return $users_maintcontent_alm_users_BeforeShow; }
function CCSetALCookie($login, $password) { $login = CCEncryptString($login, CCS_ENCRYPTION_KEY_FOR_COOKIE); $password = CCEncryptString($password, CCS_ENCRYPTION_KEY_FOR_COOKIE); $result = CCEncryptString($login . ":" . $password . ":" . (time() + CCS_EXPIRATION_DATE), CCS_ENCRYPTION_KEY_FOR_COOKIE); CCSetCookie("iRadiologyLogin", $result, time() + CCS_EXPIRATION_DATE, "/", "", false); }