1
0
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:
Lukas Reschke 2013-01-25 16:30:14 +01:00
parent 61979f8ef0
commit 5159a5b8f6
3 changed files with 0 additions and 60 deletions

View File

@ -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");
}

View File

@ -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");
}

View File

@ -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">