www
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -218,7 +218,7 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -218,7 +218,7 @@ public function isGoogleFolderCreated($cust_id) |
| 218 | if (isset($_GET['code'])) { | 218 | if (isset($_GET['code'])) { |
| 219 | $client->authenticate($_GET['code']); | 219 | $client->authenticate($_GET['code']); |
| 220 | $_SESSION['token'] = $client->getAccessToken(); | 220 | $_SESSION['token'] = $client->getAccessToken(); |
| 221 | $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; | 221 | $redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; |
| 222 | header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); | 222 | header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL)); |
| 223 | return; | 223 | return; |
| 224 | } | 224 | } |
| ... | @@ -252,7 +252,8 @@ public function isGoogleFolderCreated($cust_id) | ... | @@ -252,7 +252,8 @@ public function isGoogleFolderCreated($cust_id) |
| 252 | echo "<a class='logout' href='?logout'>Logout</a>"; | 252 | echo "<a class='logout' href='?logout'>Logout</a>"; |
| 253 | } else { | 253 | } else { |
| 254 | $authUrl = $client->createAuthUrl(); | 254 | $authUrl = $client->createAuthUrl(); |
| 255 | print "<a class='login' href='$authUrl'>Connect Me!</a>"; | 255 | echo "<a class='login' href='$authUrl'>Connect Me!</a>"; |
| 256 | echo "<a class='logout' href='?logout'>Logout</a>"; | ||
| 256 | } | 257 | } |
| 257 | 258 | ||
| 258 | } | 259 | } | ... | ... |
-
Please register or sign in to post a comment