removed mods directory from the ATutor codebase
[atutor.git] / mods / wordpress / index_admin.php
diff --git a/mods/wordpress/index_admin.php b/mods/wordpress/index_admin.php
deleted file mode 100644 (file)
index ccb4dea..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-$_custom_css = $_base_path . 'mods/wordpress/module.css'; // use a custom stylesheet\r
-admin_authenticate(AT_ADMIN_PRIV_WORDPRESS);\r
-\r
-$_POST['wp-url'] = $addslashes($_POST['wp-url']);\r
-\r
-if($_POST['submit']){\r
-       foreach($_POST as $key=>$wp_config)\r
-       if($key != "submit"){\r
-       $sql="REPLACE INTO ".TABLE_PREFIX."config SET name='$key', value='".$wp_config."'";\r
-       if($result= mysql_query($sql, $db)){\r
-               $msg->addFeedback("WP_CONFIG_SAVED");\r
-               $_config['wp-url'] = $_POST['wp-url'];\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="wp-url"><?php echo _AT('wordpress_base_url'); ?></label>\r
-<input type="text" name="wp-url" id="wp-url" value="<?php if($_config['wp-url']){echo $_config['wp-url'];}else{ echo 'http://';} ?>" size="60" /><br />\r
-\r
-<input type="submit" name="submit" value="<?php echo _AT('wordpress_save'); ?>">\r
-</form>\r
-\r
-<h3><?php echo _AT('wordpress_admin_login');  ?></h3>\r
-<a href="<?php echo $_config['wp-url']; ?>wp-login.php" target="toolframe"><?php echo _AT('wordpress_login'); ?></a>\r
-<?php\r
-if($_config['wp-url']){?>\r
-       <iframe frameborder="0" border="0" name="toolframe" src="<?php echo $_config['wp-url']; ?>" width="95%" height="450" id="frame_set" onload="if (window.parent &amp;&amp; window.parent.autoIframe) {window.parent.autoIframe('tree');}">\r
-       <p><?php echo _AT('wordpress_no_iframes',$_config['wp-url']); ?> </p>\r
-       </iframe>\r
-<?php }else{ ?>\r
-       <p><?php echo _AT('wordpress_do_setup'); ?></p>\r
-\r
-<?php } ?>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file