removed mods directory from the ATutor codebase
[atutor.git] / mods / disclaimer / module.php
diff --git a/mods/disclaimer/module.php b/mods/disclaimer/module.php
deleted file mode 100644 (file)
index de2daf0..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php\r
-/*******\r
- * doesn't allow this file to be loaded with a browser.\r
- */\r
-if (!defined('AT_INCLUDE_PATH')) { exit; }\r
-\r
-/******\r
- * this file must only be included within a Module obj\r
- */\r
-if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }\r
-\r
-global $_config;\r
-/*******\r
- * assign the instructor and admin privileges to the constants.\r
- */\r
-define('AT_ADMIN_TERMS_AND_CONDITIONS', $this->getAdminPrivilege());\r
-\r
-/*******\r
- * add the admin pages when needed.\r
- */\r
-if (admin_authenticate(AT_ADMIN_TERMS_AND_CONDITION, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {\r
-        $this->_pages['admin/config_edit.php']['children'][] = 'mods/disclaimer/tac_edit.php';\r
-        $this->_pages['mods/disclaimer/tac_edit.php']['title_var']  = 'disclaimer';\r
-        $this->_pages['mods/disclaimer/tac_edit.php']['parent']         = 'admin/config_edit.php';\r
-}\r
-\r
-// The user cannot bypass the "terms and conditions" page \r
-//if($_config['enable_terms_and_conditions']==1 && !isset($_SESSION['agree_terms_and_conditions']) && !strstr($_SERVER['PHP_SELF'], 'terms_and_conditions.php')){\r
-//     header('Location: '.AT_BASE_HREF.'mods/disclaimer/terms_and_conditions.php');\r
-//     exit;\r
-//}\r
-//\r
-//// destroy the session var at logout\r
-//if (strstr($_SERVER['PHP_SELF'], 'logout.php')) {\r
-//     unset($_SESSION['agree_terms_and_conditions']);\r
-//}\r
-?>
\ No newline at end of file