From 4e6b4b265b5ef29739175189c5c49dffea9457d8 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 7 Aug 2012 19:31:19 +0200 Subject: [PATCH] remoteStorage: split auth allow template --- apps/remoteStorage/auth.php | 60 ++++----------------------- apps/remoteStorage/templates/auth.php | 28 +++++++++++++ 2 files changed, 37 insertions(+), 51 deletions(-) create mode 100644 apps/remoteStorage/templates/auth.php diff --git a/apps/remoteStorage/auth.php b/apps/remoteStorage/auth.php index 99e2272d3a..ad6382eac7 100644 --- a/apps/remoteStorage/auth.php +++ b/apps/remoteStorage/auth.php @@ -60,57 +60,15 @@ if($userId && $appUrl && $categories) { header('Location: '.$_GET['redirect_uri'].'#access_token='.$existingToken.'&token_type=bearer'); } else { //params ok, logged in ok, but need to click Allow still: -?> - - - - ownCloud - - - - - - -
-
- -
-
-
-

remoteStorage

-

- requests read & write access to your - '.$categories[0].''; - if(count($categories)==2) { - echo ' and '.$categories[1].''; - } else if(count($categories)>2) { - for($i=1; $i'.$categories[$i].''; - } - echo ', and '.$categories[$i].''; - } - } - ?>. -

-
- - -
-
-
-
- - - - $host, + 'categories' => $categories, + )); + }//end 'need to click Allow still' } else {//login not ok if($currUser) { die('You are logged in as '.$currUser.' instead of '.htmlentities($userId)); diff --git a/apps/remoteStorage/templates/auth.php b/apps/remoteStorage/templates/auth.php new file mode 100644 index 0000000000..6a7054eabb --- /dev/null +++ b/apps/remoteStorage/templates/auth.php @@ -0,0 +1,28 @@ +
+
+

remoteStorage

+

+ requests read & write access to your + '.$categories[0].''; + if(count($categories)==2) { + echo ' and '.$categories[1].''; + } else if(count($categories)>2) { + for($i=1; $i'.$categories[$i].''; + } + echo ', and '.$categories[$i].''; + } + } + ?>. +

+
+ + +
+
+