function updateAdditionalInfo() { $template = JRequest::getCmd('template'); if (!$template) { exit; } $host = 'www.joomlart.com'; $path = "/jatc/getinfo.php"; $req = 'template=' . $template; $URL = "{$host}{$path}"; require_once dirname(__FILE__) . DS . 'admin' . DS . 'util.php'; if (!function_exists('curl_version')) { if (!ini_get('allow_url_fopen')) { echo JText::_('Sorry, but your server does not currently support open method. Please contact the network administrator system for help.'); exit; } else { $result = JAT3_AdminUtil::socket_getdata($host, $path, $req); } } else { $result = JAT3_AdminUtil::curl_getdata($URL, $req); } echo $result; exit; }