changed git call from https to git readonly
[atutor.git] / mods / google_calendar / index_admin.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 \r
11 <div id="google_calendar" style="margin-left:2em;">\r
12         <?php\r
13         if($calendar_html != ''){\r
14         ?>\r
15                 <iframe src="<?php echo $calendar_html; ?>" style="border: 0" width="95%" height="480" frameborder="0" scrolling="no"></iframe> \r
16         \r
17         <?php }else{ ?>\r
18         \r
19                 <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
20         \r
21         <?php }\r
22         \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'); ?>