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
fd2a9487
authored
2016-10-04 20:04:07 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ee
1 parent
0a6815de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
fd2a948
...
...
@@ -234,7 +234,11 @@ public function isGoogleFolderCreated($cust_id)
<body>
<header><h1>
Get Token
</h1></header>
<?php
if
(
isset
(
$_GET
[
'code'
]))
{
$authUrl
=
$client
->
createAuthUrl
();
echo
"<a class='login' href='
$authUrl
'>Connect Me!</a>"
;
echo
"<a class='logout' href='?logout'>Logout</a>"
;
$client
->
authenticate
(
$_GET
[
'code'
]);
$_SESSION
[
'token'
]
=
$client
->
getAccessToken
();
$token
=
json_decode
(
$_SESSION
[
'token'
]);
...
...
@@ -245,11 +249,8 @@ public function isGoogleFolderCreated($cust_id)
//echo "ID Token = " . $token->id_token . '<br/>';
echo
"Created = "
.
$token
->
created
.
'<br/>'
;
echo
"<a class='logout' href='?logout'>Logout</a>"
;
}
else
{
$authUrl
=
$client
->
createAuthUrl
();
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