40         if (!parent::checkInput()) {
    44         $tmp_file_name = $_FILES[$this->
getPostVar()][
'tmp_name'];
    45         if (strlen($tmp_file_name) == 0) {
    49         if (!is_readable($tmp_file_name)) {
    54         $contents = file_get_contents($tmp_file_name);
    57             !preg_match_all(
'/<area(.+)>/siU', $contents, $matches) ||
    58             !is_array($matches) ||
    59             !isset($matches[1]) ||
    60             count($matches[1]) == 0
    66         for ($i = 0; $i < count($matches[1]); $i++) {
    67             preg_match(
"/alt\s*=\s*\"(.*)\"\s*/siU", $matches[1][$i], $alt);
    68             preg_match(
"/coords\s*=\s*\"(.+)\"\s*/siU", $matches[1][$i], $coords);
    69             preg_match(
"/shape\s*=\s*\"(.+)\"\s*/siU", $matches[1][$i], $shape);
    88         $coords_array = explode(
',', $coords[1]);
    89         foreach ($coords_array as $coord) {
    90             if (!is_numeric($coord)) {
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...