removed mods directory from the ATutor codebase
[atutor.git] / mods / plog / side_menu.inc.php
diff --git a/mods/plog/side_menu.inc.php b/mods/plog/side_menu.inc.php
deleted file mode 100644 (file)
index e17716d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php\r
-/*\r
-This is a simple ATutor sidemenu block for LifeType/pLog blog application. I gathers\r
-the lastest10 posts form the course currently being viewed, as well as private posts, and posts\r
-form other enrolled courses specific to the current users.\r
-*/\r
-\r
-\r
-global $savant, $_config, $_base_href;\r
-ob_start(); \r
-//Get the list of entries associated with the current user\r
-\r
-$sql = "SELECT id, user_id,blog_id FROM ".PLOG_PREFIX."articles WHERE user_id = '$_SESSION[member_id]' OR blog_id='$_SESSION[course_id]' ORDER BY date DESC LIMIT 10";\r
-$result = mysql_query($sql,$db);\r
-\r
-if(mysql_num_rows($result) > 0){\r
-       echo '<ul style="margin-left:-2em;">';\r
-       while($row = mysql_fetch_array($result)){\r
-               $sql2 = "SELECT * FROM ".PLOG_PREFIX."articles_text WHERE article_id = '$row[0]'";\r
-               $result2 = mysql_query($sql2,$db);\r
-               while($row2 = mysql_fetch_array($result2)){\r
-                       echo '<li><a href="'.$_base_href.'mods/plog/index.php?blogId='.$row[2]. SEP.'op=ViewArticle'.SEP.'article_Id='.$row[0].'">'.$row2[3].'</a></li>';\r
-               }\r
-       }\r
-echo '</ul>';\r
- }else{\r
-       echo '<em>'._AT('none_found').'</em>';\r
- }\r
-?>\r
-\r
-<?php\r
-$savant->assign('dropdown_contents', ob_get_contents());\r
-ob_end_clean();\r
-\r
-$savant->assign('title', _AT('plog_current'));\r
-$savant->display('include/box.tmpl.php');\r
-\r
-?>
\ No newline at end of file