removed mods directory from the ATutor codebase
[atutor.git] / mods / calendar / index_admin.php
diff --git a/mods/calendar/index_admin.php b/mods/calendar/index_admin.php
deleted file mode 100644 (file)
index dadfe20..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php\r
-/*\r
-This is the ATutor webcalendar module page. It allows an admin user\r
-to set or edit  the URL for the webcalendar installation for ATutor and\r
-synchronize the ATutor and WebCalendar databases\r
-\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\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
-while($row = mysql_fetch_array($result)){\r
-       $webcalendar_url_db = $row[1];\r
-}\r
-if($webcalendar_url_db == ''){\r
-\r
-       $msg->addInfo('WEBCALENDAR_URL_ADD_REQUIRED');\r
-       require (AT_INCLUDE_PATH.'header.inc.php');\r
-       require (AT_INCLUDE_PATH.'footer.inc.php');\r
-\r
-}else{\r
-\r
-       require (AT_INCLUDE_PATH.'header.inc.php');\r
-       $sql="SELECT *  FROM ".TABLE_PREFIX."admins WHERE login='$_SESSION[login]'";\r
-       $result = mysql_query($sql, $db);\r
-       \r
-       while($row = mysql_fetch_array($result)){\r
-               $pw =  $row[1];\r
-       }\r
-       \r
-       ?>\r
-       <iframe name="calendar" id="calendar" title="WebCalendar" scrolling="yes" src="<?php echo $webcalendar_url_db; ?>week.php" height="800" width="100%" align="center" style="border:thin white solid; align:center;"></iframe>\r
-       <?php \r
-       \r
-       \r
-       require (AT_INCLUDE_PATH.'footer.inc.php'); \r
-\r
-}?>
\ No newline at end of file