Cleaning code

skala
Julio Montoya 15 years ago
parent 7b8cb9ed43
commit 1dddf886eb
  1. 36
      main/link/link.php
  2. 31
      main/link/link_goto.php
  3. 4
      main/messages/download.php
  4. 4
      main/messages/index.php
  5. 7
      main/messages/new_message.php

@ -1,27 +1,7 @@
<?php // $Id: link.php 22251 2009-07-20 16:56:54Z iflorespaz $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2008 Dokeos SPRL
Copyright (c) 2003 Ghent University (UGent)
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, rue Notre Dame, 152, B-1140 Evere, Belgium, info@dokeos.com
==============================================================================
*/
/* For licensing terms, see /license.txt */
/**
==============================================================================
* Main script for the links tool.
*
* Features:
@ -34,15 +14,12 @@
*
* @author Patrick Cool, main author, completely rewritten
* @author René Haentjens, added CSV file import (October 2004)
* @package dokeos.link
* @package chamilo.link
* @todo improve organisation, tables should come from database library
==============================================================================
*/
/*
==============================================================================
INIT SECTION
==============================================================================
*/
// name of the language file that needs to be included
$language_file = array('link','admin');
@ -154,9 +131,7 @@ function MM_popupMsg(msg) { //v1.0
/*
-----------------------------------------------------------
Action Handling
-----------------------------------------------------------
*/
$nameTools = get_lang("Links");
@ -566,11 +541,8 @@ if (empty($_GET['action']) || ($_GET['action']!='editlink' && $_GET['action']!='
// displaying the link of the category
$i++;
}
echo '</table>';
////////////////////////////////////////////////////////////////////////////
echo '</table>';
}
Display::display_footer();
?>
?>

@ -1,27 +1,6 @@
<?php // $Id: link_goto.php 22201 2009-07-17 19:57:03Z cfasanando $
/*
==============================================================================
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
==============================================================================
*/
/* For licensing terms, see /license.txt */
/**
==============================================================================
* This page is used to launch an event when a user clicks
* on a page linked in a course.
* - It gets name of URL
@ -34,20 +13,17 @@
*
* @author Thomas Depraetere, Hugues Peeters, Christophe Gesch<EFBFBD> - original versions
* @package dokeos.link
==============================================================================
*/
/*
==============================================================================
INIT SECTION
==============================================================================
*/
include('../inc/global.inc.php');
require_once '../inc/global.inc.php';
$this_section=SECTION_COURSES;
$link_url = Security::remove_XSS($_GET['link_url']);
$link_id = Security::remove_XSS($_GET['link_id']);
$link_id = intval($_GET['link_id']);
// launch event
event_link($link_id);
@ -59,5 +35,4 @@ header("Location: $link_url");
//to be sure that the script stops running after the redirection
exit;
?>

@ -9,9 +9,7 @@
* @package chamilo.messages
*/
/*
MAIN CODE
*/
/* MAIN CODE */
session_cache_limiter('public');

@ -1,5 +1,9 @@
<?php
/* For licensing terms, see /license.txt */
/**
* @package chamilo.messages
*/
require_once '../inc/global.inc.php';
if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true') {
header('Location:inbox.php?f=social');

@ -1,5 +1,10 @@
<?php
/* For licensing terms, see /license.txt */
/**
* @package chamilo.messages
*/
/**
* This script shows a compose area (wysiwyg editor if supported, otherwise
* a simple textarea) where the user can type a message.
@ -151,7 +156,7 @@ function manage_form ($default, $select_from_user_list = null) {
global $charset;
$table_message = Database::get_main_table(TABLE_MESSAGE);
$group_id = intval($_REQUEST['group_id']);
$group_id = intval($_REQUEST['group_id']);
$message_id = intval($_GET['message_id']);
$param_f = isset($_GET['f'])?Security::remove_XSS($_GET['f']):'';

Loading…
Cancel
Save