diff --git a/js/js-contacts.php b/js/js-contacts.php deleted file mode 100644 index d4c25e7b..00000000 --- a/js/js-contacts.php +++ /dev/null @@ -1,33 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -// Set the content type to Javascript -header("Content-type: text/javascript"); - -// Disallow caching -header("Cache-Control: no-cache, must-revalidate"); -header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); - -$is_indexed = (bool)OCP\Config::getUserValue(OCP\User::getUser(), 'contacts', 'contacts_indexed', 'no'); -if ($is_indexed == 1) { - $is_indexed = "true"; -} else { - $is_indexed = "false"; -} - -$array = array( - "is_indexed" => $is_indexed, - "totalurl" => "\"".OCP\Util::linkToRemote('carddav')."addressbooks\"", - "id" => "\"".$_GET['id']."\"", - "lang" => "\"".OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en')."\"", - ); - -// Echo it -foreach ($array as $setting => $value) { - echo("var ". $setting ."=".$value.";\n"); -} \ No newline at end of file diff --git a/js/js-index.php b/js/js-index.php deleted file mode 100644 index 76982fd7..00000000 --- a/js/js-index.php +++ /dev/null @@ -1,26 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -// Set the content type to Javascript -header("Content-type: text/javascript"); - -// Disallow caching -header("Cache-Control: no-cache, must-revalidate"); -header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); - -$array = array( - "totalurl" => "\"".OCP\Util::linkToRemote('carddav')."\"", - "categories" => json_encode(OCA\Contacts\App::getCategories()), - "id" => "\"".$_GET['id']."\"", - "lang" => "\"".OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en')."\"", - ); - -// Echo it -foreach ($array as $setting => $value) { - echo("var ". $setting ."=".$value.";\n"); -} \ No newline at end of file diff --git a/templates/index.php b/templates/index.php index cffefb6d..d107e450 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,5 +1,4 @@
-