1: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2:
3: class Google extends CI_Controller {
4: 5: 6:
7: public function __construct() {
8: parent::__construct();
9: }
10:
11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
21: public function api_auth() {
22: session_start();
23:
24: if (isset($_SESSION['sync_appointment_id'])) {
25: header('Location: ' . $this->config->base_url() . 'appointments/google_sync/'
26: . $_SESSION['sync_appointment_id'] . '?code=' . $_GET['code']);
27: } else {
28: echo 'An error occured during the Google Calendar API authorization process.';
29: }
30: }
31: }
32:
33:
34: