diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-22 17:59:33 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-22 17:59:33 +0100 |
commit | f919230f63aade2df7b12a9c9ab28c7cd59868d4 (patch) | |
tree | da0740dac6645be54a8a4a8294418514b8f8b6d3 /apps/files_trashbin/js | |
parent | 039bc9159793a0275e5f409f3040043190d59ec9 (diff) | |
download | nextcloud-server-f919230f63aade2df7b12a9c9ab28c7cd59868d4.tar.gz nextcloud-server-f919230f63aade2df7b12a9c9ab28c7cd59868d4.zip |
remove inline JavaScript
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r-- | apps/files_trashbin/js/part.list.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/files_trashbin/js/part.list.php b/apps/files_trashbin/js/part.list.php new file mode 100644 index 00000000000..c4ecd1ca959 --- /dev/null +++ b/apps/files_trashbin/js/part.list.php @@ -0,0 +1,19 @@ +<?php
+/**
+ * Copyright (c) 2013 Bjoern Schiessle <schiessle@owncloud.com>
+* 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");
+
+echo "
+var disableDownloadActions = true;
+var disableSharing = true;
+";
|