removed mods directory from the ATutor codebase
[atutor.git] / mods / mediawiki / index_admin.php
diff --git a/mods/mediawiki/index_admin.php b/mods/mediawiki/index_admin.php
deleted file mode 100644 (file)
index b2d5786..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-$_custom_css = $_base_path . 'mods/mediawiki/module.css'; // use a custom stylesheet\r
-admin_authenticate(AT_ADMIN_PRIV_MEDIAWIKI);\r
-\r
-$_POST['mw-url'] = $addslashes($_POST['mw-url']);\r
-\r
-if($_POST['submit']){\r
-       foreach($_POST as $key=>$mw_config)\r
-       if($key != "submit"){\r
-       $sql="REPLACE INTO ".TABLE_PREFIX."config SET name='$key', value='".$mw_config."'";\r
-       if($result= mysql_query($sql, $db)){\r
-               $msg->addFeedback("MW_CONFIG_SAVED");\r
-               $_config['mw-url'] = $_POST['mw-url'];\r
-\r
-       }else{\r
-               $msg->addError("WP_CONFIG_FAIL");\r
-       }\r
-\r
-       }\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-?>\r
-\r
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">\r
-<label for="mw-url"><?php echo _AT('mediawiki_login_url'); ?></label>\r
-<input type="text" name="mw-url" id="mw-url" value="<?php if($_config['mw-url']){echo $_config['mw-url'];}else{ echo 'http://';} ?>" size="60" /><br />\r
-\r
-<input type="submit" name="submit" value="<?php echo _AT('mediawiki_save'); ?>">\r
-</form>\r
-\r
-\r
-<?php\r
-if($_config['mw-url']){?>\r
-       <br /><br /><a href="<?php echo $_config['mw-url']; ?>index.php?title=Special:UserLogin&returnto=Special:UserLogin" target="toolframe"><?php echo _AT('mediawiki_login'); ?></a>\r
-       <iframe name="toolframe" src="<?php echo $_config['mw-url']; ?>" width="95%" height="450" id="frame_set">\r
-       <p><?php echo _AT('mediawiki_no_iframes',$_config['mw-url']); ?> ?></p>\r
-       </iframe>\r
-<?php }else{ ?>\r
-       <p><?php echo _AT('mediawiki_do_setup'); ?> ?></p>\r
-\r
-<?php } ?>\r
-\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file