Code Search for Developers
 
 
  

link_goto.php from pointcarre at Krugle


Show link_goto.php syntax highlighted

<?php // $Id: link_goto.php 2 2005-07-15 13:01:38Z roane $ 
/*
============================================================================== 
	Dokeos - elearning and course management software
	
	Copyright (c) 2004-2005 Dokeos S.A.
	Copyright (c) 2003 Ghent University (UGent)
	Copyright (c) 2001 Universite catholique de Louvain (UCL)
	
	For a full list of contributors, see "credits.txt".
	The full license can be read in "license.txt".
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	See the GNU General Public License for more details.
	
	Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
============================================================================== 
*/
/**
============================================================================== 
* This page is used to launch an event when a user clicks
* on a page linked in a course.
* - It gets name of URL
* - It calls the event function
* - It redirects the user to the linked page
*                                                               |
* Need the liens.id, user.user_id et cours.code when called
* ?link_id=$myrow[0]&link_url=$myrow[1]                           |
* url is given to avoid a new select          
*
* @author Thomas Depraetere, Hugues Peeters, Christophe Gesché - original versions
* @package dokeos.link
============================================================================== 
*/
	
/*
============================================================================== 
		INIT SECTION
============================================================================== 
*/ 

include('../inc/claro_init_global.inc.php');
include(api_get_library_path()."/events.lib.inc.php");

$link_url = $_GET['link_url'];
$link_id = $_GET['link_id'];

// launch event
event_link($link_id);

header("Cache-Control: no-store, no-cache, must-revalidate");   // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");                                     // HTTP/1.0
header("Location: $link_url");

//to be sure that the script stops running after the redirection
exit;

?>



See more files for this project here

pointcarre

Pointcarre - a learning management system based on the Dokeos community releases. No fork, but containing locally developed extensions, features not (yet) in the standard release, integrated plugins...

Project homepage: http://sourceforge.net/projects/pointcarre
Programming language(s): PHP
License: other

  index.html
  link.php
  link_goto.php
  linkfunctions.php