+++ /dev/null
-<?php\r
-/***********************************************************************/\r
-/* ATutor */\r
-/***********************************************************************/\r
-/* Copyright (c) 2002-2010 */\r
-/* Inclusive Design Institute */\r
-/* http://atutor.ca */\r
-/* */\r
-/* This program is free software. You can redistribute it and/or */\r
-/* modify it under the terms of the GNU General Public License */\r
-/* as published by the Free Software Foundation. */\r
-/***********************************************************************/\r
-\r
-// check whether user needs to or have already agreed with legal disclaimer\r
-function agreed_legal_disclaimer() {\r
- global $_config, $db;\r
- \r
- // users are not required to agree with legal disclaimer\r
- if (!isset($_config['enable_terms_and_conditions']) || $_config['enable_terms_and_conditions'] <> 1) {\r
- return true;\r
- } else {\r
- // check whether the user has agreed with legal disclaimer\r
- $sql = "SELECT * FROM ".TABLE_PREFIX."DS_agreed_logins\r
- WHERE login = '".$_SESSION['login']."' ";\r
- $result = mysql_query($sql, $db);\r
- if (mysql_num_rows($result) > 0) {\r
- return true;\r
- } else {\r
- return false;\r
- }\r
- }\r
-}\r
-\r
-function save_agreed_login($login) {\r
- global $db;\r
-\r
- if ($login == '') return;\r
- \r
- $sql = "INSERT INTO ".TABLE_PREFIX."DS_agreed_logins (login)\r
- VALUES ('".$login."')";\r
- $result = mysql_query($sql, $db);\r
-}\r
-?>
\ No newline at end of file