summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/addbook.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contacts/ajax/addbook.php')
-rw-r--r--apps/contacts/ajax/addbook.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/contacts/ajax/addbook.php b/apps/contacts/ajax/addbook.php
new file mode 100644
index 00000000000..36acb9af391
--- /dev/null
+++ b/apps/contacts/ajax/addbook.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+require_once('../../../lib/base.php');
+$l10n = new OC_L10N('contacts');
+OC_JSON::checkLoggedIn();
+OC_JSON::checkAppEnabled('contacts');
+$book = array(
+ 'id' => 'new',
+ 'displayname' => '',
+);
+$tmpl = new OC_Template('contacts', 'part.editaddressbook');
+$tmpl->assign('new', true);
+$tmpl->assign('addressbook', $book);
+$tmpl->printPage();
+?>