[Scummvm-cvs-logs] scummvm-web master -> a771098a36510a4b33060beef5773322b41a5ab3

sev- sev at scummvm.org
Fri Jun 10 14:54:48 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
a771098a36 WEB: Adding Cloud redirects WIP.


Commit: a771098a36510a4b33060beef5773322b41a5ab3
    https://github.com/scummvm/scummvm-web/commit/a771098a36510a4b33060beef5773322b41a5ab3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-06-10T14:53:57+02:00

Commit Message:
WEB: Adding Cloud redirects WIP.

Current key are personal, and work only for Tkachov.

Once we put it into production, the keys will be replaced with ones
generated by sev.

Changed paths:
  A c/index.php
    .htaccess



diff --git a/.htaccess b/.htaccess
index 591d836..41a110c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -11,6 +11,19 @@ RewriteRule     .*                                                           -
 
 RewriteRule		^old/.*														-	[L]
 
+# Cloud service provider redirects
+# Dropbox
+RewriteRule		^c/db$			https://www.dropbox.com/1/oauth2/authorize?response_type=code&redirect_uri=https%3A%2F%2Fwww.scummvm.org%2Fc%2Fcode&client_id=dlm3nadaa4t3nsk
+RewriteRule		^c/dbs$			https://www.dropbox.com/1/oauth2/authorize?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F&client_id=dlm3nadaa4t3nsk
+
+# OneDrive
+RewriteRule		^c/od$			https://login.live.com/oauth20_authorize.srf?response_type=code&redirect_uri=https%3A%2F%2Fwww.scummvm.org%2Fc%2Fcode&client_id=c9582384-aa02-4054-bc40-56692270cb02&scope=onedrive.appfolder%20offline_access
+RewriteRule		^c/ods$			https://login.live.com/oauth20_authorize.srf?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F&client_id=c9582384-aa02-4054-bc40-56692270cb02&scope=onedrive.appfolder%20offline_access
+
+# Google Drive
+RewriteRule		^c/gd$			https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Fwww.scummvm.org%2Fc%2Fcode&client_id=372269489234-cc487pr03275ua50b6sr7tulq3d6dfbi.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive
+RewriteRule		^c/gds$			https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A12345&client_id=372269489234-cc487pr03275ua50b6sr7tulq3d6dfbi.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive
+
 ##
 # We moved screenshots, fixing the links
 ##
diff --git a/c/index.php b/c/index.php
new file mode 100644
index 0000000..1a35df2
--- /dev/null
+++ b/c/index.php
@@ -0,0 +1,10 @@
+<!doctype html>
+<html>
+	<head>
+		<title>ScummVM</title>
+		<meta charset="utf-8"/>
+	</head>
+	<body>
+		<?php echo "<h1>".htmlentities($_GET["code"], ENT_QUOTES | ENT_HTML5)."</h1>"; ?>
+	</body>
+</html>






More information about the Scummvm-git-logs mailing list