removed mods directory from the ATutor codebase
[atutor.git] / mods / merlot / index_admin.php
diff --git a/mods/merlot/index_admin.php b/mods/merlot/index_admin.php
deleted file mode 100644 (file)
index fbab1fb..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php\r
-/****************************************************************/\r
-/* ATutor                                                                                                              */\r
-/****************************************************************/\r
-/* Copyright (c) 2002-2006 by Greg Gay & Joel Kronenberg        */\r
-/* Adaptive Technology Resource Centre / University of Toronto  */\r
-/* http://atutor.ca                                                                                            */\r
-/*                                                              */\r
-/* This program is free software. You can redistribute it and/or*/\r
-/* modify it under the terms of the GNU General Public License  */\r
-/* as published by the Free Software Foundation.                               */\r
-/****************************************************************/\r
-// $Id: merlot.php 6614 2006-09-27 19:32:29Z greg $\r
-\r
-\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_MERLOT);\r
-\r
-\r
-if($_POST['submit']){\r
-       $_POST['merlot_location'] = trim($_POST['merlot_location']);\r
-       $_POST['merlot_key'] = trim($_POST['merlot_key']);\r
-\r
-       if (!$_POST['merlot_location']){\r
-               $msg->addError('MERLOTURL_ADD_EMPTY');\r
-       }\r
-\r
-       if (!$_POST['merlot_key']){\r
-               $msg->addError('MERLOTKEY_ADD_EMPTY');\r
-       }               \r
-\r
-       if (!$msg->containsErrors()) {\r
-               $_POST['merlot_location'] = $addslashes($_POST['merlot_location']);\r
-               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('merlot_location', '$_POST[merlot_location]')";\r
-               mysql_query($sql, $db);\r
-\r
-               $_POST['merlot_key'] = $addslashes($_POST['merlot_key']);\r
-               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('merlot_key', '$_POST[merlot_key]')";\r
-               mysql_query($sql, $db);\r
-               \r
-               $msg->addFeedback('MERLOT_CONFIG_SAVED');\r
-       \r
-               header('Location: '.$_SERVER['PHP_SELF']);\r
-               exit;\r
-       }\r
-}\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-    <div class="input-form">\r
-        <div class="row">\r
-            <p><?php echo _AT('merlot_config');  ?></p>\r
-        </div>\r
-    </div>\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('merlot_location'); ?></label></p>\r
-               <input type="text" name="merlot_location" value="<?php echo $_config['merlot_location']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
-            \r
-               <p><label for="key"><?php echo _AT('merlot_key'); ?></label></p>\r
-                <input type="text" name="merlot_key" value="<?php echo $_config['merlot_key']; ?>" id="key" size="80" style="min-width: 95%;" />\r
-        </div>\r
-\r
-        <div class="row buttons">\r
-            <input type="submit" name="submit" value="<?php echo _AT('merlot_save'); ?>"  />\r
-        </div>\r
-    </div>\r
-</form> \r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file