$ncat = oneQuery('contact_group', 'id', $vcat, 'name'); $page = oneQuery('menu', 'link', "'?app=contact&view=person&id={$vcat}'", 'id'); if (!$page) { $page = oneQuery('permalink', 'link', "'?app=contact&view=person&id={$vcat}'", 'pid'); } add_permalink($item, "contact/" . $ncat, $page); } else { if ($view == 'group') { $ncat = oneQuery('contact_group', 'id', $id, 'name'); add_permalink("contact/" . $ncat); } else { if (app_param() == 'contact' and empty($id) and empty($view)) { add_permalink("contact"); } } } } /****************************************/ /* Contact Title */ /****************************************/ if (!checkHomePage()) { if ($view == "person") { define('PageTitle', contactInfo('name')); } else { if ($view == "group") { define('PageTitle', groupInfo('name') . ' Contacts'); } else { define('PageTitle', 'Contact'); } } }
require_once 'include/groups.php'; require_once 'include/util.php'; global $ownername; global $authuser; if ($_SERVER['HTTP_X_SECONDLIFE_OWNER_NAME'] == $ownername || $_REQUEST['psk'] == $authuser) { $authorized = true; } $command = $_REQUEST['command']; if ($command == "groupinfo") { if (!$authorized) { genPipeError('auth'); } if (!isset($_REQUEST['group_key'])) { genPipeError('param'); } $result = groupInfo($_REQUEST['group_key']); if ($result == null) { genPipeError('unknown'); } else { genPipeResponse($result); } /*} else if ( $command == "getgroups" ) { if ( !$authorized ) { genPipeError('auth'); } if ( ! isset($_REQUEST['av_key']) ) { genPipeError('param'); } $result = groupList($_REQUEST['av_key']); if ( $result == null ) { genPipeError('unknown');