removed mods directory from the ATutor codebase
[atutor.git] / mods / photos / delete_album.php
diff --git a/mods/photos/delete_album.php b/mods/photos/delete_album.php
deleted file mode 100644 (file)
index da4951f..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-/***********************************************************************/
-/* ATutor                                                                                                                         */
-/***********************************************************************/
-/* Copyright (c) 2002-2009                                                                                        */
-/* Adaptive Technology Resource Centre / Inclusive Design Institution  */
-/* http://atutor.ca                                                                                                       */
-/*                                                                                                                                        */
-/* This program is free software. You can redistribute it and/or          */
-/* modify it under the terms of the GNU General Public License            */
-/* as published by the Free Software Foundation.                                          */
-/***********************************************************************/
-// $Id$
-$_user_location = 'public';
-
-define('AT_INCLUDE_PATH', '../../include/');
-require (AT_INCLUDE_PATH.'vitals.inc.php');
-//include (AT_INCLUDE_PATH.'../mods/_core/file_manager/filemanager.inc.php');  //clr_dir()
-include (AT_INCLUDE_PATH.'lib/filemanager.inc.php');   //clr_dir()
-include (AT_PA_INCLUDE.'lib.inc.php'); //album_filepath
-include (AT_PA_INCLUDE.'classes/PhotoAlbum.class.php');
-
-//validates if this is me/have the privilege to delete.
-$id = intval($_REQUEST['id']);
-$pa = new PhotoAlbum($id);
-$info = $pa->getAlbumInfo();
-
-if (!$pa->checkAlbumPriv($_SESSION['member_id'])){
-       $msg->addError('ACCESS_DENIED');
-       header('Location: index.php');
-       exit;
-}
-
-if ($_POST['submit_no']) {
-       $msg->addFeedback('CANCELLED');
-       Header('Location: index.php');
-       exit;
-}
-
-if ($_POST['submit_yes']) {
-       //delete
-       $pa->deleteAlbum();
-
-       $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
-
-       if($info['type_id']== AT_PA_TYPE_COURSE_ALBUM){
-               Header('Location: course_albums.php');
-               exit;
-       }else{
-               Header('Location: index.php');
-               exit;
-       }
-
-}
-
-require(AT_INCLUDE_PATH.'header.inc.php');
-
-$hidden_vars['id'] = $id;
-$msg->addConfirm(array('PA_DELETE_ALBUM', htmlentities_utf82($info['name'])), $hidden_vars);
-$msg->printConfirm();
-
-require(AT_INCLUDE_PATH.'footer.inc.php');
-?>