function addShout($sbid, $name, $url, $text, $tag, $delshouts, $user_calc, $user_Control, &$params) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-Type: text/html; charset=utf-8"); $user =& JFactory::getUser(); $userid = $user->get('id'); if ($userid > 0 && $params->get('url') == 3) { $url = "index.php?option=com_comprofiler&task=userProfile&user="******"index.php?option=com_community&view=profile&userid=" . $userid; } elseif ($userid > 0 && $params->get('url') == 4) { $url = "index.php?option=com_kunena&func=profile&userid=" . $userid; } if ($name != '' && $text != '') { $tag && $userid == 0 ? $name = '[' . $name . ']' : $name; modShoutboxHelper::jal_addData($sbid, $name, $url, $text, $delshouts, $user_calc, $user_Control, $params); } exit; }