removed mods directory from the ATutor codebase
[atutor.git] / mods / photo_album / handler / delete.php
diff --git a/mods/photo_album/handler/delete.php b/mods/photo_album/handler/delete.php
deleted file mode 100644 (file)
index 6b7a01c..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php\r
-/*==============================================================\r
-  Photo Album\r
- ==============================================================\r
-  Copyright (c) 2006 by Dylan Cheon & Kelvin Wong\r
-  Institute for Assistive Technology / University of Victoria\r
-  http://www.canassist.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
- */\r
-// $Id:\r
-\r
-/**\r
- * @desc       This file handles the delete image / comment operations\r
- * @author     Dylan Cheon & Kelvin Wong\r
- * @copyright  2006, Institute for Assistive Technology / University of Victoria \r
- * @link       http://www.canassist.ca/                                    \r
- * @license GNU\r
- */\r
\r
-define('AT_INCLUDE_PATH', '../../../include/');\r
-require_once(AT_INCLUDE_PATH.'vitals.inc.php');\r
-$_custom_css = $_base_path . 'mods/photo_album/module.css'; // use a custom stylesheet\r
-require_once (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-\r
-<?php\r
-       define('PATH', '../');\r
-       require_once (PATH.'define.php');\r
-       require_once (PATH.'include/data_func.php');\r
-       require_once (PATH.'include/general_func.php');\r
-       /* checks whether the user typed 'Yes' button or not \r
-        * If the user clicked 'Yes' to delete the data, delete it\r
-        */\r
-       if (($_POST['confirm']=='Yes') && ($_SESSION['pa']['mode']=='delete')){\r
-               if ($_SESSION['pa']['completed']==true){\r
-                       if ($_SESSION['pa']['choose']==IMAGE){\r
-                               if ($_SESSION['pa']['administrator_mode']==true){\r
-                                       $msg->addFeedback('pa_delete_image_success');\r
-                                       redirect('admin_image_list.php');\r
-                               } else {\r
-                                       $msg->addFeedback('pa_delete_image_success');\r
-                                       redirect('index.php');\r
-                               }\r
-                       } else {\r
-                               redirect('view.php?image_id='.$_SESSION['pa']['image_id']);\r
-                       }\r
-               } else {\r
-               \r
-               if ($_SESSION['pa']['choose']==IMAGE){\r
-                       $delete=delete_image($_SESSION['pa']['image_id'], $_SESSION['pa']['course_id']);\r
-                       if ($delete==true){\r
-                               $_SESSION['pa']['completed']=true;\r
-                               if ($_SESSION['pa']['administrator_mode']==true){\r
-                                       $msg->addFeedback('pa_delete_image_success');\r
-                                       redirect('admin_image_list.php');\r
-                               } else {\r
-                                       $msg->addFeedback('pa_delete_image_success');\r
-                                       redirect('index.php');\r
-                               }\r
-                       } else {\r
-                               $msg->addError('pa_func_delete_image');\r
-                               redirect('index.php');\r
-                       }\r
-               } else if ($_SESSION['pa']['choose']==COMMENT){\r
-                       $delete=delete_blog($_SESSION['pa']['image_id'], $_SESSION['pa']['course_id'], $_SESSION['pa']['comment_id']);\r
-                       if ($delete==true){\r
-                               $_SESSION['pa']['completed']=true;\r
-                               $msg->addFeedback('pa_delete_comment_success');\r
-                               redirect('view.php?image_id='.$_SESSION['pa']['image_id']);\r
-                       } else {\r
-                               $msg->addError('pa_func_delete_blog');\r
-                               redirect('index.php');\r
-                       }\r
-               } else {\r
-                       $msg->addError('pa_var_unauthorized');\r
-                       redirect('index.php');\r
-               }\r
-       }\r
-       } else {\r
-               $msg->addError('pa_var_unauthorized');\r
-               redirect('index.php');\r
-       }\r
-       \r
-\r
-?>\r
-\r
-\r
-<?php require_once(AT_INCLUDE_PATH.'footer.inc.php'); ?>\r