Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
banners-with-skip
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
91857ebc
authored
2017-01-13 10:36:57 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ee
1 parent
dfd498b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
signin.php
signinView.php
signin.php
View file @
91857eb
...
...
@@ -19,7 +19,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
session_start
();
/*
* Note (Gerwin Sturm):
* Include path is still necessary despite autoloading because of the require_once in the libary
...
...
@@ -137,7 +137,7 @@ $app->get('/activities', function () use ($app, $client, $plus) {
$client
->
setAccessToken
(
$token
);
$activities
=
$plus
->
activities
->
listActivities
(
'me'
,
'public'
,
array
());
$_SESSION
[
'token'
]
=
$token
;
/*
* Note (Gerwin Sturm):
* $app->json($activities) ignores the $activities->items not returning this array
...
...
signinView.php
View file @
91857eb
...
...
@@ -45,10 +45,10 @@ var STATE = "f4325120986c13bf5f55fbb8feab9105";
</div>
<div
id=
"authOps"
style=
"display:none"
>
<?php
include
(
'includes/loggedin.php'
);
?>
if
(
isset
(
$_SESSION
[
'token'
])){
include
(
'includes/loggedin.php'
);
}
?>
</div>
<script
type=
"text/javascript"
>
...
...
@@ -289,7 +289,7 @@ function signInClick() {
$
(
'#visiblePeople'
).
empty
();
$
(
'#authResult'
).
empty
();
$
(
'#gConnect'
).
show
();
$
(
'authOps'
).
hide
();
$
(
'authOps'
).
empty
();
},
error
:
function
(
e
)
{
console
.
log
(
e
);
...
...
Please
register
or
sign in
to post a comment