removed mods directory from the ATutor codebase
[atutor.git] / mods / photos / edit_comment.php
diff --git a/mods/photos/edit_comment.php b/mods/photos/edit_comment.php
deleted file mode 100644 (file)
index 08ec406..0000000
+++ /dev/null
@@ -1,46 +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_PA_INCLUDE.'classes/PhotoAlbum.class.php');
-
-//check what comment this is for. Album or Photo.
-$pid = intval($_POST['pid']);
-$aid = intval($_POST['aid']);
-$cid = $_POST['cid'];
-$comment = $_POST['comment'];
-
-if (isset($_POST['pid']) && $pid>0){
-       $isPhoto = true;
-} else {
-       $isPhoto = false;
-}
-$cid = intval(str_replace('cid_', '', $cid));
-
-$pa = new PhotoAlbum($aid);
-//validates
-if ($pa->checkAlbumPriv($_SESSION['member_id']) || $pa->checkCommentPriv($cid, $_SESSION['member_id'], $isPhoto)){
-       $result = $pa->editComment($cid, $comment, $isPhoto);
-}
-
-if ($result===true){
-       //TODO: AJAX
-       header('HTTP/1.0 200 OK');
-} else {
-       header('HTTP/1.0 404 Not Found');
-}
-exit;
-?>
\ No newline at end of file