moved faq module
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Wed, 7 Dec 2005 18:17:00 +0000 (18:17 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Wed, 7 Dec 2005 18:17:00 +0000 (18:17 -0000)
16 files changed:
docs/install/db/atutor_schema.sql
docs/install/db/atutor_upgrade_1.5.1_to_1.5.2.sql
docs/mods/_standard/faq/module.php [deleted file]
docs/tools/faq/add_question.php [moved from docs/mods/_standard/faq/add_question.php with 96% similarity]
docs/tools/faq/add_topic.php [moved from docs/mods/_standard/faq/add_topic.php with 92% similarity]
docs/tools/faq/delete_question.php [moved from docs/mods/_standard/faq/delete_question.php with 93% similarity]
docs/tools/faq/delete_topic.php [moved from docs/mods/_standard/faq/delete_topic.php with 92% similarity]
docs/tools/faq/edit_question.php [moved from docs/mods/_standard/faq/edit_question.php with 97% similarity]
docs/tools/faq/edit_topic.php [moved from docs/mods/_standard/faq/edit_topic.php with 95% similarity]
docs/tools/faq/icon.gif [moved from docs/mods/_standard/faq/icon.gif with 100% similarity]
docs/tools/faq/index.php [moved from docs/mods/_standard/faq/index.php with 90% similarity]
docs/tools/faq/index_instructor.php [moved from docs/mods/_standard/faq/index_instructor.php with 93% similarity]
docs/tools/faq/module.php [new file with mode: 0644]
docs/tools/faq/module.xml [moved from docs/mods/_standard/faq/module.xml with 100% similarity]
docs/tools/faq/module_backup.php [moved from docs/mods/_standard/faq/module_backup.php with 100% similarity]
docs/tools/faq/module_delete.php [moved from docs/mods/_standard/faq/module_delete.php with 100% similarity]

index 7994d68..e09ca58 100644 (file)
@@ -427,7 +427,7 @@ INSERT INTO `modules` VALUES ('mods/_standard/course_email',  2, 2, 1024,      0
 INSERT INTO `modules` VALUES ('tools/announcements',          2, 2, 2048,      0);
 # INSERT INTO `modules` VALUES ('mods/acollab',               2, 8192+4096,    0);
 INSERT INTO `modules` VALUES ('tools/polls',                  2, 2, 16384,     0);
-INSERT INTO `modules` VALUES ('mods/_standard/faq',           2, 2, 32768,     0);
+INSERT INTO `modules` VALUES ('tools/faq',                    2, 2, 32768,     0);
 INSERT INTO `modules` VALUES ('mods/_core/users',             1, 2, 0,         2);
 INSERT INTO `modules` VALUES ('mods/_core/courses',           1, 2, 0,         4);
 INSERT INTO `modules` VALUES ('mods/_core/backups',           1, 2, 1,         8);
index 897c61f..982fccd 100644 (file)
@@ -69,7 +69,7 @@ INSERT INTO `modules` VALUES ('mods/_standard/course_email',  2, 2, 1024,      0
 INSERT INTO `modules` VALUES ('tools/announcements',          2, 2, 2048,      0);\r
 # INSERT INTO `modules` VALUES ('mods/acollab',               2, 8192+4096,    0);\r
 INSERT INTO `modules` VALUES ('tools/polls',                  2, 2, 16384,     0);\r
-INSERT INTO `modules` VALUES ('mods/_standard/faq',           2, 2, 32768,     0);\r
+INSERT INTO `modules` VALUES ('tools/faq',                    2, 2, 32768,     0);\r
 INSERT INTO `modules` VALUES ('mods/_core/users',             1, 2, 0,         2);\r
 INSERT INTO `modules` VALUES ('mods/_core/courses',           1, 2, 0,         4);\r
 INSERT INTO `modules` VALUES ('mods/_core/backups',           1, 2, 1,         8);\r
diff --git a/docs/mods/_standard/faq/module.php b/docs/mods/_standard/faq/module.php
deleted file mode 100644 (file)
index c36e518..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
-\r
-define('AT_PRIV_FAQ', $this->getPrivilege());\r
-\r
-// if this module is to be made available to students on the Home or Main Navigation\r
-$_student_tool = 'mods/_standard/faq/index.php';\r
-\r
-\r
-// instructor Manage section:\r
-$this->_pages['mods/_standard/faq/index_instructor.php']['title_var'] = 'faq';\r
-$this->_pages['mods/_standard/faq/index_instructor.php']['parent']    = 'tools/index.php';\r
-$this->_pages['mods/_standard/faq/index_instructor.php']['children']  = array('mods/_standard/faq/add_topic.php', 'mods/_standard/faq/add_question.php');\r
-$this->_pages['mods/_standard/faq/index_instructor.php']['guide']     = 'instructor/?p=16.0.faq.php';\r
-\r
-\r
-       $this->_pages['mods/_standard/faq/add_topic.php']['title_var'] = 'add_topic';\r
-       $this->_pages['mods/_standard/faq/add_topic.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-       $this->_pages['mods/_standard/faq/delete_topic.php']['title_var'] = 'delete';\r
-       $this->_pages['mods/_standard/faq/delete_topic.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-       $this->_pages['mods/_standard/faq/edit_topic.php']['title_var'] = 'edit';\r
-       $this->_pages['mods/_standard/faq/edit_topic.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-       $this->_pages['mods/_standard/faq/add_question.php']['title_var'] = 'add_question';\r
-       $this->_pages['mods/_standard/faq/add_question.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-       $this->_pages['mods/_standard/faq/delete_question.php']['title_var'] = 'delete';\r
-       $this->_pages['mods/_standard/faq/delete_question.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-       $this->_pages['mods/_standard/faq/edit_question.php']['title_var'] = 'edit';\r
-       $this->_pages['mods/_standard/faq/edit_question.php']['parent']    = 'mods/_standard/faq/index_instructor.php';\r
-\r
-// student page:\r
-$this->_pages['mods/_standard/faq/index.php']['title_var'] = 'faq';\r
-$this->_pages['mods/_standard/faq/index.php']['img']       = 'mods/_standard/faq/icon.gif';\r
-\r
-?>
\ No newline at end of file
similarity index 96%
rename from docs/mods/_standard/faq/add_question.php
rename to docs/tools/faq/add_question.php
index 68a737d..134675a 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-define('AT_INCLUDE_PATH', '../../../include/');
+define('AT_INCLUDE_PATH', '../../include/');
 require (AT_INCLUDE_PATH.'vitals.inc.php');
 
 authenticate(AT_PRIV_FAQ);
similarity index 92%
rename from docs/mods/_standard/faq/add_topic.php
rename to docs/tools/faq/add_topic.php
index c19c2ac..23ba3d6 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-define('AT_INCLUDE_PATH', '../../../include/');
+define('AT_INCLUDE_PATH', '../../include/');
 require (AT_INCLUDE_PATH.'vitals.inc.php');
 
 authenticate(AT_PRIV_FAQ);
similarity index 93%
rename from docs/mods/_standard/faq/delete_question.php
rename to docs/tools/faq/delete_question.php
index a5339ac..bed55b0 100644 (file)
@@ -1,5 +1,5 @@
 <?php\r
-define('AT_INCLUDE_PATH', '../../../include/');\r
+define('AT_INCLUDE_PATH', '../../include/');\r
 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
 \r
 authenticate(AT_PRIV_FAQ);\r
similarity index 92%
rename from docs/mods/_standard/faq/delete_topic.php
rename to docs/tools/faq/delete_topic.php
index 2c85ca0..223a213 100644 (file)
@@ -1,5 +1,5 @@
 <?php\r
-define('AT_INCLUDE_PATH', '../../../include/');\r
+define('AT_INCLUDE_PATH', '../../include/');\r
 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
 \r
 authenticate(AT_PRIV_FAQ);\r
similarity index 97%
rename from docs/mods/_standard/faq/edit_question.php
rename to docs/tools/faq/edit_question.php
index 32ff464..16a1f43 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-define('AT_INCLUDE_PATH', '../../../include/');
+define('AT_INCLUDE_PATH', '../../include/');
 require (AT_INCLUDE_PATH.'vitals.inc.php');
 
 authenticate(AT_PRIV_FAQ);
similarity index 95%
rename from docs/mods/_standard/faq/edit_topic.php
rename to docs/tools/faq/edit_topic.php
index 66e50c2..c6afb90 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-define('AT_INCLUDE_PATH', '../../../include/');
+define('AT_INCLUDE_PATH', '../../include/');
 require (AT_INCLUDE_PATH.'vitals.inc.php');
 
 authenticate(AT_PRIV_FAQ);
similarity index 90%
rename from docs/mods/_standard/faq/index.php
rename to docs/tools/faq/index.php
index fb7947e..b129638 100644 (file)
@@ -1,6 +1,6 @@
 <?php\r
 \r
-define('AT_INCLUDE_PATH', '../../../include/');\r
+define('AT_INCLUDE_PATH', '../../include/');\r
 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
 require (AT_INCLUDE_PATH.'header.inc.php');\r
 \r
similarity index 93%
rename from docs/mods/_standard/faq/index_instructor.php
rename to docs/tools/faq/index_instructor.php
index d51ae3b..6868a03 100644 (file)
@@ -1,6 +1,6 @@
 <?php\r
 \r
-define('AT_INCLUDE_PATH', '../../../include/');\r
+define('AT_INCLUDE_PATH', '../../include/');\r
 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
 authenticate(AT_PRIV_FAQ);\r
 \r
diff --git a/docs/tools/faq/module.php b/docs/tools/faq/module.php
new file mode 100644 (file)
index 0000000..c5e2a8c
--- /dev/null
@@ -0,0 +1,40 @@
+<?php\r
+if (!defined('AT_INCLUDE_PATH')) { exit; }\r
+if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
+\r
+define('AT_PRIV_FAQ', $this->getPrivilege());\r
+\r
+// if this module is to be made available to students on the Home or Main Navigation\r
+$_student_tool = 'tools/faq/index.php';\r
+\r
+\r
+// instructor Manage section:\r
+$this->_pages['tools/faq/index_instructor.php']['title_var'] = 'faq';\r
+$this->_pages['tools/faq/index_instructor.php']['parent']    = 'tools/index.php';\r
+$this->_pages['tools/faq/index_instructor.php']['children']  = array('tools/faq/add_topic.php', 'tools/faq/add_question.php');\r
+$this->_pages['tools/faq/index_instructor.php']['guide']     = 'instructor/?p=16.0.faq.php';\r
+\r
+\r
+       $this->_pages['tools/faq/add_topic.php']['title_var'] = 'add_topic';\r
+       $this->_pages['tools/faq/add_topic.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+       $this->_pages['tools/faq/delete_topic.php']['title_var'] = 'delete';\r
+       $this->_pages['tools/faq/delete_topic.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+       $this->_pages['tools/faq/edit_topic.php']['title_var'] = 'edit';\r
+       $this->_pages['tools/faq/edit_topic.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+       $this->_pages['tools/faq/add_question.php']['title_var'] = 'add_question';\r
+       $this->_pages['tools/faq/add_question.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+       $this->_pages['tools/faq/delete_question.php']['title_var'] = 'delete';\r
+       $this->_pages['tools/faq/delete_question.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+       $this->_pages['tools/faq/edit_question.php']['title_var'] = 'edit';\r
+       $this->_pages['tools/faq/edit_question.php']['parent']    = 'tools/faq/index_instructor.php';\r
+\r
+// student page:\r
+$this->_pages['tools/faq/index.php']['title_var'] = 'faq';\r
+$this->_pages['tools/faq/index.php']['img']       = 'tools/faq/icon.gif';\r
+\r
+?>
\ No newline at end of file