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