Minor - flint fixes

pull/2539/head
jmontoyaa 8 years ago
parent c4a1e8eb1a
commit e3fcfb1863
  1. 1
      main/course_description/index.php
  2. 40
      main/extra/create_intervention.php
  3. 3
      main/extra/myStudents.php
  4. 50
      main/extra/update_exam.php
  5. 36
      main/extra/update_intervention.php
  6. 2
      main/gradebook/lib/be/abstractlink.class.php
  7. 5
      main/inc/lib/image.lib.php
  8. 6
      main/install/install.lib.php
  9. 1
      whoisonlinesession.php

@ -102,5 +102,4 @@ switch ($action) {
default: default:
//$descriptionController->listing(); //$descriptionController->listing();
$descriptionController->listing(); $descriptionController->listing();
} }

@ -1,21 +1,21 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
$allow = api_get_configuration_value('extra'); $allow = api_get_configuration_value('extra');
if (empty($allow)) { if (empty($allow)) {
exit; exit;
} }
$table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES); $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$comment = isset($_POST['inter_coment']) ? Database::escape_string($_POST['inter_coment']) : ''; $comment = isset($_POST['inter_coment']) ? Database::escape_string($_POST['inter_coment']) : '';
$date = isset($_POST['date']) ? Database::escape_string($_POST['date']) : ''; $date = isset($_POST['date']) ? Database::escape_string($_POST['date']) : '';
$level = isset($_POST['level']) ? Database::escape_string($_POST['level']) : ''; $level = isset($_POST['level']) ? Database::escape_string($_POST['level']) : '';
$ex_user_id = isset($_POST['ex_user_id']) ? Database::escape_string($_POST['ex_user_id']) : ''; $ex_user_id = isset($_POST['ex_user_id']) ? Database::escape_string($_POST['ex_user_id']) : '';
$sql = "INSERT INTO $table (exe_user_id,c_id,level,exe_date,inter_coment) $sql = "INSERT INTO $table (exe_user_id,c_id,level,exe_date,inter_coment)
VALUES ('$ex_user_id','0','$level','$date', '$comment')"; VALUES ('$ex_user_id','0','$level','$date', '$comment')";
Database::query($sql); Database::query($sql);
header("location: myStudents.php?student=$ex_user_id"); header("location: myStudents.php?student=$ex_user_id");
exit; exit;

@ -1292,8 +1292,7 @@ if (!empty($student_id)) {
} }
} }
// line about other tools // line about other tools ?>
?>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead> <thead>

@ -1,28 +1,28 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
$allow = api_get_configuration_value('extra'); $allow = api_get_configuration_value('extra');
if (empty($allow)) { if (empty($allow)) {
exit; exit;
} }
$tbl_stats_exercices = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES); $tbl_stats_exercices = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$ex_idd = isset($_POST['exe_id']) ? (int) $_POST['exe_id'] : ''; $ex_idd = isset($_POST['exe_id']) ? (int) $_POST['exe_id'] : '';
$ex_user_id = isset($_POST['ex_user_id']) ? (int) $_POST['ex_user_id'] : ''; $ex_user_id = isset($_POST['ex_user_id']) ? (int) $_POST['ex_user_id'] : '';
$mod_no = isset($_POST['mod_no']) ? Database::escape_string($_POST['mod_no']) : ''; $mod_no = isset($_POST['mod_no']) ? Database::escape_string($_POST['mod_no']) : '';
$score_ex = isset($_POST['score_ex']) ? Database::escape_string($_POST['score_ex']) : ''; $score_ex = isset($_POST['score_ex']) ? Database::escape_string($_POST['score_ex']) : '';
$score_rep1 = isset($_POST['score_rep1']) ? Database::escape_string($_POST['score_rep1']) : ''; $score_rep1 = isset($_POST['score_rep1']) ? Database::escape_string($_POST['score_rep1']) : '';
$score_rep2 = isset($_POST['score_rep2']) ? Database::escape_string($_POST['score_rep2']) : ''; $score_rep2 = isset($_POST['score_rep2']) ? Database::escape_string($_POST['score_rep2']) : '';
$coment = isset($_POST['coment']) ? Database::escape_string($_POST['coment']) : ''; $coment = isset($_POST['coment']) ? Database::escape_string($_POST['coment']) : '';
$student_id = isset($_POST['student_id']) ? Database::escape_string($_POST['student_id']) : ''; $student_id = isset($_POST['student_id']) ? Database::escape_string($_POST['student_id']) : '';
$sql = "UPDATE $tbl_stats_exercices SET $sql = "UPDATE $tbl_stats_exercices SET
mod_no='$mod_no', score_ex='$score_ex', score_rep1='$score_rep1', score_rep2='$score_rep2', coment='$coment' mod_no='$mod_no', score_ex='$score_ex', score_rep1='$score_rep1', score_rep2='$score_rep2', coment='$coment'
WHERE exe_id = '$ex_idd' WHERE exe_id = '$ex_idd'
"; ";
Database::query($sql); Database::query($sql);
header("location:../extra/myStudents.php?student=$student_id"); header("location:../extra/myStudents.php?student=$student_id");
exit; exit;

@ -1,18 +1,18 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
$allow = api_get_configuration_value('extra'); $allow = api_get_configuration_value('extra');
if (empty($allow)) { if (empty($allow)) {
exit; exit;
} }
$table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES); $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$ex_id = isset($_POST['exe_id']) ? (int) $_POST['exe_id'] : ''; $ex_id = isset($_POST['exe_id']) ? (int) $_POST['exe_id'] : '';
$student_id = isset($_POST['student_id']) ? (int) $_POST['student_id'] : ''; $student_id = isset($_POST['student_id']) ? (int) $_POST['student_id'] : '';
$inter_coment = isset($_POST['inter_coment']) ? Database::escape_string($_POST['inter_coment']) : ''; $inter_coment = isset($_POST['inter_coment']) ? Database::escape_string($_POST['inter_coment']) : '';
$sql = "UPDATE $table SET inter_coment='$inter_coment' WHERE exe_id = '$ex_id' "; $sql = "UPDATE $table SET inter_coment='$inter_coment' WHERE exe_id = '$ex_id' ";
Database::query($sql); Database::query($sql);
header("location:../extra/myStudents.php?student=$student_id"); header("location:../extra/myStudents.php?student=$student_id");
exit; exit;

@ -348,7 +348,7 @@ abstract class AbstractLink implements GradebookItem
} }
$sql .= ' visible = '.intval($visible); $sql .= ' visible = '.intval($visible);
} }
$result = Database::query($sql); $result = Database::query($sql);
$links = self::create_objects_from_sql_result($result); $links = self::create_objects_from_sql_result($result);

@ -164,10 +164,15 @@ abstract class ImageWrapper
} }
abstract public function set_image_wrapper(); abstract public function set_image_wrapper();
abstract public function fill_image_info(); abstract public function fill_image_info();
abstract public function get_image_size(); abstract public function get_image_size();
abstract public function resize($thumbw, $thumbh, $border, $specific_size = false); abstract public function resize($thumbw, $thumbh, $border, $specific_size = false);
abstract public function crop($x, $y, $width, $height, $src_width, $src_height); abstract public function crop($x, $y, $width, $height, $src_width, $src_height);
abstract public function send_image($file = '', $compress = -1, $convert_file_to = null); abstract public function send_image($file = '', $compress = -1, $convert_file_to = null);
/** /**

@ -2958,9 +2958,9 @@ function fixLpId($connection, $debug)
/*$sql = "UPDATE c_lp_item_view /*$sql = "UPDATE c_lp_item_view
SET lp_view_id = $newItemView SET lp_view_id = $newItemView
WHERE WHERE
lp_view_id = $oldItemViewId AND lp_view_id = $oldItemViewId AND
c_id = $courseId c_id = $courseId
"; ";
$connection->query($sql);*/ $connection->query($sql);*/
} }

@ -82,7 +82,6 @@ if (empty($time_limit)) {
$time_limit = 60; $time_limit = 60;
} }
$urlCondition = ''; $urlCondition = '';
$urlJoin = ''; $urlJoin = '';
if (api_is_multiple_url_enabled()) { if (api_is_multiple_url_enabled()) {

Loading…
Cancel
Save