<div id="livesearch"></div> </form> </div> </div> <div> <div class="headingbox"><h3><?php echo _AT('search_results'); ?> </h3></div> <div class="contentbox"> <?php if (!empty($this->friends)) { $privacy_controller = new PrivacyController(); echo "<h4>" . _AT('there_are_entries', sizeof($this->friends)) . "</h4>"; foreach ($this->friends as $id => $person) { $privacy_obj = $privacy_controller->getPrivacyObject($id); // debug($privacy_obj->getSearch(), 'search'.$id); $relationship = $privacy_controller->getRelationship($id); if ((!isset($person['added']) || $person['added'] != 1) && !PrivacyController::validatePrivacy(AT_SOCIAL_SEARCH_VISIBILITY, $relationship, $privacy_obj->getSearch())) { //if this user doesn't want to be searched. continue; } ?> <div class="contact_mini" > <div> <div ><?php echo printSocialProfileImg($id); ?> </div> <div> <?php
// Get activities $act_obj = new Activity(); $activities = $act_obj->getActivities($id); // Member object $profile = new Member($id); // Tracks if ($profile->getID() != $_SESSION['member_id']){ $profile->addVisitor($_SESSION['member_id']); } // Privacy Controller $pc = new PrivacyController(); $privacy_obj = $pc->getPrivacyObject($id); if ($privacy_obj==null){ //no such person //add error and redirect back to is own page? // header('Location: sprofile.php'); // exit; } else { $relationship = $pc->getRelationship($id); $profile_prefs = $privacy_obj->getProfile(); } // Delete activities if (isset($_GET['delete'])){ $id = intval($_GET['delete']); if ($id > 0){ if ($act_obj->deleteActivity($id)){
require(AT_SOCIAL_INCLUDE.'constants.inc.php'); include(AT_SOCIAL_INCLUDE.'classes/PrivacyControl/PrivacyObject.class.php'); include(AT_SOCIAL_INCLUDE.'classes/PrivacyControl/PrivacyController.class.php'); include(AT_SOCIAL_INCLUDE.'classes/Application.class.php'); $_custom_css = $_base_path . AT_SOCIAL_BASENAME . 'module.css'; // use a custom stylesheet if (!$_SESSION['valid_user']) { require(AT_INCLUDE_PATH.'header.inc.php'); $info = array('INVALID_USER', $_SESSION['course_id']); $msg->printInfos($info); require(AT_INCLUDE_PATH.'footer.inc.php'); exit; } $controller = new PrivacyController(); $private_obj = $controller->getPrivacyObject($_SESSION['member_id']); //headers start here include(AT_INCLUDE_PATH.'header.inc.php'); ?> <div class="social-wrapper"> <?php $savant->display('social/pubmenu.tmpl.php'); $savant->display('social/settings/settings_menu.tmpl.php'); if (isset($_REQUEST['n']) && $_REQUEST['n']=='account_settings'){ //TODO //Default to account settings //Page prints from here $savant->display('social/settings/account_settings.tmpl.php');