summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/contact/move.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/ajax/contact/move.php')
-rw-r--r--apps/contacts/ajax/contact/move.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/apps/contacts/ajax/contact/move.php b/apps/contacts/ajax/contact/move.php
deleted file mode 100644
index 053343c47ed..00000000000
--- a/apps/contacts/ajax/contact/move.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-/**
-* @author Victor Dubiniuk
-* Copyright (c) 2012 Victor Dubiniuk <victor.dubiniuk@gmail.com>
-* Copyright (c) 2012 Thomas Tanghus <thomas@tanghus.net>
-* This file is licensed under the Affero General Public License version 3 or
-* later.
-* See the COPYING-README file.
-*/
-
-OCP\JSON::checkLoggedIn();
-OCP\JSON::checkAppEnabled('contacts');
-OCP\JSON::callCheck();
-
-$id = intval($_POST['id']);
-$aid = intval($_POST['aid']);
-$isaddressbook = isset($_POST['isaddressbook']) ? true: false;
-
-// Ownership checking
-OC_Contacts_App::getAddressbook($aid);
-try {
- OC_Contacts_VCard::moveToAddressBook($aid, $id, $isaddressbook);
-} catch (Exception $e) {
- $msg = $e->getMessage();
- OCP\Util::writeLog('contacts', 'Error moving contacts "'.implode(',', $id).'" to addressbook "'.$aid.'"'.$msg, OCP\Util::ERROR);
- OC_JSON::error(array('data' => array('message' => $msg,)));
-}
-
-OC_JSON::success(array('data' => array('ids' => $id,))); \ No newline at end of file