THis is from the diffs (you'll find them in the patches dir of the midgard-php4
tarball here:
http://cms.polarmedia.no/midgard)

Nadmin adds five patches to the source, all of I applied cleanly to my new
upgrade to 1.4.2-1. I'll list three of them here (partly) just so you get the
function names.

Tarjei

Midgard.c:
 MGD_FE(get_event, NULL)
 MGD_FE(list_events, NULL)
 MGD_FE(list_events_between, NULL)
+MGD_FE(list_events_by_group, NULL)
+MGD_FE(list_events_between_by_group, NULL)
+MGD_FE(list_events_by_person, NULL)
+MGD_FE(list_events_between_by_person, NULL)
+MGD_FE(list_events_between_by_member, NULL)
 MGD_FE(list_events_all, NULL)
 MGD_FE(list_events_all_between, NULL)
 MGD_FE(count_events_in_period, NULL)

mgd_event:
 extern MGD_FUNCTION(ret_type, get_event, (type param));
 extern MGD_FUNCTION(ret_type, list_events, (type param));
 extern MGD_FUNCTION(ret_type, list_events_between, (type param));
+extern MGD_FUNCTION(ret_type, list_events_by_group, (type param));
+extern MGD_FUNCTION(ret_type, list_events_between_by_group, (type param));
+extern MGD_FUNCTION(ret_type, list_events_by_person, (type param));
+extern MGD_FUNCTION(ret_type, list_events_between_by_person, (type param));
+extern MGD_FUNCTION(ret_type, list_events_between_by_member, (type param));
 extern MGD_FUNCTION(ret_type, list_events_all, (type param));
 extern MGD_FUNCTION(ret_type, list_events_all_between, (type param));
 extern MGD_FUNCTION(ret_type, count_events_in_period, (type param));

The last patch, I do not understand, but maybe you do:
--- access.c    Wed Jun  6 16:49:55 2001
+++ access.c.new        Wed Jun  6 17:56:20 2001
@@ -144,6 +144,16 @@
 #if HAVE_MIDGARD_SITEGROUPS
                        ,mgd->sitegroup
 #endif
+                )
+           || mgd_exists_bool(mgd, "person",
+                         "id=$d AND creator=$d AND username=''"
+#if HAVE_MIDGARD_SITEGROUPS
+                         " AND sitegroup IN (0,$d)"
+#endif
+                         , uid, mgd->user
+#if HAVE_MIDGARD_SITEGROUPS
+                        ,mgd->sitegroup
+#endif
                );
 }

Emiliano wrote:
> 
> Tarjei wrote:
> 
> > The Nadmin distro adds a few patches to midgard. These patches provide a
> > few new functions to midgard. How hard would it be for someone to move
> > them into the midgard main source? I'm trying to upgrade my Nadmin, and
> > I guess I'll need these functions to get the group fundtions to work
> > correctly.
> 
> What kind of functions?
> 
> Emile
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to