argc; $argv = $midgard->argv; } function mgd_execute_udf($variable, $selector) { $function = mgd_register_filter($selector); $function($variable); } function mgd_register_filter($selector, $function=NULL) { static $udf = array(); if (is_null($function)) { return $udf[$selector]; } if ($function == '') { unset($udf[$selector]); } else { $udf[$selector] = $function; } return 1; } ?> '.mgd_preparse(mgd_snippet("/NemeinNavBar/init")).''.mgd_preparse(mgd_snippet("/NemeinNavBar/Utils")).'name); if ($article) { $article_symlink = $article->parameter('midcom.symlink','GUID'); if ($article_symlink) { $article = mgd_get_object_by_guid($article_symlink); } } // ### Get page revision date from content if ($article) { $revised = $article->revised; } elseif ($topic) { $revised = $topic->revised; } // ### Get site root URI $host = mgd_get_host($midgard->host); header("Cache-Control: no-cache"); if ($host) { $site[uri] = $host->prefix."/"; if ($host->port == '443') { $protocol = 'https://'; } else { $protocol = 'http://'; } if ($host->port != 80 && $host->port != 0 && $host->port != 443) { $port = ":$host->port"; } $site[url] = $protocol.$host->name.$port.$site[uri]; } // ### Get site's title if ($midgard->sitegroup) { $company = mgd_get_sitegroup($midgard->sitegroup); $site[title] = $company->name; } else { $site[title] = "Sample site"; } /** LOGIN STUFF - commented out for a start // # Include the NemeinAuthentication library mgd_include_snippet("/Nemein_Authentication/Init"); $user=0; if($sg_home) { auth_logout(); $home = mgd_get_host($midgard->host); $destination = "http://".$home->name.$home->prefix."/"; header("Location: $destination"); exit(); } if($logout) { // # relog by using cookies first // # necessary in order to set the online parameter to 0 // # then we can logout finally... $login_error=auth_by_cookies(); if(!$login_error) { $user=mgd_get_person($midgard->user); $user->parameter("punbb","online","0"); } auth_logout(); $status_info = "logged_out"; header("Location: ".$midgard->self); } elseif($login) { $result=auth_login($username,$password); if($result) { $status_info = $result; auth_logout(); } else { unset($status_info); $user=mgd_get_person($midgard->user); $grps=mgd_list_memberships($midgard->user); if($grps) { while($grps->fetch()) { $grp=mgd_get_group($grps->gid); if($grp) { $grps_array[$grp->guid()] = "1"; } } } } } else { $login_error=auth_by_cookies(); if(!$login_error) { unset($status_info); $user=mgd_get_person($midgard->user); $user->parameter("punbb","online","1"); $user=mgd_get_person($midgard->user); $grps=mgd_list_memberships($midgard->user); if($grps){ while($grps->fetch()) { $grp=mgd_get_group($grps->gid); if($grp){ $grps_array[$grp->guid()] = "1"; } } } } else { // would be nice to set login_parameter to 0 here, but seems impossible auth_logout(); } } ** END LOGIN STUFF ***/ /** FORUM STUFF - Commented Out for a start // # if a guest wants to post, we need to // # register the guest_user with midgard if ($_POST["guest_auth"] == "Y") { if(!mgd_auth_midgard("forum_guest","guest",0)) { $status_info = "You can NOT submit POSTS!"; } } // # we need to fetch the Forum config-snippet for the current midgard-SG $sg = mgd_get_sitegroup($midgard->sitegroup); $sg_guid = $sg->guid(); $config_path = "/GLOBALS/".$sg_guid."/FORUM/config"; mgd_include_snippet($config_path); // # include some common functions (mostly user related stuff) mgd_include_snippet("/AegirAddOn_Forum/punbb/include/common"); ** END FORUM STUFF ***/ ?>style == 0) { ?>id,"index"); } if($article && nemein_is_article_online($article->id)) { global $revisor_id; /** * We have article here, show it * But only if approved... * for "last updated": * * 19.01.2006 - by galak: patch to support symlink articles * (nemein_is_article_online will return 1 if symlink-target is online) */ // patch to show symlinks if($article->parameter('midcom.symlink','GUID')) { $symlink_target = mgd_get_object_by_guid($article->parameter('midcom.symlink','GUID')); if($symlink_target) { $article = $symlink_target; } } $lastupdate = date("d.m.Y", $article->revised); if($article->revisor) {$revisor_id=$article->revisor;} else{$revisor_id=$article->author;} if($topic->code) { //eval the code, then finish ?> '.mgd_preparse($topic->code).'
title, 'h'); ?>
abstract) { ?> abstract); ?> content, 'h'); ?> Büro für medizinische Flüchtlingshilfe Berlin
medibuero head image
id); $shownews=0; if($news->N > 0) { while ($news->fetch()) { if(nemein_is_article_online($news->id) && ($news->name!=index)) { if ( (time() - $news->approved) < $news_online_secs ) {$shownews=1;} } } } if ($shownews == 1) { ?>
Neuigkeiten id); $i = 0; if($news->N > 0) { while ($news->fetch()) { if(nemein_is_article_online($news->id) && $news->name!=index && $i < 4 && (time() - $news->approved) < $news_online_secs) { echo "

\n"; echo ''.$news->title.' (mehr)'."\n"; echo '('.date('j.n.Y',$news->approved).' )'."\n"; echo "

\n"; ++$i; } // END if } // END while } // END if $news->N > 0 ?>
id,"index"); } if($article && nemein_is_article_online($article->id)) { global $revisor_id; /** * We have article here, show it * But only if approved... * for "last updated": * * 19.01.2006 - by galak: patch to support symlink articles * (nemein_is_article_online will return 1 if symlink-target is online) */ // patch to show symlinks if($article->parameter('midcom.symlink','GUID')) { $symlink_target = mgd_get_object_by_guid($article->parameter('midcom.symlink','GUID')); if($symlink_target) { $article = $symlink_target; } } $lastupdate = date("d.m.Y", $article->revised); if($article->revisor) {$revisor_id=$article->revisor;} else{$revisor_id=$article->author;} if($topic->code) { //eval the code, then finish ?> '.mgd_preparse($topic->code).'
title, 'h'); ?>
abstract) { ?> abstract); ?> content, 'h'); ?>