Commit d6f7ad29 authored by tecnickcom's avatar tecnickcom
Browse files

12.1.021 (2014-04-27)

- Deprecated curly braces substring syntax was replaced with square braces.
- TCPDF library was updated.
parent 46bc2cb6
12.1.021 (2014-04-27)
- Deprecated curly braces substring syntax was replaced with square braces.
- TCPDF library was updated.
12.1.020 (2014-04-15)
- TCPDF library was updated.
......
......@@ -9,9 +9,9 @@ YOU MUST CONTACT INFO@TECNICK.COM TO PURCHASE A LICENSE.
Name: TCExam
Version: 12.1.020
Version: 12.1.021
Release date: 2014-04-15
Release date: 2014-04-27
Author:
Nicola Asuni
......
......@@ -264,7 +264,7 @@ switch($menu_mode) {
// create a comma separated list of subjects IDs
$subjids = '';
foreach ($subject_id as $subid) {
if ($subid{0} == '#') {
if ($subid[0] == '#') {
// module ID
$modid = intval(substr($subid, 1));
$sqlsm = F_select_subjects_sql('subject_module_id='.$modid.'');
......
......@@ -237,7 +237,7 @@ function F_update_config_files($db_type, $db_host, $db_port, $db_user, $db_passw
if(!defined('PHP_VERSION_ID')) {
$version = PHP_VERSION;
define('PHP_VERSION_ID', (($version{0} * 10000) + ($version{2} * 100) + $version{4}));
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4]));
}
if (PHP_VERSION_ID < 50300) {
@set_magic_quotes_runtime(0);
......
......@@ -158,7 +158,7 @@ function F_check_form_fields() {
*/
function F_stripslashes_formfields() {
foreach ($_POST as $key => $value) {
if (($key{0} != '_') AND (is_string($value))) {
if (($key[0] != '_') AND (is_string($value))) {
$key = preg_replace('/[^a-z0-9_\[\]]/i', '', $key);
global $$key;
if (!isset($$key)) {
......
......@@ -32,7 +32,7 @@
/**
* TCExam version (do not change).
*/
define ('K_TCEXAM_VERSION', '12.1.020');
define ('K_TCEXAM_VERSION', '12.1.021');
/**
* 2-letters code for default language.
......@@ -295,7 +295,7 @@ ini_set('arg_separator.output', '&amp;');
if(!defined('PHP_VERSION_ID')) {
$version = PHP_VERSION;
define('PHP_VERSION_ID', (($version{0} * 10000) + ($version{2} * 100) + $version{4}));
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4]));
}
if (PHP_VERSION_ID < 50300) {
@set_magic_quotes_runtime(false); //disable magic quotes
......@@ -307,7 +307,7 @@ if (PHP_VERSION_ID < 50300) {
// --- get 'post', 'get' and 'cookie' variables
foreach ($_REQUEST as $postkey => $postvalue) {
if (($postkey{0} != '_') AND (!preg_match('/[A-Z]/', $postkey{0}))) {
if (($postkey[0] != '_') AND (!preg_match('/[A-Z]/', $postkey[0]))) {
if (!function_exists('get_magic_quotes_gpc') OR !get_magic_quotes_gpc()) {
$postvalue = addSlashesArray($postvalue);
$_REQUEST[$postkey] = $postvalue;
......
6.0.072 (2014-04-27)
- Deprecated curly braces substring syntax was replaced with square braces.
6.0.071 (2014-04-25)
- Bug #911 "error with buffered png pics" was fixed.
......
......@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 6.0.071
Release date: 2014-04-25
Version: 6.0.072
Release date: 2014-04-27
Author: Nicola Asuni
Copyright (c) 2002-2014:
......
......@@ -935,11 +935,11 @@ class PDF417 {
}
if ($sublen == 6) {
$t = bcmul(''.ord($code[0]), '1099511627776');
$t = bcadd($t, bcmul(''.ord($code{1}), '4294967296'));
$t = bcadd($t, bcmul(''.ord($code{2}), '16777216'));
$t = bcadd($t, bcmul(''.ord($code{3}), '65536'));
$t = bcadd($t, bcmul(''.ord($code{4}), '256'));
$t = bcadd($t, ''.ord($code{5}));
$t = bcadd($t, bcmul(''.ord($code[1]), '4294967296'));
$t = bcadd($t, bcmul(''.ord($code[2]), '16777216'));
$t = bcadd($t, bcmul(''.ord($code[3]), '65536'));
$t = bcadd($t, bcmul(''.ord($code[4]), '256'));
$t = bcadd($t, ''.ord($code[5]));
// tmp array for the 6 bytes block
$cw6 = array();
do {
......
......@@ -218,7 +218,7 @@ class TCPDF_IMAGES {
if (count($icc) > 0) {
ksort($icc);
$icc = implode('', $icc);
if ((ord($icc{36}) != 0x61) OR (ord($icc{37}) != 0x63) OR (ord($icc{38}) != 0x73) OR (ord($icc{39}) != 0x70)) {
if ((ord($icc[36]) != 0x61) OR (ord($icc[37]) != 0x63) OR (ord($icc[38]) != 0x73) OR (ord($icc[39]) != 0x70)) {
// invalid ICC profile
$icc = false;
}
......@@ -300,9 +300,9 @@ class TCPDF_IMAGES {
// read transparency info
$t = TCPDF_STATIC::rfread($f, $n);
if ($ct == 0) { // DeviceGray
$trns = array(ord($t{1}));
$trns = array(ord($t[1]));
} elseif ($ct == 2) { // DeviceRGB
$trns = array(ord($t{1}), ord($t{3}), ord($t{5}));
$trns = array(ord($t[1]), ord($t[3]), ord($t[5]));
} else { // Indexed
if ($n > 0) {
$trns = array();
......
......@@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version.
* @private static
*/
private static $tcpdf_version = '6.0.071';
private static $tcpdf_version = '6.0.072';
/**
* String alias for total number of pages.
......@@ -137,7 +137,7 @@ class TCPDF_STATIC {
public static function set_mqr($mqr) {
if (!defined('PHP_VERSION_ID')) {
$version = PHP_VERSION;
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version{2} * 100) + $version{4}));
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4]));
}
if (PHP_VERSION_ID < 50300) {
@set_magic_quotes_runtime($mqr);
......@@ -153,7 +153,7 @@ class TCPDF_STATIC {
public static function get_mqr() {
if (!defined('PHP_VERSION_ID')) {
$version = PHP_VERSION;
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version{2} * 100) + $version{4}));
define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4]));
}
if (PHP_VERSION_ID < 50300) {
return @get_magic_quotes_runtime();
......@@ -2232,7 +2232,7 @@ class TCPDF_STATIC {
break;
}
case ':': { // pseudo-class or pseudo-element
if ($attrib{1} == ':') { // pseudo-element
if ($attrib[1] == ':') { // pseudo-element
// pseudo-elements are not supported!
// (::first-line, ::first-letter, ::before, ::after)
} else { // pseudo-class
......
<?php
//============================================================+
// File name : tcpdf.php
// Version : 6.0.071
// Version : 6.0.072
// Begin : 2002-08-03
// Last Update : 2014-04-25
// Last Update : 2014-04-27
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
......@@ -104,7 +104,7 @@
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 6.0.071
* @version 6.0.072
*/
 
// TCPDF configuration
......@@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php');
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
* @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions.
* @version 6.0.071
* @version 6.0.072
* @author Nicola Asuni - info@tecnick.com
*/
class TCPDF {
......@@ -6895,7 +6895,7 @@ class TCPDF {
// height difference
$hdiff = ($oldh - $h);
// vertical alignment
switch (strtoupper($fitbox{1})) {
switch (strtoupper($fitbox[1])) {
case 'T': {
break;
}
......
......@@ -1445,7 +1445,7 @@ class TCPDFBarcode {
$seq = '101'; // left guard bar
if ($upce) {
$bararray = array('code' => $upce_code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());
$p = $upce_parities[$code{1}][$r];
$p = $upce_parities[$code[1]][$r];
for ($i = 0; $i < 6; ++$i) {
$seq .= $codes[$p[$i]][$upce_code{$i}];
}
......@@ -1504,7 +1504,7 @@ class TCPDFBarcode {
if ($len == 2) {
$r = $code % 4;
} elseif ($len == 5) {
$r = (3 * ($code[0] + $code{2} + $code{4})) + (9 * ($code{1} + $code{3}));
$r = (3 * ($code[0] + $code[2] + $code[4])) + (9 * ($code[1] + $code[3]));
$r %= 10;
} else {
return false;
......@@ -2070,7 +2070,7 @@ class TCPDFBarcode {
$binary_code = bcmul($binary_code, 10);
$binary_code = bcadd($binary_code, $tracking_number[0]);
$binary_code = bcmul($binary_code, 5);
$binary_code = bcadd($binary_code, $tracking_number{1});
$binary_code = bcadd($binary_code, $tracking_number[1]);
$binary_code .= substr($tracking_number, 2, 18);
// convert to hexadecimal
$binary_code = $this->dec_to_hex($binary_code);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment