intval($_GET['lookup'])]); if (dbrows($result)) { $user_data = dbarray($result); } else { redirect(BASEDIR."index.php"); } set_title($locale['u103'].$locale['global_201'].$user_data['user_name']); if (iADMIN && checkrights("UG") && $_GET['lookup'] != $user_data['user_id']) { if ((isset($_POST['add_to_group'])) && (isset($_POST['user_group']) && isnum($_POST['user_group']))) { if (!preg_match("(^\.{$_POST['user_group']}$|\.{$_POST['user_group']}\.|\.{$_POST['user_group']}$)", $user_data['user_groups'])) { $result = dbquery("UPDATE ".DB_USERS." SET user_groups='".$user_data['user_groups'].".".$_POST['user_group']."' WHERE user_id='".$_GET['lookup']."'"); } redirect(FUSION_SELF."?lookup=".$_GET['lookup']); } } $userFields = new PHPFusion\UserFields(); $userFields->userData = $user_data; $userFields->showAdminOptions = TRUE; $userFields->method = 'display'; $userFields->plugin_folder = [INCLUDES."user_fields/", INFUSIONS]; $userFields->plugin_locale_folder = LOCALE.LOCALESET."user_fields/"; $userFields->display_profile_output(); PHPFusion\OpenGraph::ogUserProfile($_GET['lookup']); } else if (isset($_GET['group_id']) && isnum($_GET['group_id'])) { /* * Show group */ \PHPFusion\UserGroups::getInstance()->setGroup($_GET['group_id'])->showGroup(); } else { redirect(BASEDIR."index.php"); } require_once THEMES.'templates/footer.php';