mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-02 14:24:10 +01:00
Undo uneeded changes
This commit is contained in:
parent
61979f8ef0
commit
5159a5b8f6
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2013 Lukas Reschke <lukas@statuscode.ch>
|
||||
* 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");
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2013 Lukas Reschke <lukas@statuscode.ch>
|
||||
* 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");
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
<div id='notification'></div>
|
||||
<script type="text/javascript" src="<?php echo OC_Helper::linkTo('contacts/js', 'js-index.php');?>?id=<?php echo $_['id']; ?>"></script>
|
||||
<div id="leftcontent">
|
||||
<div class="hidden" id="statusbar"></div>
|
||||
<div id="contacts">
|
||||
|
Loading…
Reference in New Issue
Block a user