Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0d43b657
authored
2016-10-04 20:01:00 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
www
1 parent
7df83efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
0d43b65
...
...
@@ -218,7 +218,7 @@ public function isGoogleFolderCreated($cust_id)
if
(
isset
(
$_GET
[
'code'
]))
{
$client
->
authenticate
(
$_GET
[
'code'
]);
$_SESSION
[
'token'
]
=
$client
->
getAccessToken
();
$redirect
=
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'PHP_SELF'
];
$redirect
=
'http
s
://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'PHP_SELF'
];
header
(
'Location: '
.
filter_var
(
$redirect
,
FILTER_SANITIZE_URL
));
return
;
}
...
...
@@ -252,7 +252,8 @@ public function isGoogleFolderCreated($cust_id)
echo
"<a class='logout' href='?logout'>Logout</a>"
;
}
else
{
$authUrl
=
$client
->
createAuthUrl
();
print
"<a class='login' href='
$authUrl
'>Connect Me!</a>"
;
echo
"<a class='login' href='
$authUrl
'>Connect Me!</a>"
;
echo
"<a class='logout' href='?logout'>Logout</a>"
;
}
}
...
...
Please
register
or
sign in
to post a comment