- $enable = intval(get_pconfig(local_user(),'securemail','enable'));
- $publickey = get_pconfig(local_user(),'securemail','pkey');
-
- $t = get_markup_template( "admin.tpl", "addon/securemail/" );
-
- $s = replace_macros($t, array(
- '$title' => t('"Secure Mail" Settings'),
- '$submit' => t('Save Settings'),
- '$test' => t('Save and send test'), //NOTE: update also in 'post'
- '$enable' => array('securemail-enable', t('Enable Secure Mail'), $enable, ""),
- '$publickey' => array('securemail-pkey', t('Public key'), $publickey, t("Your public PGP key, ascii armored format"), "rows='10'")
- ));
-
+ $enable = intval(PConfig::get(local_user(), 'securemail', 'enable'));
+ $publickey = PConfig::get(local_user(), 'securemail', 'pkey');