91857ebc by Jeff Balicki

ee

1 parent dfd498b2
......@@ -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
......
......@@ -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);
......