4 include_once(
"./Services/Xml/classes/class.ilSaxParser.php");
 
   22 die(
"Deprecated. Plugin information is stored in plugin.php");
 
   24                 $this->ctype = $a_ctype;
 
   25                 $this->cname = $a_cname;
 
   26                 $this->slot_id = $a_slot_id;
 
   27                 $this->pname = $a_pname;
 
   37                 xml_set_object($a_xml_parser,$this);
 
   38                 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
 
   39                 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
 
   59                                 $q = 
"SELECT * FROM il_plugin WHERE ".
 
   60                                         " component_type = ".$ilDB->quote($this->ctype, 
"text").
 
   61                                         " AND component_name = ".$ilDB->quote($this->cname, 
"text").
 
   62                                         " AND slot_id = ".$ilDB->quote($this->slot_id, 
"text").
 
   63                                         " AND name = ".$ilDB->quote($this->pname, 
"text");
 
   64                                 $set = $ilDB->query($q);
 
   65                                 if ($ilDB->numRows($set) == 0)
 
   67                                         $q = 
"INSERT INTO il_plugin (component_type,component_name,slot_id,".
 
   68                                                 "name, id, last_update_version, current_version, ilias_min_version,".
 
   69                                                 " ilias_max_version, active) VALUES ".
 
   70                                                 "(".$ilDB->quote($this->ctype, 
"text").
",".
 
   71                                                 $ilDB->quote($this->cname, 
"text").
",".
 
   72                                                 $ilDB->quote($this->slot_id, 
"text").
",".
 
   73                                                 $ilDB->quote($this->pname, 
"text").
",".
 
   74                                                 $ilDB->quote($a_attribs[
"id"], 
"text").
",".
 
   75                                                 $ilDB->quote(
"0.0.0", 
"text").
",".
 
   76                                                 $ilDB->quote($a_attribs[
"version"], 
"text").
",".
 
   77                                                 $ilDB->quote($a_attribs[
"ilias_min_version"], 
"text").
",".
 
   78                                                 $ilDB->quote($a_attribs[
"ilias_max_version"], 
"text").
",".
 
   79                                                 $ilDB->quote(0, 
"integer").
")";
 
   80                                         $ilDB->manipulate($q);
 
   84                                         $q = 
"UPDATE il_plugin SET ".
 
   85                                                 " id = ".$ilDB->quote($a_attribs[
"id"], 
"text").
",".
 
   86                                                 " current_version = ".$ilDB->quote($a_attribs[
"version"], 
"text").
",".
 
   87                                                 " ilias_min_version = ".$ilDB->quote($a_attribs[
"ilias_min_version"], 
"text").
",".
 
   88                                                 " ilias_max_version = ".$ilDB->quote($a_attribs[
"ilias_max_version"], 
"text").
 
   90                                                 " component_type = ".$ilDB->quote($this->ctype, 
"text").
 
   91                                                 " AND component_name = ".$ilDB->quote($this->cname, 
"text").
 
   92                                                 " AND slot_id = ".$ilDB->quote($this->slot_id, 
"text").
 
   93                                                 " AND name = ".$ilDB->quote($this->pname, 
"text");
 
   94                                         $ilDB->manipulate($q);
 
  123                 $a_data = preg_replace(
"/\n/",
"",$a_data);
 
  124                 $a_data = preg_replace(
"/\t+/",
"",$a_data);
 
  128                         switch ($this->current_tag)