X-Git-Url: http://git.hcoop.net/hcoop/zz_old/portal.git/blobdiff_plain/566fd71293b52f72e94433da590b14b4a06b07e2..1b8fe8b9a87a942799558078898feb0a0fe52a02:/pref.mlt?ds=sidebyside diff --git a/pref.mlt b/pref.mlt index f4ba6fb..e86826f 100644 --- a/pref.mlt +++ b/pref.mlt @@ -1,4 +1,6 @@ <% val you = Init.getUserId (); +val yourname = Init.getUserName (); +val youremail = yourname ^ "@hcoop.net"; @header [("title", ["Member preferences"])]; @@ -7,15 +9,39 @@ if $"cmd" = "mod" then Pref.setDirectory you else Pref.unsetDirectory you - end + end; - %>

Preferences updated

<% + if not (iff $"discuss" = "on" then + Pref.subscribe ("hcoop-discuss", youremail) + else + Pref.unsubscribe ("hcoop-discuss", youremail)) then + %>

Error setting hcoop-discuss status

<% + end; + + if not (iff $"misc" = "on" then + Pref.subscribe ("hcoop-misc", youremail) + else + Pref.unsubscribe ("hcoop-misc", youremail)) then + %>

Error setting hcoop-misc status

<% + end; + + if not (iff $"sysadmin" = "on" then + Pref.subscribe ("hcoop-sysadmin", youremail) + else + Pref.unsubscribe ("hcoop-sysadmin", youremail)) then + %>

Error setting hcoop-sysadmin status

<% + end; + + %>

Preferences updated

<% end %> -
+ - - +
checked<% end %>> Include me in the public member directory
+ + + +
checked<% end %>> Include me in the public member directory.
checked<% end %>> Include me on the hcoop-discuss mailing list. (On-topic discussion and sporadically high volume)
checked<% end %>> Include me on the hcoop-sysadmin mailing list. (Discussion about technical adminstrative planning and related issues, not dealing directly with member support requests)
checked<% end %>> Include me on the hcoop-misc mailing list. (Off-topic)