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:
//$descriptionController->listing();
$descriptionController->listing();
}

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

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

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

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

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

@ -164,10 +164,15 @@ abstract class ImageWrapper
}
abstract public function set_image_wrapper();
abstract public function fill_image_info();
abstract public function get_image_size();
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 send_image($file = '', $compress = -1, $convert_file_to = null);
/**

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

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

Loading…
Cancel
Save