removed mods directory from the ATutor codebase
[atutor.git] / mods / userplane / index_admin.php
diff --git a/mods/userplane/index_admin.php b/mods/userplane/index_admin.php
deleted file mode 100644 (file)
index f4920a5..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php\r
-/*\r
-This is the ATutor Userplane module page. It allows an admin user\r
-to set or edit  the Userplane  for ATutor, and\r
-it includes the launcher, which opens Userplane in a new window\r
-\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-$_custom_css = $_base_path . 'mods/userplane/module.css'; // use a custom stylesheet\r
-\r
-if (isset($_POST['submit'])) {\r
-       $_POST['uri'] = trim($_POST['uri']);\r
-\r
-       if (!$_POST['uri']){\r
-               $msg->addError('USERPLANE_ID_ADD_EMPTY');\r
-       }\r
-                       \r
-       if (!$msg->containsErrors()) {\r
-               $_POST['uri'] = $addslashes($_POST['uri']);\r
-               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('userplane', '$_POST[uri]')";\r
-               mysql_query($sql, $db);\r
-               $msg->addFeedback('USERPLANE_ID_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['userplane']): ?>\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('userplane_text'); ?></p>\r
-               </div>\r
-       </div>\r
-<?php else: ?>\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <p><?php echo _AT('userplane_missing_id');  ?></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('userplane_id'); ?></label></p>\r
-       \r
-                       <input type="text" name="uri" value="<?php echo $_config['userplane']; ?>" id="uri" size="60" style="min-width: 65%;" />\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
-<?php\r
-if($_config['userplane'] !=''){ ?>\r
-       <div id="userplane">\r
-       <script language="javascript" type="text/javascript" src="http://www.userplane.com/chatlite/medallion/chatlite.cfm?DomainID=<?php  echo $_config['userplane'];?>"></script><noscript>You must have JavaScript enabled to use <a href="http://www.userplane.com" title="Userplane" target="_blank">Userplane Chat</a></noscript>\r
-       </div>\r
-\r
-<?php }?>\r
-<?php  require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file