?> <iframe id="frame_help" height="600" width="100%" frameborder="0" border="0"></iframe> <?php echo $pane->endPanel(); echo $pane->endPane(); } ?> </td> </tr> </table> <script> jQuery(document).ready(function () { jQuery('#frame_version').attr('src',"http://freestyle-joomla.com/latestversion-fsf?ver=<?php echo FSFAdminHelper::GetVersion(); ?> "); jQuery('#frame_version').load(function() { jQuery('#please_wait').remove(); }); jQuery('.fsf_main_item').mouseenter(function () { jQuery(this).css('background-color', '<?php echo FSF_Settings::get('css_hl'); ?> '); }); jQuery('.fsf_main_item').mouseleave(function () { jQuery(this).css('background-color' ,'transparent');
function UpdateVersion($path) { $version = FSFAdminHelper::GetVersion($path); $db = JFactory::getDBO(); $qry = "REPLACE INTO #__fsf_settings (setting, value) VALUES ('version', '{$version}')"; $db->SetQuery($qry); $db->Query(); //echo $qry."<br>"; $log = "Updating version to {$version}\n"; return $log; }
require_once $path; } else { $controller = ''; } } if (!function_exists("print_p")) { function print_p($var) { echo "<pre>"; print_r($var); echo "</pre>"; } } // do version check $ver_inst = FSFAdminHelper::GetInstalledVersion(); $ver_files = FSFAdminHelper::GetVersion(); if (FSF_Helper::Is16()) { if (!JFactory::getUser()->authorise('core.manage', 'com_fsf')) { return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR')); } } // if bad version display warning message if ($ver_files != $ver_inst) { $task = JRequest::getVar('task'); $view = JRequest::getVar('view'); if ($task != "update" || $view != "backup") { JError::raiseWarning(100, JText::sprintf('INCORRECT_VERSION', FSFRoute::x('index.php?option=com_fsf&view=backup&task=update'))); } if ($view != "" && $view != "backup") { JRequest::setVar('view', ''); }