/** * setter. set the URL to be used for redirect * @param string * @access public */ function setURL($URL) { $this->URL = $URL; if (strpos($URL, "includes/nxt/back.php") !== false) { $this->URL = KT_makeIncludedURL($this->URL); } }
/** * Add these fields/values to transaction: kt_login_user, kt_login_password, kt_login_page, kt_login_redirect; * Register the trigger Trigger_ForgotPassword_RemoveDynamicFields on ERROR * @param object tNG transaction object * @return nothing * @access public */ function Trigger_ForgotPassword_AddDynamicFields(&$tNG) { $tNG->addColumn("kt_login_user", "STRING_TYPE", "VALUE", $tNG->kt_login_user); $tNG->addColumn("kt_login_password", "STRING_TYPE", "VALUE", $tNG->kt_login_password); $tmpRelPath = KT_makeIncludedURL($tNG->dispatcher->relPath); $login_page = KT_Rel2AbsUrl(KT_getUri(), $tmpRelPath, $GLOBALS['tNG_login_config']['login_page'], true); $tNG->addColumn("kt_login_page", "STRING_TYPE", "VALUE", $login_page); $redirect_page = KT_addReplaceParam($tmpRelPath . $GLOBALS['tNG_login_config']['login_page'], "info", "FORGOT"); $tNG->addColumn("kt_login_redirect", "STRING_TYPE", "VALUE", $redirect_page); $tNG->registerTrigger("ERROR", "Trigger_ForgotPassword_RemoveDynamicFields", -100); return null; }
/** * Getter. Get htmlBody. * @return string the content of the email (can have any html tags but <script>) * @access protected */ function getHtmlBody() { if ($this->format != 'text') { $text = KT_DynamicData($this->content, $this->getTng(), $this->escapeMethod, $this->getUseSavedData(), array(), false); $text = $this->removeScript($text); return KT_transformsPaths(KT_makeIncludedURL($this->file), $text, true); } else { return; } }
/** * Constructor. set the connection/relative path * @param object connection * @param string relative path * @access public */ function tNG_RestrictAccess(&$connection, $relPath) { $this->connection =& $connection; $this->relPath = KT_makeIncludedURL($relPath); }
/** * setter. set tha page url where the user is redirect after log out * @param string pageRedirect * @access public */ function setPageRedirect($pageRedirect) { $this->pageRedirect = KT_makeIncludedURL($pageRedirect); }