Format code, remove require_once

1.10.x
Julio Montoya 10 years ago
parent 1dfc67f989
commit 608f9a6b60
  1. 6
      certificates/index.php
  2. 1
      index.php
  3. 5
      news_list.php
  4. 10
      user.php
  5. 2
      whoisonline.php
  6. 5
      whoisonlinesession.php

@ -5,12 +5,7 @@
* @package chamilo.certificate
*/
/**
* Initialization
*/
require_once '../main/inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'certificate.lib.php';
$action = isset($_GET['action']) ? $_GET['action'] : null;
@ -35,7 +30,6 @@ switch ($action) {
$pageFormat = $pdfParams['orientation'] == 'landscape' ? 'A4-L' : 'A4';
$userInfo = api_get_user_info($certificate->user_id);
$pdfName = replace_dangerous_char(get_lang('Certificate') . ' ' . $userInfo['username']);
$pdf = new PDF($pageFormat, $pdfParams['orientation'], $pdfParams);

@ -13,7 +13,6 @@ define('CHAMILO_HOMEPAGE', true);
$cidReset = true;
require_once 'main/inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'userportal.lib.php';
require_once 'main/chat/chat_functions.lib.php';
// The section (for the tabs).

@ -6,8 +6,9 @@ require_once 'main/inc/global.inc.php';
$tool_name = get_lang('SystemAnnouncements');
$actions = '';
if (api_is_platform_admin()) {
$actions = '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).'</a>';
if (api_is_platform_admin()) {
$actions = '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.
Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).'</a>';
}
if (api_is_anonymous()) {

@ -4,17 +4,15 @@
* Clean URls for the Social Network
*
* The idea is to access to the user info more easily:
* http://campus.chamilo.org/admin instead of
* http://campus.chamilo.org/admin instead of
* http://campus.chamilo.org/main/social/profile.php?1
* To use this you should rename the htaccess to .htaccess and check your
* To use this you should rename the htaccess to .htaccess and check your
* virtualhost configuration
*
* More improvements will come in next versions of Chamilo maybe in the 1.8.8
* @package chamilo.main
*/
/**
* Variables definitions and inclusions
*/
$cidReset = true;
require_once 'main/inc/global.inc.php';
@ -43,4 +41,4 @@ if (!empty($array_keys)) {
// we cant find your friend
header('Location: whoisonline.php');
exit;
}
}

@ -15,8 +15,6 @@ if (isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) {
api_protect_course_script(true);
}
require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php';
$_SESSION['who_is_online_counter'] = 2;
$htmlHeadXtra[] = api_get_js('jquery.endless-scroll.js');

@ -144,9 +144,4 @@ Display::display_header(get_lang('UserOnlineListSession'));
</table>
<?php
/*
==============================================================================
FOOTER
==============================================================================
*/
Display::display_footer();

Loading…
Cancel
Save