Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
PK ®[[{R—„ „ joomsefinstall.xmlnu W+A„¶
Extension Install - ARTIO JoomSEF
ARTIO s.r.o.
21. October 2011
ARTIO s.r.o.
GNU/GPLv3 http://www.artio.net/license/gnu-general-public-license
info@artio.net
www.artio.net
4.1.1
PLG_JOOMSEFINSTALL_XML_DESCRIPTION
joomsefinstall.php
PK ®[[œ7R¾ joomsefinstall.phpnu W+A„¶ _processUpdateSites($installer->manifest);
}
function onExtensionAfterUpdate($installer,$eid) {
$this->_processUpdateSites($installer->manifest);
}
private function _processUpdateSites($xml) {
if (!is_object($xml)) {
return;
}
$db=JFactory::getDBO();
$free=false;
$freecnt=array();
$pay=false;
if((string)$xml->name=='com_sef' || (string)$xml['type']=='sef_ext') {
if((string)$xml->name=='com_sef') {
$name='com_joomsef';
} else {
if (count($xml->files->children())) {
foreach ($xml->files->children() as $file) {
if ((string)$file->attributes()->sef_ext) {
$element = (string)$file->attributes()->sef_ext;
if(substr($element,0,13)!='ext_joomsef4_') {
$element='ext_joomsef4_'.$element;
}
break;
}
}
}
$name=$element;
}
$query=$db->getQuery(true);
$query->select('update_site_id, location')->from('#__update_sites')->where('name='.$db->quote($name));
$db->setQuery($query);
$updates=$db->loadObjectList();
if(count($updates)>0) {
for($i=0;$ilocation==(string)$xml->updateservers->server) {
$free=true;
$freecnt[]=$updates[$i]->update_site_id;
}
if($updates[$i]->location!=(string)$xml->updateservers->server) {
$pay=true;
}
}
}
if($free==true && $pay==true) {
$query=$db->getQuery(true);
$query->delete('#__update_sites')->where('location='.$db->quote((string)$xml->updateservers->server));
$db->setQUery($query);
$db->query();
} else if(count($freecnt)>1) {
array_shift($freecnt);
$query=$db->getQuery($query);
$query->delete('#__update_sites')->where('update_site_id IN('.implode(",",$freecnt).')');
$db->setQuery($query);
$db->query();
}
}
}
}
?>PK ®[[{R—„ „ joomsefinstall.xmlnu W+A„¶ PK ®[[œ7R¾ Æ joomsefinstall.phpnu W+A„¶ PK ¤ ‡