removed mods directory from the ATutor codebase
[atutor.git] / mods / photos / module.php
diff --git a/mods/photos/module.php b/mods/photos/module.php
deleted file mode 100644 (file)
index 3726f69..0000000
+++ /dev/null
@@ -1,148 +0,0 @@
-<?php\r
-/***********************************************************************/\r
-/* ATutor                                                                                                                         */\r
-/***********************************************************************/\r
-/* Copyright (c) 2002-2009                                                                                        */\r
-/* Adaptive Technology Resource Centre / Inclusive Design Institution  */\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/photos/include/constants.inc.php');   //load constant file right away.\r
-$savant->addPath('template', AT_PA_INCLUDE.'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_PHOTO_ALBUM',       $this->getPrivilege());\r
-define('AT_ADMIN_PRIV_PHOTO_ALBUM', $this->getAdminPrivilege());\r
-\r
-/*******\r
- * create a side menu box/stack.\r
- */\r
-$this->_stacks['pa_photo_gallery'] = array('title_var'=>'pa_photo_gallery', 'file'=>AT_INCLUDE_PATH.'../mods/photos/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_PA_BASENAME.'index.php';\r
-\r
-$this->_list['pa_photo_gallery'] = array('title_var'=>'pa_photo_gallery','file'=>AT_PA_BASE.'sublinks.php');\r
-$this->_pages[AT_PA_BASENAME.'index.php']['icon']      = 'images/home-directory_sm.png';\r
-\r
-/*******\r
- * add the admin pages when needed.\r
- */\r
-if (admin_authenticate(AT_ADMIN_PRIV_PHOTO_ALBUM, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
-       $this->_pages[AT_NAV_ADMIN] = array('mods/photos/index_admin.php');\r
-       $this->_pages[AT_PA_BASENAME.'index_admin.php']['title_var'] = 'pa_photo_gallery';\r
-       $this->_pages[AT_PA_BASENAME.'index_admin.php']['parent']    = AT_NAV_ADMIN;\r
-       $this->_pages[AT_PA_BASENAME.'index_admin.php']['children']    = array(AT_PA_BASENAME.'admin/preferences.php');\r
-               $this->_pages[AT_PA_BASENAME.'admin/preferences.php']['title_var'] = 'pa_preferences';\r
-               $this->_pages[AT_PA_BASENAME.'admin/preferences.php']['parent'] = AT_PA_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
-//Temp _pages \r
-$this->_pages[AT_SOCIAL_BASENAME.'index.php']['children'] = array(AT_PA_BASENAME.'index.php');\r
-//end temp\r
-\r
-//$this->_pages[AT_PA_BASENAME.'index.php']['title_var'] = _AT('test');\r
-//$this->_pages[AT_PA_BASENAME.'index.php']['parent'] = AT_SOCIAL_BASENAME.'index.php';\r
-//$this->_pages[AT_SOCIAL_BASENAME.'index_mystart.php']['children'] = array_push($this->_pages[AT_SOCIAL_BASENAME.'index_mystart.php']['children'], AT_PA_BASENAME.'index.php');\r
-\r
-\r
-$this->_pages[AT_PA_BASENAME.'index.php']['title_var'] = 'pa_photo_gallery';\r
-$this->_pages[AT_PA_BASENAME.'index.php']['img']       = AT_PA_BASENAME.'images/photo_gallery.png';\r
-\r
-if($_SESSION['course_id'] < 1){\r
-       $this->_pages[AT_PA_BASENAME.'index.php']['children'] = array(AT_PA_BASENAME.'profile_album.php', AT_PA_BASENAME.'create_album.php');\r
-}else{\r
-       $this->_pages[AT_PA_BASENAME.'index.php']['children'] = array(AT_PA_BASENAME.'profile_album.php', AT_PA_BASENAME.'course_albums.php', AT_PA_BASENAME.'shared_albums.php', AT_PA_BASENAME.'create_album.php');\r
-       $this->_pages[AT_PA_BASENAME.'course_albums.php']['title_var'] = 'pa_course_albums';\r
-       $this->_pages[AT_PA_BASENAME.'course_albums.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-       $this->_pages[AT_PA_BASENAME.'course_albums.php']['guide']     = 'general/?p=pa_index.php';\r
-}\r
-\r
-$this->_pages[AT_PA_BASENAME.'index.php']['guide']     = 'general/?p=pa_index.php';\r
-$this->_pages[AT_PA_BASENAME.'index.php']['parent'] = AT_SOCIAL_BASENAME.'index_mystart.php';\r
-$this->_pages[AT_SOCIAL_BASENAME.'index_mystart.php']['children'] = array_merge(isset($this->_pages[AT_SOCIAL_BASENAME.'index_mystart.php']['children']) ? $this->_pages[AT_SOCIAL_BASENAME.'index_mystart.php']['children'] : array(), array(AT_PA_BASENAME.'index.php'));\r
-\r
-//$this->_pages[AT_PA_BASENAME.'my_albums.php']['title_var'] = 'pa_my_albums';\r
-//$this->_pages[AT_PA_BASENAME.'my_albums.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'create_album.php']['title_var'] = 'pa_create_album';\r
-$this->_pages[AT_PA_BASENAME.'create_album.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'create_album.php']['guide']     = 'general/?p=pa_index.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'profile_album.php']['title_var'] = 'pa_profile_album';\r
-$this->_pages[AT_PA_BASENAME.'profile_album.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'profile_album.php']['guide']     = 'general/?p=pa_albums.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'shared_albums.php']['title_var'] = 'pa_shared_albums';\r
-$this->_pages[AT_PA_BASENAME.'shared_albums.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'shared_albums.php']['guide']     = 'general/?p=pa_albums.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'search.php']['title_var'] = 'search';\r
-$this->_pages[AT_PA_BASENAME.'search.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'search.php']['guide']     = 'general/?p=pa_albums.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'edit_album.php']['title_var'] = 'pa_edit_album';\r
-$this->_pages[AT_PA_BASENAME.'edit_album.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'edit_album.php']['guide']     = 'general/?p=pa_albums.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'delete_album.php']['title_var'] = 'pa_delete_album';\r
-$this->_pages[AT_PA_BASENAME.'delete_album.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'albums.php']['title_var'] = 'pa_albums';\r
-$this->_pages[AT_PA_BASENAME.'albums.php']['parent'] = AT_PA_BASENAME.'index.php';\r
-$this->_pages[AT_PA_BASENAME.'albums.php']['guide']     = 'general/?p=pa_albums.php';\r
-//$this->_pages[AT_PA_BASENAME.'albums.php']['children']  = array(AT_PA_BASENAME.'photo.php');\r
-\r
-$this->_pages[AT_PA_BASENAME.'photo.php']['title_var'] = 'pa_photo';\r
-$this->_pages[AT_PA_BASENAME.'photo.php']['parent'] = AT_PA_BASENAME.'albums.php';\r
-$this->_pages[AT_PA_BASENAME.'photo.php']['guide']     = 'general/?p=pa_photo.php';\r
-       $this->_pages[AT_PA_BASENAME.'delete_photo.php']['title_var'] = 'pa_delete_photo';\r
-       $this->_pages[AT_PA_BASENAME.'delete_photo.php']['parent'] = AT_PA_BASENAME.'photo.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'edit_photos.php']['title_var'] = 'pa_edit_photos';\r
-$this->_pages[AT_PA_BASENAME.'edit_photos.php']['parent'] = AT_PA_BASENAME.'albums.php';\r
-$this->_pages[AT_PA_BASENAME.'edit_photos.php']['guide']     = 'general/?p=pa_albums.php';\r
-\r
-$this->_pages[AT_PA_BASENAME.'delete_comment.php']['title_var'] = 'pa_delete_comment';\r
-$this->_pages[AT_PA_BASENAME.'delete_comment.php']['parent'] = AT_PA_BASENAME.'photo.php';\r
-\r
-?>\r