changed git call from https to git readonly
[atutor.git] / mods / google_calendar / index_mystart.php
1 <?php\r
2 $_user_location = 'users';\r
3 \r
4 define('AT_INCLUDE_PATH', '../../include/');\r
5 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
6 require (AT_INCLUDE_PATH.'header.inc.php');\r
7 require('get_google_user.php');\r
8 \r
9 ?>\r
10 <div>\r
11 <p><a href="<?php echo $_SERVER['PHP_SELF'] ?>#setup"><?php echo _AT('google_setup'); ?></a></p>\r
12 </div>\r
13 \r
14 <div id="google_calendar" style="margin-left:2em;">\r
15 \r
16 <?php\r
17 \r
18 if($calendar_html != ''){\r
19 ?>\r
20 \r
21         <iframe src="<?php echo $calendar_html; ?>" style="border: 0" width="95%" height="480" frameborder="0" scrolling="no"></iframe> \r
22 \r
23 <?php }else{ ?>\r
24 \r
25         <iframe src="http://www.google.com/calendar/embed?src=<?php echo $my_email_address; ?>&ctz=<?php echo $timezone; ?>" style="border: 0" width="95%" height="480" frameborder="0" scrolling="no"></iframe>\r
26 \r
27 <?php }\r
28 \r
29 ?>\r
30 \r
31 </div>\r
32 <a name="setup"></a>\r
33 <h3><?php echo _AT('google_setup'); ?></h3>\r
34 <div class="box">\r
35 <?php echo _AT('google_howto'); ?>\r
36 </div>\r
37 \r
38 <h4><?php echo _AT('google_private_calendar_prefs'); ?></h4>\r
39 <?php \r
40 \r
41 require('google_prefs.php'); \r
42 \r
43 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>