[svn r14588] * bug fixes with sessions in blog, forum, exercice

skala
David Van Wayenbergh 18 years ago
parent e2839dcf88
commit 2bb51abfab
  1. 6
      main/blog/blog.php
  2. 5
      main/blog/blog_admin.php
  3. 6
      main/exercice/exercice_submit.php
  4. 7
      main/exercice/exercise_result.php
  5. 3
      main/forum/editpost.php
  6. 5
      main/forum/iframe_thread.php
  7. 5
      main/forum/index.php
  8. 6
      main/forum/newthread.php
  9. 6
      main/forum/reply.php
  10. 5
      main/forum/viewforum.php
  11. 5
      main/forum/viewforumcategory.php
  12. 6
      main/forum/viewthread.php

@ -40,6 +40,12 @@ $language_file = "blog";
$blog_id = intval($_GET['blog_id']);
include ('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
//session
if(isset($_GET['id_session']))

@ -34,6 +34,11 @@
$language_file = "blog";
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
require_once(api_get_path(LIBRARY_PATH) . "blog.lib.php");
$nameTools = get_lang("blog_management");

@ -33,7 +33,7 @@
* the administrator
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: exercice_submit.php 13476 2007-10-12 11:38:16Z elixir_inter $
* @version $Id: exercice_submit.php 14588 2008-03-13 11:17:02Z vanwayenbergh $
*/
@ -61,6 +61,10 @@ $language_file='exercice';
include_once('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
include_once(api_get_path(LIBRARY_PATH).'text.lib.php');
$is_allowedToEdit=api_is_allowed_to_edit();

@ -25,7 +25,7 @@
* @package dokeos.exercise
* @author Olivier Brouckaert, main author
* @author Roan Embrechts, some refactoring
* @version $Id: exercise_result.php 14300 2008-02-15 11:40:43Z elixir_inter $
* @version $Id: exercise_result.php 14588 2008-03-13 11:17:02Z vanwayenbergh $
*
* @todo split more code up in functions, move functions to library?
*/
@ -62,6 +62,11 @@ $language_file='exercice';
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
include_once(api_get_path(LIBRARY_PATH).'events.lib.inc.php');
include_once(api_get_path(LIBRARY_PATH).'mail.lib.inc.php');
include_once(api_get_path(LIBRARY_PATH).'course.lib.php');

@ -66,6 +66,9 @@ require ('../inc/global.inc.php');
// the section (tabs)
$this_section=SECTION_COURSES;
// notice for unauthorized people.
api_protect_course_script(true);
// FCKeditor configuration
$fck_attribute['Width'] = '100%';

@ -58,6 +58,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------
Language Initialisation

@ -58,6 +58,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------
Language Initialisation

@ -58,7 +58,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*

@ -59,7 +59,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------

@ -58,6 +58,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------
Language Initialisation

@ -58,6 +58,11 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------
Language Initialisation

@ -58,6 +58,12 @@
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
$this_section=SECTION_COURSES;
/* ------------ ACCESS RIGHTS ------------ */
// notice for unauthorized people.
api_protect_course_script(true);
/*
-----------------------------------------------------------
Language Initialisation

Loading…
Cancel
Save