removed mods directory from the ATutor codebase
[atutor.git] / mods / twitter / index.php
diff --git a/mods/twitter/index.php b/mods/twitter/index.php
deleted file mode 100755 (executable)
index d8029d1..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');
-require(AT_INCLUDE_PATH.'header.inc.php');
-require('Twitter.php');
-?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<div class="input-form">
-<?php echo _AT('twitter_intro'); ?>\r
-       <div class="row">\r
-               <input type="text" name="term" id="term" value="<?php echo htmlspecialchars(stripslashes($_POST['term'])); ?>" size="50" />\r
-       </div>\r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('search'); ?>" accesskey="s" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" /> \r
-       </div>\r
-</div>\r
-</form> 
-
-<?php
-if (isset($_POST['submit'])) {
-
-       if ($_POST['term'] == '') {
-               $msg->addError(array('TWITTER_ERROR', 'AT_TWITTER_ERROR'));
-       }
-
-       if (!$msg->containsErrors()) {                          
-               $twitter = new Twitter();
-               $tweets = $twitter->search($_POST['term']);
-               echo "<ul>";
-               foreach($tweets['results'] as $tweet){
-                       echo "<li><a href='http://www.twitter.com/".$tweet['from_user']."'>@".$tweet['from_user']."</a> : ". $tweet['text']."</li>";
-               }
-               echo "</ul>";   
-       }
-}
-?>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>