Procházet zdrojové kódy

[svn r14700] Should enable the "Course access" in course settings. (see FS#2393)

Julio Montoya před 17 roky
rodič
revize
75ee92a863
1 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. 7 6
      main/inc/lib/main_api.lib.php

+ 7 - 6
main/inc/lib/main_api.lib.php

@@ -3,7 +3,7 @@
 ===============================================================================
 ===============================================================================
 	Dokeos - elearning and course management software
 	Dokeos - elearning and course management software
 
 
-	Copyright (c) 2004-2005 Dokeos S.A.
+	Copyright (c) 2004-2008 Dokeos S.A.
 	Copyright (c) 2003 Ghent University (UGent)
 	Copyright (c) 2003 Ghent University (UGent)
 	Copyright (c) 2001 Universite catholique de Louvain (UCL)
 	Copyright (c) 2001 Universite catholique de Louvain (UCL)
 	Copyright (c) Hugues Peeters
 	Copyright (c) Hugues Peeters
@@ -24,7 +24,7 @@
 
 
 	See the GNU General Public License for more details.
 	See the GNU General Public License for more details.
 
 
-	Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
+	Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium	
 	Mail: info@dokeos.com
 	Mail: info@dokeos.com
 ===============================================================================
 ===============================================================================
 */
 */
@@ -156,10 +156,11 @@ define('DIR_HOTPOTATOES','/HotPotatoes_files');
 * @author Roan Embrechts
 * @author Roan Embrechts
 */
 */
 function api_protect_course_script($print_headers=false)
 function api_protect_course_script($print_headers=false)
-{
-	global $is_allowed_in_course;
-	if (!isset ($_SESSION["_course"]) || !$is_allowed_in_course)
-	{
+{	
+ 	global $is_allowed_in_course; 	 	 	
+	//if (!isset ($_SESSION["_course"]) || !$is_allowed_in_course)	
+	if (!$is_allowed_in_course)
+	{			
 		api_not_allowed($print_headers);
 		api_not_allowed($print_headers);
 	}
 	}
 }
 }