ee
Showing
2 changed files
with
7 additions
and
7 deletions
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | * See the License for the specific language governing permissions and | 19 | * See the License for the specific language governing permissions and |
| 20 | * limitations under the License. | 20 | * limitations under the License. |
| 21 | */ | 21 | */ |
| 22 | 22 | session_start(); | |
| 23 | /* | 23 | /* |
| 24 | * Note (Gerwin Sturm): | 24 | * Note (Gerwin Sturm): |
| 25 | * Include path is still necessary despite autoloading because of the require_once in the libary | 25 | * 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) { | ... | @@ -137,7 +137,7 @@ $app->get('/activities', function () use ($app, $client, $plus) { |
| 137 | 137 | ||
| 138 | $client->setAccessToken($token); | 138 | $client->setAccessToken($token); |
| 139 | $activities = $plus->activities->listActivities('me', 'public', array()); | 139 | $activities = $plus->activities->listActivities('me', 'public', array()); |
| 140 | 140 | $_SESSION['token'] = $token; | |
| 141 | /* | 141 | /* |
| 142 | * Note (Gerwin Sturm): | 142 | * Note (Gerwin Sturm): |
| 143 | * $app->json($activities) ignores the $activities->items not returning this array | 143 | * $app->json($activities) ignores the $activities->items not returning this array | ... | ... |
| ... | @@ -45,10 +45,10 @@ var STATE = "f4325120986c13bf5f55fbb8feab9105"; | ... | @@ -45,10 +45,10 @@ var STATE = "f4325120986c13bf5f55fbb8feab9105"; |
| 45 | </div> | 45 | </div> |
| 46 | <div id="authOps" style="display:none"> | 46 | <div id="authOps" style="display:none"> |
| 47 | <?php | 47 | <?php |
| 48 | 48 | if(isset($_SESSION['token'])){ | |
| 49 | include('includes/loggedin.php'); ?> | 49 | include('includes/loggedin.php'); |
| 50 | 50 | } | |
| 51 | 51 | ?> | |
| 52 | </div> | 52 | </div> |
| 53 | 53 | ||
| 54 | <script type="text/javascript"> | 54 | <script type="text/javascript"> |
| ... | @@ -289,7 +289,7 @@ function signInClick() { | ... | @@ -289,7 +289,7 @@ function signInClick() { |
| 289 | $('#visiblePeople').empty(); | 289 | $('#visiblePeople').empty(); |
| 290 | $('#authResult').empty(); | 290 | $('#authResult').empty(); |
| 291 | $('#gConnect').show(); | 291 | $('#gConnect').show(); |
| 292 | $('authOps').hide(); | 292 | $('authOps').empty(); |
| 293 | }, | 293 | }, |
| 294 | error: function(e) { | 294 | error: function(e) { |
| 295 | console.log(e); | 295 | console.log(e); | ... | ... |
-
Please register or sign in to post a comment