Rev 1206 | Rev 1282 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1206 | Rev 1267 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | } |
77 | } |
78 | 78 | ||
79 | OIDplus::getActiveCaptchaPlugin()->captchaVerify($params, 'captcha'); |
79 | OIDplus::getActiveCaptchaPlugin()->captchaVerify($params, 'captcha'); |
80 | 80 | ||
81 | $root_oid = self::getFreeRootOid(false); |
81 | $root_oid = self::getFreeRootOid(false); |
82 | OIDplus::logger()->log("[INFO]OID(oid:%1)+RA(%2)!", "Requested a free OID for email '%2' to be placed into root '%1'", $root_oid, $email); |
82 | OIDplus::logger()->log("V2:[INFO]OID(oid:%1)+RA(%2)", "Requested a free OID for email '%2' to be placed into root '%1'", $root_oid, $email); |
83 | 83 | ||
84 | $timestamp = time(); |
84 | $timestamp = time(); |
85 | $activate_url = OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL) . '?goto='.urlencode('oidplus:com.viathinksoft.freeoid.activate_freeoid$'.$email.'$'.$timestamp.'$'.OIDplus::authUtils()->makeAuthKey('com.viathinksoft.freeoid.activate_freeoid;'.$email.';'.$timestamp)); |
85 | $activate_url = OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL) . '?goto='.urlencode('oidplus:com.viathinksoft.freeoid.activate_freeoid$'.$email.'$'.$timestamp.'$'.OIDplus::authUtils()->makeAuthKey('com.viathinksoft.freeoid.activate_freeoid;'.$email.';'.$timestamp)); |
86 | 86 | ||
87 | $message = file_get_contents(__DIR__ . '/request_msg.tpl'); |
87 | $message = file_get_contents(__DIR__ . '/request_msg.tpl'); |
Line 149... | Line 149... | ||
149 | $title = $params['title'] ?? ''; |
149 | $title = $params['title'] ?? ''; |
150 | 150 | ||
151 | $root_oid = self::getFreeRootOid(false); |
151 | $root_oid = self::getFreeRootOid(false); |
152 | $new_oid = OIDplusOid::parse('oid:'.$root_oid)->appendArcs($this->freeoid_max_id()+1)->nodeId(false); |
152 | $new_oid = OIDplusOid::parse('oid:'.$root_oid)->appendArcs($this->freeoid_max_id()+1)->nodeId(false); |
153 | 153 | ||
154 | OIDplus::logger()->log("[INFO]OID(oid:%2)+OIDRA(oid:%2)!", "Child OID '%1' added automatically by '%3' (RA Name: '%4')", $new_oid, $root_oid, $email, $ra_name); |
154 | OIDplus::logger()->log("V2:[INFO]OID(oid:%2)+OIDRA(oid:%2)", "Child OID '%1' added automatically by '%3' (RA Name: '%4')", $new_oid, $root_oid, $email, $ra_name); |
155 | OIDplus::logger()->log("[INFO]OID(oid:%1)+[OK]RA(%3)!", "Free OID '%1' activated (RA Name: '%4')", $new_oid, $root_oid, $email, $ra_name); |
155 | OIDplus::logger()->log("V2:[INFO]OID(oid:%1)+[OK]RA(%3)", "Free OID '%1' activated (RA Name: '%4')", $new_oid, $root_oid, $email, $ra_name); |
156 | 156 | ||
157 | if ((!empty($url)) && (substr($url, 0, 4) != 'http')) $url = 'http://'.$url; |
157 | if ((!empty($url)) && (substr($url, 0, 4) != 'http')) $url = 'http://'.$url; |
158 | 158 | ||
159 | $description = ''; // '<p>'.htmlentities($ra_name).'</p>'; |
159 | $description = ''; // '<p>'.htmlentities($ra_name).'</p>'; |
160 | if (!empty($url)) { |
160 | if (!empty($url)) { |