diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-15 04:15:57 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-15 04:17:30 +0200 |
commit | eba4f080159f0a97f82c79f8b57b6ce45ef127b5 (patch) | |
tree | 0165b3ac9e77d4ddf36fff25521c1657c742bcd3 /apps/contacts/ajax/importaddressbook.php | |
parent | 87912a8c6595e90b3248bc84dce6e0693253b81d (diff) | |
download | nextcloud-server-eba4f080159f0a97f82c79f8b57b6ce45ef127b5.tar.gz nextcloud-server-eba4f080159f0a97f82c79f8b57b6ce45ef127b5.zip |
Refactored contacts import.
Diffstat (limited to 'apps/contacts/ajax/importaddressbook.php')
-rw-r--r-- | apps/contacts/ajax/importaddressbook.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/apps/contacts/ajax/importaddressbook.php b/apps/contacts/ajax/importaddressbook.php deleted file mode 100644 index 6b5b06681ce..00000000000 --- a/apps/contacts/ajax/importaddressbook.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * Copyright (c) 2012 Georg Ehrke <ownclouddev at georgswebsite dot de> - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -OCP\JSON::checkLoggedIn(); -OCP\App::checkAppEnabled('contacts'); -$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize')); -$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size')); -$maxUploadFilesize = min($upload_max_filesize, $post_max_size); - -$freeSpace=OC_Filesystem::free_space('/'); -$freeSpace=max($freeSpace,0); -$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace); - -$tmpl = new OCP\Template('contacts', 'part.importaddressbook'); -$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); -$tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']); -$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); -$tmpl->printpage(); |