Exemple #1
0
 function keywords_update_stat()
 {
     $db =& JFactory::getDBO();
     require_once "classes/Keywords.php";
     $sql = "SELECT domain, google_server FROM #__seoboss_settings";
     $db->setQuery($sql);
     $cfg = $db->loadObject();
     $site = $cfg->domain;
     $google_url = $cfg->google_server;
     $lang = "en";
     $ids = JRequest::getVar('cid', array(), '', 'array');
     $keywords = new Keywords();
     $keywords->updateKeywordsByIds($site, $google_url, $lang, $ids);
     $this->setRedirect('index.php?option=com_seoboss&task=keywords_view');
 }