removed mods directory from the ATutor codebase
[atutor.git] / mods / calendar / index.php
diff --git a/mods/calendar/index.php b/mods/calendar/index.php
deleted file mode 100644 (file)
index dcf520d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php\r
-/*\r
-This is the main ATutor webcalendar module page. It allows users to access\r
-the course and personal calendars through courses that have the calendar enabled\r
-*/\r
-global $webcalendar_url_db;\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-//\r
-//$_custom_css = $_base_path . 'mods/calendar/module.css';\r
-\r
-//////////\r
-//Check to see if the url to webcalendar exists in the db \r
-$sql = 'SELECT * from '.TABLE_PREFIX.'config WHERE name="webcalendar"';\r
-$result = mysql_query($sql, $db);\r
-\r
-while($row = mysql_fetch_array($result)){\r
-       $webcalendar_url_db = $row[1];\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-$sql="SELECT password  FROM ".TABLE_PREFIX."members WHERE login='$_SESSION[login]'";\r
-$result = mysql_query($sql, $db);\r
-while($row = mysql_fetch_array($result)){\r
-       $pw =  $row[0];\r
-}\r
-?>\r
-<p><a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $webcalendar_url_db; ?>index.php','calendarwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo  _AT('calendar_own_window'); ?></a></p>\r
-\r
-<?php\r
-if($webcalendar_url_db == ''){\r
-       $msg->addInfo('WEBCALENDAR_URL_ADD_REQUIRED');\r
-}else{\r
-?>\r
-       <iframe name="calendar" id="calendar" title="WebCalendar" scrolling="yes" src="<?php echo $webcalendar_url_db; ?>index.php" height="800" width="90%" align="center" style="border:thin white solid; align:center;"></iframe>\r
-<?php \r
-}\r
-\r
- require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file