Blame view

sources/apps/ownpad_lite/ajax/search.php 436 Bytes
42e4f8d60   Kload   add all apps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?php
  
  /**
   * ownCloud - ownpad_lite plugin
   *
   * @author Victor Dubiniuk
   * @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
   *
   * This file is licensed under the Affero General Public License version 3 or
   * later.
   */
  
  namespace OCA\ownpad_lite;
  
  \OCP\JSON::checkLoggedIn();
  \OCP\JSON::callCheck();
  
  $search = UrlParam::post(UrlParam::SHARE_SEARCH);
  \OCP\JSON::success(array(
  	'data' => Contacts::search($search)
  ));
  exit();