/** * Method setObject * @access public * @param WebSitePhpObject|WebSitePhpEventObject $object * @since 1.0.67 */ public function setObject($object) { if (!is_subclass_of($object, "WebSitePhpObject") && !is_subclass_of($object, "WebSitePhpEventObject")) { throw new NewException(get_class($this) . "->setObject() error: \$object must be a WebSitePhpObject object", 0, getDebugBacktrace(1)); } $this->object = $object; if ($this->getPublicKey() == null) { if (($keys = createKeys($this->passphrase, $this->private_key_bits, $this->private_key_type, $this->encrypte_key)) != null) { ContextSession::add($this->object->getId() . "_" . $this->passphrase . "_privatekey" . $this->private_key_bits, $keys['private']); ContextSession::add($this->object->getId() . "_" . $this->passphrase . "_publickey" . $this->private_key_bits, $keys['public']); } } }
</i></th> </thead> <tr> <td> <?php echo $lang['reg_keys_desc']; ?> </td> </tr> </table> <br /> <?php if (isset($_GET['action'])) { if ($_GET['action'] == 'create') { createKeys(); } elseif ($_GET['action'] == 'delete') { deleteKey(); } elseif ($_GET['action'] == 'setused') { setUsed(); } elseif ($_GET['action'] == 'deleteall') { $DB->query("TRUNCATE TABLE mw_regkeys"); } } $allkeys = $DB->select("SELECT * FROM `mw_regkeys`"); $num_keys = $DB->count("SELECT COUNT(*) FROM mw_regkeys"); ?> <p> <a href="?p=admin&sub=regkeys&action=deleteall" onclick="return confirm('Are you sure?');"> <b>[ <font color="red"><?php