setQuery($sql); $ctableAssoc = $db->loadResultArray(1); $ctable = empty($ctableAssoc) ? '' : $ctableAssoc[0]; if(!strstr($ctable, '`tag`')) { // Smart schema update - NEW IN 3.1.b3 if($db->hasUTF()) { $charset = 'CHARSET=utf8'; } else { $charset = ''; } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } $sql = <<setQuery($sql); $status = $db->query(); if(!$status && ($db->getErrorNum() != 1060)) { $errors[] = $db->getErrorMsg(true); } } // Schema modification -- END // Install modules and plugins -- BEGIN // -- General settings jimport('joomla.installer.installer'); $db = & JFactory::getDBO(); $status = new JObject(); $status->modules = array(); $status->plugins = array(); if( version_compare( JVERSION, '1.6.0', 'ge' ) ) { // Thank you for removing installer features in Joomla! 1.6 Beta 13 and // forcing me to write ugly code, Joomla!... $src = dirname(__FILE__); } else { $src = $this->parent->getPath('source'); } // -- Icon module $installer = new JInstaller; $result = $installer->install($src.'/mod_akadmin'); $status->modules[] = array('name'=>'mod_akadmin','client'=>'administrator', 'result'=>$result); $query = "UPDATE #__modules SET position='icon', ordering=97, published=1 WHERE `module`='mod_akadmin'"; $db->setQuery($query); $db->query(); // -- Lazy scheduling plugin (do not enable automatically!) $installer = new JInstaller; $result = $installer->install($src.DS.'aklazy'); $status->plugins[] = array('name'=>'plg_aklazy','group'=>'system', 'result'=>$result); // Install modules and plugins -- END // Load the translation strings (Joomla! 1.5 and 1.6 compatible) if( version_compare( JVERSION, '1.6.0', 'lt' ) ) { global $j15; // Joomla! 1.5 will have to load the translation strings $j15 = true; $jlang =& JFactory::getLanguage(); $path = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_akeeba'; $jlang->load('com_akeeba.sys', $path, 'en-GB', true); $jlang->load('com_akeeba.sys', $path, $jlang->getDefault(), true); $jlang->load('com_akeeba.sys', $path, null, true); } else { $j15 = false; } if(!function_exists('pitext')) { function pitext($key) { global $j15; $string = JText::_($key); if($j15) { $string = str_replace('"_QQ_"', '"', $string); } echo $string; } } if(!function_exists('pisprint')) { function pisprint($key, $param) { global $j15; $string = JText::sprintf($key, $param); if($j15) { $string = str_replace('"_QQ_"', '"', $string); } echo $string; } } // Finally, show the installation results form ?>

", $errors); ?>

Akeeba Backup

modules)) : ?> modules as $module) : ?> plugins)) : ?> plugins as $plugin) : ?>