removed mods directory from the ATutor codebase
[atutor.git] / mods / elluminate / elluminate.php
diff --git a/mods/elluminate/elluminate.php b/mods/elluminate/elluminate.php
deleted file mode 100644 (file)
index 15c9fa0..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php\r
-/*\r
-This is the ATutor Elluminate module page. It allows an admin user\r
-to set or edit  the URL for the Elluminate installation for ATutor, and define an optional guest password.\r
-\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_ELLUMINATE);\r
-\r
-if (isset($_POST['submit'])) {\r
-       $_POST['uri'] = trim($_POST['uri']);\r
-\r
-       if (!$_POST['uri']){\r
-               $msg->addError('ELLUMINATEURL_ADD_EMPTY');\r
-       }\r
-                       \r
-       if (!$msg->containsErrors()) {\r
-               $_POST['uri'] = $addslashes($_POST['uri']);\r
-               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('elluminate', '$_POST[uri]')";\r
-               mysql_query($sql, $db);\r
-               $_POST['pw'] = $addslashes($_POST['pw']);\r
-               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('elluminate_pw', '$_POST[pw]')";\r
-               mysql_query($sql, $db);\r
-               $msg->addFeedback('ELLUMINATEURL_ADD_SAVED');\r
-\r
-               header('Location: '.$_SERVER['PHP_SELF']);\r
-               exit;\r
-       }\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-?>\r
-\r
-<?php if ($_config['elluminate']): ?>\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('elluminate_text'); ?></p>\r
-               </div>\r
-               <div class="row buttons">\r
-                       <form action="<?php echo $_config['elluminate']; ?>" method="get">\r
-                               <input type="submit" value="<?php echo _AT('elluminate_open'); ?>" onclick="window.open('<?php echo $_config['elluminate']; ?>','mywindow','width=800,height=600,scrollbars=yes, resizable=yes', 'false');true;" />\r
-                               <input type="hidden" name="username" value="admin">\r
-                               <input type="hidden" name="password" value="<?php echo $_config['elluminate_pw']; ?>">\r
-                       </form>\r
-               </div>\r
-       </div>\r
-<?php else: ?>\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('elluminate_missing_url');  ?></p>\r
-               </div>\r
-       </div>\r
-<?php endif; ?>\r
-\r
-<form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post">\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <p><label for="uri"><?php echo _AT('elluminate_location'); ?></label></p>\r
-       \r
-                       <input type="text" name="uri" value="<?php echo $_config['elluminate']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
-               </div>\r
-               <div class="row">\r
-                       <p><label for="pw"><?php echo _AT('elluminate_pw'); ?></label></p>\r
-       \r
-                       <input type="text" name="pw" value="<?php echo $_config['elluminate_pw']; ?>" id="pw" size="20" style="min-width: 55%;" />\r
-               </div>\r
-               <div class="row buttons">\r
-                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>"  />\r
-               </div>\r
-       </div>\r
-</form>\r
-\r
-<?php  require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file