Permalink
Browse files

Initial public release

  • Loading branch information...
0 parents commit 60812eb075d2a3bd20183b145343fb1322a3d769 @sammarshallou sammarshallou committed Sep 9, 2011
Showing with 29,643 additions and 0 deletions.
  1. +3 −0 .sams
  2. BIN DevelopersGuide.doc
  3. +51 −0 README
  4. +70 −0 action.php
  5. +657 −0 advancedsearch.php
  6. +179 −0 alert.php
  7. +100 −0 alert_form.php
  8. +194 −0 atomlib.php
  9. +68 −0 attachments.php
  10. +80 −0 backup/moodle2/backup_forumng_activity_task.class.php
  11. +27 −0 backup/moodle2/backup_forumng_settingslib.php
  12. +167 −0 backup/moodle2/backup_forumng_stepslib.php
  13. +171 −0 backup/moodle2/restore_forumng_activity_task.class.php
  14. +234 −0 backup/moodle2/restore_forumng_stepslib.php
  15. +42 −0 build.xml
  16. +97 −0 convert.php
  17. +297 −0 db/access.php
  18. +195 −0 db/install.xml
  19. +30 −0 db/subplugins.php
  20. +32 −0 db/upgrade.php
  21. +79 −0 deletedraft.php
  22. +122 −0 deletepost.php
  23. +465 −0 dev/makebig.php
  24. +117 −0 discuss.php
  25. +616 −0 editpost.php
  26. +300 −0 editpost_form.php
  27. +57 −0 expandpost.php
  28. +71 −0 feature/copy/copy.php
  29. +40 −0 feature/copy/forumngfeature_copy.php
  30. +47 −0 feature/copy/forumngfeature_copy_form.php
  31. +34 −0 feature/copy/lang/en/forumngfeature_copy.php
  32. +52 −0 feature/copy/paste.php
  33. +25 −0 feature/copy/version.php
  34. +78 −0 feature/delete/delete.php
  35. +41 −0 feature/delete/forumngfeature_delete.php
  36. +28 −0 feature/delete/lang/en/forumngfeature_delete.php
  37. +24 −0 feature/delete/version.php
  38. +115 −0 feature/forumngfeature.php
  39. +103 −0 feature/forumngfeature_discussion.php
  40. +104 −0 feature/forumngfeature_discussion_list.php
  41. +253 −0 feature/forumngfeature_post_selector.php
  42. +40 −0 feature/forward/forumngfeature_forward.php
  43. +135 −0 feature/forward/forward.php
  44. +104 −0 feature/forward/forward_form.php
  45. +34 −0 feature/forward/lang/en/forumngfeature_forward.php
  46. +25 −0 feature/forward/version.php
  47. +40 −0 feature/lock/forumngfeature_lock.php
  48. +29 −0 feature/lock/lang/en/forumngfeature_lock.php
  49. +66 −0 feature/lock/unlock.php
  50. +24 −0 feature/lock/version.php
  51. +43 −0 feature/manualmark/change.php
  52. +62 −0 feature/manualmark/forumngfeature_manualmark.php
  53. +36 −0 feature/manualmark/lang/en/forumngfeature_manualmark.php
  54. +24 −0 feature/manualmark/version.php
  55. +48 −0 feature/markallread/forumngfeature_markallread.php
  56. +24 −0 feature/markallread/lang/en/forumngfeature_markallread.php
  57. +24 −0 feature/markallread/version.php
  58. +47 −0 feature/markdiscussionread/forumngfeature_markdiscussionread.php
  59. +24 −0 feature/markdiscussionread/lang/en/forumngfeature_markdiscussionread.php
  60. +24 −0 feature/markdiscussionread/version.php
  61. +60 −0 feature/merge/forumngfeature_merge.php
  62. +36 −0 feature/merge/lang/en/forumngfeature_merge.php
  63. +108 −0 feature/merge/merge.php
  64. +46 −0 feature/merge/merge_form.php
  65. +24 −0 feature/merge/version.php
  66. +82 −0 feature/move/forumngfeature_move.php
  67. +52 −0 feature/move/group_form.php
  68. +25 −0 feature/move/lang/en/forumngfeature_move.php
  69. +132 −0 feature/move/move.php
  70. +24 −0 feature/move/version.php
  71. +34 −0 feature/options/forumngfeature_options.php
  72. +24 −0 feature/options/version.php
  73. +39 −0 feature/print/forumngfeature_print.php
  74. +27 −0 feature/print/lang/en/forumngfeature_print.php
  75. +77 −0 feature/print/print.php
  76. +24 −0 feature/print/version.php
  77. +34 −0 feature/userposts/db/access.php
  78. +47 −0 feature/userposts/forumngfeature_userposts.php
  79. +32 −0 feature/userposts/lang/en/forumngfeature_userposts.php
  80. +141 −0 feature/userposts/list.php
  81. +109 −0 feature/userposts/user.php
  82. +24 −0 feature/userposts/version.php
  83. +181 −0 feed.php
  84. BIN flag.xcf
  85. +76 −0 flagpost.php
  86. +75 −0 history.php
  87. +219 −0 index.php
  88. +993 −0 internaldoc/testcase.txt
  89. +4 −0 internaldoc/testcase.users.csv
  90. +808 −0 lang/en/forumng.php
  91. +1 −0 lang/en/help/forumng/TODO.txt
  92. +383 −0 lib.php
  93. +85 −0 markread.php
  94. +479 −0 mod_form.php
  95. +5,002 −0 mod_forumng.php
  96. +997 −0 mod_forumng_cron.php
  97. +79 −0 mod_forumng_digest_list.php
  98. +2,200 −0 mod_forumng_discussion.php
  99. +134 −0 mod_forumng_discussion_list.php
  100. +420 −0 mod_forumng_draft.php
  101. +32 −0 mod_forumng_file_exception.php
  102. +375 −0 mod_forumng_mail_list.php
  103. +2,303 −0 mod_forumng_post.php
  104. +501 −0 mod_forumng_utils.php
  105. +2,363 −0 module.js
  106. BIN pix/circle-n-n.png
  107. BIN pix/circle-n-y.png
  108. BIN pix/circle-y-n.png
  109. BIN pix/circle-y-y.png
  110. BIN pix/exclamation_mark.gif
  111. BIN pix/flag.off.png
  112. BIN pix/flag.on.png
  113. BIN pix/icon.gif
  114. BIN pix/sortorder-down.gif
  115. BIN pix/sortorder-up.gif
  116. BIN pix/star-n-n.png
  117. BIN pix/star-n-y.png
  118. BIN pix/star-y-n.png
  119. BIN pix/star-y-y.png
  120. BIN pix/sticky.png
  121. BIN pix/timeout.png
  122. +76 −0 rate.php
  123. +42 −0 rebuildsearchindex.php
  124. +1,443 −0 renderer.php
  125. +89 −0 search.php
  126. +137 −0 settings.php
  127. +91 −0 splitpost.php
  128. +51 −0 splitpost_form.php
  129. +902 −0 styles.css
  130. +411 −0 subscribe.php
  131. +265 −0 subscribers.php
  132. +34 −0 type/clone/forumngtype_clone.php
  133. +24 −0 type/clone/lang/en/forumngtype_clone.php
  134. +24 −0 type/clone/version.php
  135. +209 −0 type/forumngtype.php
  136. +288 −0 type/general/forumngtype_general.php
  137. +24 −0 type/general/lang/en/forumngtype_general.php
  138. +24 −0 type/general/version.php
  139. +60 −0 type/studyadvice/forumngtype_studyadvice.php
  140. +24 −0 type/studyadvice/lang/en/forumngtype_studyadvice.php
  141. +24 −0 type/studyadvice/version.php
  142. +29 −0 version.php
  143. +107 −0 view.php
  144. +36 −0 viewmode.php
3 .sams
@@ -0,0 +1,3 @@
+<Files feed.php>
+DISABLE_SAMS
+</Files>
Binary file not shown.
51 README
@@ -0,0 +1,51 @@
+ForumNG
+=======
+
+Copyright 2011 The Open University
+
+
+This is an alternative forum that you can install into standard Moodle.
+
+It does not replace the standard forum, and operates alongside it.
+You can copy forums from the standard forum into ForumNG format if you like
+(...and if it works; this hasn't been tested lately).
+
+Support:
+
+We cannot offer direct support. Please do not contact me directly. If you
+need assistance, try the forum forum on moodle.org. (Remember to make clear
+that you are using ForumNG and not the standard forum.)
+
+Bug reports:
+
+Please report bugs to the Moodle tracker using the 'contributed code' project
+and 'Module: ForumNG' component. Under Version, please select your Moodle
+version e.g. 2.1, 2.2.
+
+Status:
+
+Beta quality code. We intend to switch this project to include live quality
+code at some point after our mid-October update.
+
+Please note that this code is tested on OU systems but we rely on the
+community for testing on other systems.
+
+Requires:
+
+Moodle 2.1+
+Postgres / MySQL
+
+Install:
+
+Place the contents of this source tree into your Moodle installation so that
+within your Moodle root, this file is mod/forumng/README. Then visit the
+Moodle notifications page to install.
+
+If you want the forums to be searchable, you also need to install the
+local_ousearch plugin. (It is best to do this before using ForumNG much,
+otherwise it takes ages to install as it builds indexes for everything.)
+When you install the ousearch plugin, a search box will automatically appear.
+
+Documentation:
+
+None.
@@ -0,0 +1,70 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+/**
+ * This script handles actions from the single 'action form' form that is used
+ * to handle some discussion actions (currently: ratings and flags).
+ *
+ * There is a single form because it is desirable to edit all ratings at once,
+ * which means the form needs to encompass the whole page, and it is not
+ * possible to nest forms inside each other.
+ *
+ * This form is used only for non-Javascript support. The supported actions
+ * (ratings and flags) have their own scripts; this script decodes its
+ * parameters and than requires the relevant script to use that.
+ * @package mod
+ * @subpackage forumng
+ * @copyright 2011 The Open University
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+require_once('../../config.php');
+
+/**
+ * Checks whether a POST key matches a given action. If it matches, parameters
+ * are extracted from the string and hacked into the POST parameters that will
+ * be passed to the real script.
+ * @param string $key POST parameter key
+ * @param string $prefix Desired key name prefix
+ */
+function match_action($key, $prefix) {
+ if (strpos($key, $prefix) !== 0) {
+ return false;
+ }
+
+ $params = substr($key, strlen($prefix));
+ $matches = array();
+ while (preg_match('~^_([a-z]+)_([^_]+)(.*)$~', $params, $matches)) {
+ $_POST[$matches[1]] = $matches[2];
+ $params = $matches[3];
+ }
+ return true;
+}
+
+// Loop through all POST parameters looking for a valid action
+foreach ($_POST as $key=>$value) {
+ if (match_action($key, 'action_flag')) {
+ require_once('flagpost.php');
+ exit;
+ }
+ if (match_action($key, 'action_rate')) {
+ require_once('rate.php');
+ exit;
+ }
+}
+
+// If no actions were found, print error.
+print_error('unknownuseraction');
Oops, something went wrong.

0 comments on commit 60812eb

Please sign in to comment.