denyDirect(); $guid = pageArray(1); $user = getEntity($guid); $guids = array($user->guid); $friends = FriendsPlugin::getFriends($user); $entities = array(); $body = NULL; if ($friends && !empty($friends)) { foreach ($friends as $friend) { $guids[] = $friend->guid; } } if ($guids) { $guids = join(',', $guids); $results = getEntities(array("type" => "Activity", "limit" => 10, "metadata_name" => "owner_guid", "metadata_value" => "(" . $guids . ")", "operand" => "IN", "order_by" => "time_created", "order_reverse" => true)); } $body = viewEntityList($results); echo <<<HTML <div class='panel panel-default'> <div class='panel-heading'> Activity </div> <div class='panel-body'> <ul class='timeline timeline-small'> {$body} </ul> </div> </div> HTML ;
* * SocialApparatus CONFIDENTIAL * __________________ * * [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php"; $users = array(); $guids = getInput("guids"); if ($guids) { foreach ($guids as $guid) { $users[] = getEntity($guid); } } else { $guids = array(); } echo viewEntityList($users, "gallery", "", "pull-right margin5 avatar_gallery");
* SocialApparatus CONFIDENTIAL * __________________ * * [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $metatags = Metatag::get(); $body = "<table class='table table-striped table-bordered table-condensed'>"; $body .= "<tr>"; $body .= "<th>Page</th>"; $body .= "<th>Parameter</th>"; $body .= "<th>Value</th>"; $body .= "</tr>"; $body .= viewEntityList($metatags); $body .= "</table>"; $header = "SEO"; echo display("page_elements/page_header", array("text" => $header)); echo $body;
<?php /* * *********************************************************************** * * SocialApparatus CONFIDENTIAL * __________________ * * [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); gateKeeper(); $owner = getLoggedInUser(); $limit = 9; $offset = getInput("offset", 0); $filter = getInput("filter", NULL); $friends = FriendsPlugin::getFriends($owner, $offset, $limit, $filter); $body = viewEntityList($friends, "list"); echo drawPage(array("header" => translate("friends"), "body" => $body, "button" => drawForm(array("name" => "friend_search", "method" => "get", "page" => "friends"))));
* * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $users = getEntities(array("type" => "User", "metadata_name_value_pairs" => array(array("name" => "online", "value" => "true"), array("name" => "verified", "value" => "true"), array("name" => "banned", "value" => "true", "operand" => "!=")))); $list = viewEntityList($users, "gallery"); if ($users) { $count = count($users); } else { $count = 0; } echo <<<HTML <div class='panel panel-default'> <div class='panel-heading'> {$count} Member(s) Online </div> <div class='panel-body'> {$list} </div> </div> HTML
* Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $users = false; $guid = getInput("guid"); $filter = getInput("filter"); if (!$filter) { $friends = listEntities(array("type" => "Relationship", "metadata_name_value_pairs" => array(array("name" => "guid_one", "value" => $guid), array("name" => "relationship_type", "value" => "friend")))); } else { $filter = strtolower($filter); $friends = getEntities(array("type" => "Relationship", "metadata_name_value_pairs" => array(array("name" => "guid_one", "value" => $guid), array("name" => "relationship_type", "value" => "friend")))); } if ($friends) { foreach ($friends as $friend) { if ($filter) { $user2_guid = $friend->guid_two; $user2 = getEntity($user2_guid); $full_name = strtolower($user2->full_name); if (strpos($full_name, $filter) !== false) { $users[] = getEntity($friend->guid_two); } } else { $users[] = getEntity($friend->guid_two); } } if ($users) { echo viewEntityList($users); } }
} $name = Vars::get("name"); $value_users_gallery = NULL; $value = Vars::get("value"); if (!$value) { $value = array(); } if (!empty($value)) { $value_users_gallery = display("output/user_gallery", array("guids" => $value)); } foreach ($value as $user_guid) { $value_users_guid[] = getEntity($user_guid); } $value_users_gallery = viewEntityList($value_users_guid, "gallery", null, "avatar_gallery", false, "medium"); if ($users) { $gallery = viewEntityList($users, "gallery", null, "user_picker avatar_gallery alert alert-danger", false, "medium"); } else { $gallery = NULL; } $json_value = json_encode($value); echo "<div class='form-group'>"; echo "<label>{$label}</label>"; echo "<div class='well clearfix'>"; echo "<button type='button' class='btn btn-primary' data-toggle='modal' data-target='#user_select_modal' onclick='userpicker.update_modal_selections({$json_value});'>"; echo $button_label; echo "</button>"; echo "<div id='selected_users'>"; echo $value_users_gallery; echo "</div>"; if (isset($value)) { echo "<input type='hidden' name='{$name}' id='userpicker_input' value='" . implode(',', $value) . ";'/>";
* [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $guid = pageArray(2); $group = getEntity($guid); $members = $group->members(); $member_html = viewEntityList($members, "gallery"); echo <<<HTML <div class='panel panel-default'> <div class='panel-heading'> Group Members </div> <div class='panel-body'> {$member_html} </div> </div> HTML ;
/* * *********************************************************************** * * SocialApparatus CONFIDENTIAL * __________________ * * [2002] - [2017] SocialApparatus (http://SocialApparatus.co) * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of SocialApparatus * and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); $vars = Vars::get("called_by"); $guid = pageArray(1); $owner = getEntity($guid); $friends = FriendsPlugin::getFriends($owner, 0, 1000); $friends_list = viewEntityList($friends, "gallery"); $find_friends_url = getSiteURL() . "members"; $search_friends_form = drawForm(array("name" => "search_friends", "method" => "get", "page" => "searchFriends", "class" => "form-inline")); $friends_text = translate("friends"); $find_friends_text = translate("find_friends"); echo display("page_elements/panel", array("heading" => "<a href='{$find_friends_url}' class='btn btn-success btn-xs pull-right'>{$find_friends_text}</a>{$friends_text}", "body" => $friends_list, "footer" => $search_friends_form));
static function listEntities($params) { $entities = getEntities($params); // false forces get entites to return guids instead of objects if ($entities) { $view_type = isset($params['view_type']) ? $params['view_type'] : "list"; $wrapper_class = isset($params['wrapper_class']) ? $params['wrapper_class'] : NULL; $item_class = isset($params['item_class']) ? $params['item_class'] : NULL; $link = isset($params['link']) ? $params['link'] : NULL; $size = isset($params['size']) ? $params['size'] : MEDIUM; return viewEntityList($entities, $view_type, $wrapper_class, $item_class, $link, $size); } return NULL; }
* and its suppliers, if any. The intellectual and technical concepts contained herein * are proprietary to SocialApparatus and its suppliers and may be covered by U.S. and Foreign * Patents, patents in process, and are protected by trade secret or copyright law. * * Dissemination of this information or reproduction of this material is strictly forbidden * unless prior written permission is obtained from SocialApparatus. * * Contact Shane Barron admin@socia.us for more information. */ namespace SocialApparatus; denyDirect(); adminGateKeeper(); Plugin::getPluginsFromFileSystem(); $access = getIgnoreAccess(); setIgnoreAccess(); $plugin_array = getEntities(array("type" => "Plugin", "order_by" => "plugin_order")); setIgnoreAccess($access); $plugins = viewEntityList($plugin_array); $body = <<<HTML <ul class="sortable-list" style="list-style:none;margin-left:0px;padding-left:0px;"> {$plugins} </ul> HTML; $header = "Plugins"; $url = addTokenToURL(getSiteURL() . "action/EnableAllPlugins"); $url2 = addTokenToURL(getSiteURL() . "action/DisableAllPlugins"); $button = "<a href='{$url}' class='btn btn-warning confirm'>Enable All Plugins</a>"; $button .= "<a href='{$url2}' class='btn btn-danger confirm'>Disable All Plugins</a>"; echo display("page_elements/page_header", array("text" => $header, "button" => $button)); echo $body;