From 4c6d11e223580d9652dedf6a1d7de42be896fe1a Mon Sep 17 00:00:00 2001
From: Michiel de Jong <michiel@unhosted.org>
Date: Mon, 14 May 2012 17:05:35 +0200
Subject: [PATCH] move auth.css and remoteStorage-big.png to assets folders
 From where they can be included

---
 .htaccess                                           |   2 +-
 apps/remoteStorage/auth.php                         |   4 ++--
 {apps/remoteStorage => core/css}/auth.css           |   0
 .../img}/remoteStorage-big.png                      | Bin
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename {apps/remoteStorage => core/css}/auth.css (100%)
 rename {apps/remoteStorage => core/img}/remoteStorage-big.png (100%)

diff --git a/.htaccess b/.htaccess
index 085cc665ded..79904f8a9da 100644
--- a/.htaccess
+++ b/.htaccess
@@ -13,7 +13,7 @@ RewriteEngine on
 RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
 RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
 RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
-RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]	
+RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
 RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
 RewriteRule ^remote/(.*) remote.php [QSA,L]
 </IfModule>
diff --git a/apps/remoteStorage/auth.php b/apps/remoteStorage/auth.php
index fcbeda44910..a54be37b2e6 100755
--- a/apps/remoteStorage/auth.php
+++ b/apps/remoteStorage/auth.php
@@ -67,7 +67,7 @@ if($userId && $appUrl && $categories) {
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<link rel="shortcut icon" href="../../../core/img/favicon.png" /><link rel="apple-touch-icon-precomposed" href="../../../core/img/favicon-touch.png" />
 			<link rel="stylesheet" href="../../../core/css/styles.css" type="text/css" media="screen" />
-			<link rel="stylesheet" href="?app=remoteStorage&getfile=auth.css" type="text/css" media="screen" />
+			<link rel="stylesheet" href="../../../core/css/auth.css" type="text/css" media="screen" />
 		</head>
 	<body id="body-login">
 	<div id="login">
@@ -78,7 +78,7 @@ if($userId && $appUrl && $categories) {
 		</header>
 		<section id="main">
 		<div id="oauth">
-			<h2><img src="?app=remoteStorage&getfile=remoteStorage-big.png" alt="remoteStorage" /></h2>
+			<h2><img src="../../../core/img/remoteStorage-big.png" alt="remoteStorage" /></h2>
 			<p><strong><?php $appUrlParts = explode('/', $_GET['redirect_uri']); echo htmlentities($appUrlParts[2]); ?></strong>
 			requests read &amp; write access to your 
 			<?php
diff --git a/apps/remoteStorage/auth.css b/core/css/auth.css
similarity index 100%
rename from apps/remoteStorage/auth.css
rename to core/css/auth.css
diff --git a/apps/remoteStorage/remoteStorage-big.png b/core/img/remoteStorage-big.png
similarity index 100%
rename from apps/remoteStorage/remoteStorage-big.png
rename to core/img/remoteStorage-big.png
-- 
GitLab