WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php// check if user is logged in if ($wb->is_authenticated()){ $groups = $wb->get_groups_name(); //check if user is part of _Usergroupname_ if(in_array('_Usergroupname_', $groups)) { echo "I'm logged in, and I am member of group _Usergroupname_"; }else{ echo ""; //nothing } }
global $database, $wb;if ($wb->is_authenticated() ) { return 'downloads: ';}else {return '<!--';}
global $database, $wb;if ($wb->is_authenticated() ) { return '|';}else {return '-->';}