removed mods directory from the ATutor codebase
[atutor.git] / mods / social / module.php
diff --git a/mods/social/module.php b/mods/social/module.php
deleted file mode 100644 (file)
index 28bde35..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-<?php\r
-/****************************************************************/\r
-/* ATutor                                                                                                              */\r
-/****************************************************************/\r
-/* Copyright (c) 2002-2009                                                                             */\r
-/* Adaptive Technology Resource Centre / University of Toronto  */\r
-/* http://atutor.ca                                                                                            */\r
-/*                                                              */\r
-/* This program is free software. You can redistribute it and/or*/\r
-/* modify it under the terms of the GNU General Public License  */\r
-/* as published by the Free Software Foundation.                               */\r
-/****************************************************************/\r
-// $Id$\r
-\r
-/*******\r
- * doesn't allow this file to be loaded with a browser.\r
- */\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-\r
-/*******\r
- * add savant variable\r
- */\r
-global $savant;\r
-require(AT_INCLUDE_PATH.'../mods/social/lib/constants.inc.php');       //load constant file right away.\r
-$savant->addPath('template',   AT_SOCIAL_BASE.'html/');\r
-\r
-/******\r
- * this file must only be included within a Module obj\r
- */\r
-if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
-\r
-/*******\r
- * assign the instructor and admin privileges to the constants.\r
- */\r
-define('AT_PRIV_SOCIAL',       $this->getPrivilege());\r
-define('AT_ADMIN_PRIV_SOCIAL', $this->getAdminPrivilege());\r
-\r
-/*******\r
- * create a side menu box/stack.\r
- */\r
-$this->_stacks['social'] = array('title_var'=>'social', 'file'=>AT_INCLUDE_PATH.'../mods/social/side_menu.inc.php');\r
-// ** possible alternative: **\r
-// $this->addStack('social', array('title_var' => 'social', 'file' => './side_menu.inc.php');\r
-\r
-/*******\r
- * if this module is to be made available to students on the Home or Main Navigation.\r
- */\r
-$_group_tool = $_student_tool = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-/*******\r
- * add the admin pages when needed.\r
- */\r
-\r
-if (admin_authenticate(AT_ADMIN_PRIV_SOCIAL, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
-       $this->_pages[AT_NAV_ADMIN] = array('mods/social/index_admin.php');\r
-       $this->_pages[AT_SOCIAL_BASENAME.'index_admin.php']['title_var'] = 'social';\r
-       $this->_pages[AT_SOCIAL_BASENAME.'index_admin.php']['parent']    = AT_NAV_ADMIN;\r
-       $this->_pages[AT_SOCIAL_BASENAME.'index_admin.php']['children']    = array(AT_SOCIAL_BASENAME.'admin/delete_applications.php');\r
-\r
-               $this->_pages[AT_SOCIAL_BASENAME.'admin/delete_applications.php']['title_var'] = 'delete_applications';\r
-               $this->_pages[AT_SOCIAL_BASENAME.'admin/delete_applications.php']['parent'] = AT_SOCIAL_BASENAME.'index_admin.php';\r
-}\r
-\r
-\r
-/*******\r
- * instructor Manage section:\r
- */\r
-//$this->_pages[AT_SOCIAL_BASENAME.'index_instructor.php']['title_var'] = 'social';\r
-//$this->_pages[AT_SOCIAL_BASENAME.'index_instructor.php']['parent']   = 'tools/index.php';\r
-\r
-// ** possible alternative: **\r
-// $this->pages['./index_instructor.php']['title_var'] = 'social';\r
-// $this->pages['./index_instructor.php']['parent']    = 'tools/index.php';\r
-\r
-/*******\r
- * student page.\r
- */\r
-$this->_pages[AT_SOCIAL_BASENAME.'index.php']['title_var'] = 'social';\r
-$this->_pages[AT_SOCIAL_BASENAME.'index.php']['img']       = AT_SOCIAL_BASENAME.'images/social.jpg';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'sprofile.php']['title_var'] = 'social_profile';\r
-$this->_pages[AT_SOCIAL_BASENAME.'sprofile.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'edit_profile.php']['title_var'] = 'edit_profile';\r
-$this->_pages[AT_SOCIAL_BASENAME.'edit_profile.php']['parent'] = AT_SOCIAL_BASENAME.'sprofile.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'profile_picture.php']['title_var'] = 'picture';\r
-$this->_pages[AT_SOCIAL_BASENAME.'profile_picture.php']['parent'] = AT_SOCIAL_BASENAME.'edit_profile.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'basic_profile.php']['title_var'] = 'profile';\r
-$this->_pages[AT_SOCIAL_BASENAME.'basic_profile.php']['parent'] = AT_SOCIAL_BASENAME.'edit_profile.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'applications.php']['title_var'] = 'gadgets';\r
-$this->_pages[AT_SOCIAL_BASENAME.'applications.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'connections.php']['title_var'] = 'connections';\r
-$this->_pages[AT_SOCIAL_BASENAME.'connections.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-//     $this->_pages['mods/social/add_friends.php']['title_var'] = 'add_friends';\r
-//     $this->_pages['mods/social/add_friends.php']['parent'] = 'mods/social/connections.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'activities.php']['title_var'] = 'activities';\r
-$this->_pages[AT_SOCIAL_BASENAME.'activities.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'settings.php']['title_var'] = 'settings';\r
-$this->_pages[AT_SOCIAL_BASENAME.'settings.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/index.php']['title_var'] = 'social_groups';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/index.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/create.php']['title_var'] = 'create_groups';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/create.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/view.php']['title_var'] = 'view_groups';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/view.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-       $this->_pages[AT_SOCIAL_BASENAME.'groups/delete_message.php']['title_var'] = 'delete_message';\r
-       $this->_pages[AT_SOCIAL_BASENAME.'groups/delete_message.php']['parent'] = AT_SOCIAL_BASENAME.'groups/view.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/invite.php']['title_var'] = 'invite_groups';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/invite.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/edit.php']['title_var'] = 'edit_group';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/edit.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/search.php']['title_var'] = 'search';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/search.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/list.php']['title_var'] = 'group_members';\r
-$this->_pages[AT_SOCIAL_BASENAME.'groups/list.php']['parent'] = AT_SOCIAL_BASENAME.'groups/index.php';\r
-\r
-/* public pages */\r
-$this->_pages[AT_NAV_PUBLIC] = array(AT_SOCIAL_BASENAME.'index_public.php');\r
-$this->_pages[AT_SOCIAL_BASENAME.'index_public.php']['title_var'] = 'social';\r
-$this->_pages[AT_SOCIAL_BASENAME.'index_public.php']['parent'] = AT_NAV_PUBLIC;\r
-\r
-\r
-/* my start page pages */\r
-if ($_SESSION['valid_user']==1){\r
-//$this->_pages[AT_NAV_START]  = array('mods/social/index_mystart.php');\r
-$this->_pages[AT_NAV_START]  = array(AT_SOCIAL_BASENAME.'index.php');\r
-$this->_pages[AT_SOCIAL_BASENAME.'index.php']['title_var'] = 'social';\r
-$this->_pages[AT_SOCIAL_BASENAME.'index.php']['parent'] = AT_NAV_START;\r
-}\r
-\r
-function social_get_group_url($group_id) {\r
-       return AT_SOCIAL_BASENAME.'index.php';\r
-}\r
-?>
\ No newline at end of file