static function DoSubToolbar() { if (!FST_Helper::Is16()) { JToolBarHelper::divider(); JToolBarHelper::help("help.php?help=admin-view-" . JRequest::getVar('view'), true); return; } if (JFactory::getUser()->authorise('core.admin', 'com_fst')) { JToolBarHelper::preferences('com_fst'); } JToolBarHelper::divider(); JToolBarHelper::help("", false, "http://www.freestyle-joomla.com/comhelp/fst/admin-view-" . JRequest::getVar('view')); $vName = JRequest::getCmd('view', 'fsts'); JSubMenuHelper::addEntry(JText::_('COM_FST_OVERVIEW'), 'index.php?option=com_fst&view=fsts', $vName == 'fsts' || $vName == ""); JSubMenuHelper::addEntry(JText::_('COM_FST_SETTINGS'), 'index.php?option=com_fst&view=settings', $vName == 'settings'); JSubMenuHelper::addEntry(JText::_('COM_FST_TEMPLATES'), 'index.php?option=com_fst&view=templates', $vName == 'templates'); JSubMenuHelper::addEntry(JText::_('COM_FST_VIEW_SETTINGS'), 'index.php?option=com_fst&view=settingsview', $vName == 'settingsview'); // JSubMenuHelper::addEntry(JText::_('COM_FST_PRODUCTS'), 'index.php?option=com_fst&view=prods', $vName == 'prods'); JSubMenuHelper::addEntry(JText::_('COM_FST_MODERATION'), 'index.php?option=com_fst&view=tests', $vName == 'tests'); // JSubMenuHelper::addEntry(JText::_('COM_FST_USERS'), 'index.php?option=com_fst&view=fusers', $vName == 'fusers'); // JSubMenuHelper::addEntry(JText::_('COM_FST_EMAIL_TEMPLATES'), 'index.php?option=com_fst&view=emails', $vName == 'emails'); // ##NOT_FAQS_END## JSubMenuHelper::addEntry(JText::_('COM_FST_ADMIN'), 'index.php?option=com_fst&view=backup', $vName == 'backup'); }
function &getData() { if (empty($this->_data)) { if (FST_Helper::Is16()) { $query = ' SELECT u.*, ' . 'CONCAT(m.username," (",m.name,")") as name ' . ' FROM #__fst_user as u ' . ' LEFT JOIN #__users as m ON u.user_id = m.id ' . ' WHERE u.id = ' . FSTJ3Helper::getEscaped($this->_db, $this->_id); } else { $query = ' SELECT u.*, ' . 'CONCAT(m.username," (",m.name,")") as name, ' . 'g.name as groupname ' . ' FROM #__fst_user as u ' . ' LEFT JOIN #__users as m ON u.user_id = m.id ' . ' LEFT JOIN #__core_acl_aro_groups as g ON u.group_id = g.id ' . ' WHERE u.id = ' . FSTJ3Helper::getEscaped($this->_db, $this->_id); } $this->_db->setQuery($query); $this->_data = $this->_db->loadObject(); } if (!$this->_data) { $this->_data = new stdClass(); $this->_data->id = 0; $this->_data->mod_kb = 0; $this->_data->mod_test = 0; $this->_data->support = 0; $this->_data->user_id = 0; $this->_data->group_id = 0; $this->_data->seeownonly = 0; $this->_data->autoassignexc = 0; $this->_data->allprods = 1; $this->_data->alldepts = 1; $this->_data->allcats = 1; $this->_data->artperm = 0; $this->_data->groups = 0; $this->_data->allprods_a = 1; $this->_data->alldepts_a = 1; $this->_data->allcats_a = 1; $this->_data->assignperms = 0; $this->_data->reports = 0; $this->name = ""; } return $this->_data; }
function display($tpl = null) { $prod =& $this->get('Data'); $isNew = $prod->id < 1; $text = $isNew ? JText::_("NEW") : JText::_("EDIT"); JToolBarHelper::title(JText::_("PRODUCT") . ': <small><small>[ ' . $text . ' ]</small></small>', 'fst_prods'); if (FST_Helper::Is16()) { JToolBarHelper::custom('translate', 'translate', 'translate', 'Translate', false); JToolBarHelper::spacer(); } JToolBarHelper::save(); if ($isNew) { JToolBarHelper::cancel(); } else { // for existing items the button is renamed `close` JToolBarHelper::cancel('cancel', 'Close'); } FSTAdminHelper::DoSubToolbar(); $this->assignRef('prod', $prod); $path = JPATH_SITE . DS . 'images' . DS . 'fst' . DS . 'products'; if (!file_exists($path)) { mkdir($path, 0777, true); } $files = JFolder::files($path, '(.png$|.jpg$|.jpeg$|.gif$)'); $sections[] = JHTML::_('select.option', '', JText::_("NO_IMAGE"), 'id', 'title'); foreach ($files as $file) { $sections[] = JHTML::_('select.option', $file, $file, 'id', 'title'); } $lists['images'] = JHTML::_('select.genericlist', $sections, 'image', 'class="inputbox" size="1" ', 'id', 'title', $prod->image); $this->assignRef('lists', $lists); parent::display($tpl); }
function FST_GetFeaturedText($ispub) { if (FSTJ3Helper::IsJ3()) { if ($ispub) { return "<i class='icon-star'></i>"; //return '<span class="state publish"><span class="text"><i class="icon-publish"></i>'.JText::_('Published').'</span></span>'; } else { return "<i class='icon-star-empty'></i>"; } } elseif (FST_Helper::Is16()) { if (!$ispub) { return '<img src="templates/bluestork/images/admin/disabled.png" alt="' . JText::_('Featured_FAQ') . '">'; //return '<span class="state featured"><span class="text">'.JText::_('Featured').'</span></span>'; } else { return '<img src="templates/bluestork/images/admin/featured.png" alt="' . JText::_('Unfeatured_FAQ') . '">'; //return '<span class="state unfeatured"><span class="text">'.JText::_('Unfeatured').'</span></span>'; } } else { $img = 'publish_g.png'; $alt = JText::_("Featured_FAQ"); if ($ispub == 0) { $img = 'publish_x.png'; $alt = JText::_("Unfeatured_FAQ"); } return '<img src="images/' . $img . '" width="16" height="16" border="0" alt="' . $alt . '" />'; } }
function EMail_AddFields(&$comment) { $comment['title'] = $this->email_title; $comment['article_type'] = $this->email_article_type; $itemid = $comment['itemid']; $item = $this->GetItem($itemid); $comment['article'] = $item[$this->field_title]; $link = FST_Helper::GetBaseURL() . FSTRoute::x(str_replace("{id}", $itemid, $this->article_link)); $comment['linkart'] = $link; }
function &getProducts() { $db = JFactory::getDBO(); $query = "SELECT * FROM #__fst_prod"; $where = array(); $where[] = "published = 1"; $where[] = "intest = 1"; if (FST_Helper::Is16()) { $user = JFactory::getUser(); $where[] = 'access IN (' . implode(',', $user->getAuthorisedViewLevels()) . ')'; } if (count($where) > 0) { $query .= " WHERE " . implode(" AND ", $where); } $db->setQuery($query); $rows = $db->loadAssocList('id'); if (!is_array($rows)) { return array(); } return $rows; }
* @copyright (C) 2013 Freestyle Joomla * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html **/ defined('_JEXEC') or die; $comm_ref = "comments_" . $this->ident; ?> <a name="<?php echo $comm_ref; ?> "></a> <?php if ($this->showheader) { ?> <div class="fst_spacer"></div> <?php echo FST_Helper::PageSubTitle("USER_COMMENTS"); } ?> <?php if ($this->opt_show_add) { ?> <div class='fst_comment_add' id='add_comment'> <?php include $this->tmplpath . DS . 'addcomment.php'; ?> </div> <div class="fst_spacer"></div> <?php }
$custom = array(); if ($this->customfields) { foreach ($this->customfields as &$field) { if (array_key_exists('custom_' . $field['id'], $this->comment)) { $val = $this->comment['custom_' . $field['id']]; $this->parser->SetVar('custom_' . $field['id'], trim($val)); if (strlen(trim($val)) > 0) { $custom[] = $val; } } } } $this->parser->SetVar('divid', "fst_comment_{$this->uid}_{$this->comment['id']}"); if (count($custom) > 0) { $this->parser->SetVar('custom', implode(", ", $custom)); } else { $this->parser->SetVar('custom', ""); } $this->comment['body'] = str_replace("\n", "<br />", $this->comment['body']); $this->parser->SetVar('created_nice', FST_Helper::Date($this->comment['created'], FST_DATETIME_SHORT)); $this->parser->SetVar('date', FST_Helper::Date($this->comment['created'], FST_DATE_SHORT)); $this->parser->SetVar('modcolor', $modcolor); $this->parser->SetVar('moderation', $moderation); $this->parser->AddVars($this->comment); if ($this->opt_max_length > 0) { if (strlen($this->comment['body']) > $this->opt_max_length) { $this->parser->SetVar('body', substr($this->comment['body'], 0, $this->opt_max_length) . "..."); } } //print_p($this->parser); echo $this->parser->Parse();
echo $this->tmpl ? FST_Helper::PageStylePopup() : FST_Helper::PageStyle(); ?> <?php echo $this->tmpl ? FST_Helper::PageTitlePopup("TESTIMONIALS", "ADD_A_TESTIMONIAL") : FST_Helper::PageTitle("TESTIMONIALS", "ADD_A_TESTIMONIAL"); ?> <div class='fst_kb_comment_add' id='add_comment'> <?php $this->comments->DisplayAdd(); ?> </div> <div id="comments"></div> <div class='fst_comments_result_<?php echo $this->comments->uid; ?> '></div> <?php $this->comments->IncludeJS(); ?> <?php include JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . '_powered.php'; ?> <?php echo $this->tmpl ? FST_Helper::PageStylePopupEnd() : FST_Helper::PageStyleEnd();
static function _($url, $xhtml = true, $ssl = null) { if (FST_Helper::Is16()) { return FSTRoute::_16($url, $xhtml, $ssl); } else { return FSTRoute::_15($url, $xhtml, $ssl); } }
<?php if ($this->errors['body']) { ?> <tr><td></td><td class='fst_must_have_field'><?php echo $this->errors['body']; ?> </td></tr><?php } ?> <tr> <th><?php echo JText::_('COMMENT_BODY'); ?> </th> <td colspan=2><textarea name='body' rows='5' cols='40' id='comment_body'><?php echo FST_Helper::escape($this->post['body']); ?> </textarea></td> </tr> <?php if ($this->captcha) { ?> <?php if ($this->errors['captcha']) { ?> <tr><td></td><td class='fst_must_have_field'><?php echo $this->errors['captcha']; ?> </td></tr><?php }
function Misc() { $log = ""; if (FST_Helper::Is16()) { // update #__updates table to have longer version field $qry = "ALTER TABLE #__updates CHANGE version version VARCHAR( 20 ) DEFAULT NULL"; $db = JFactory::getDBO(); $db->setQuery($qry); $db->Query(); } return $log; }
function GetItemData($itemids = null) { $db = JFactory::getDBO(); $qry = "SELECT {$this->field_id}, {$this->field_title}, translation FROM {$this->table} WHERE intest = 1 AND published = 1"; if ($itemids) { $ids = array(); foreach ($itemids as $id) { $ids[] = FSTJ3Helper::getEscaped($db, $id); } $qry .= " AND {$this->field_id} IN (" . implode(", ", $ids) . ")"; } $db->setQuery($qry); $this->itemdata = $db->loadAssocList($this->field_id); FST_Helper::Tr($this->itemdata); }
function &getMessages($ticketid) { $db = JFactory::getDBO(); $query = "SELECT m.*, u.name FROM #__fst_ticket_messages as m LEFT JOIN #__users as u ON m.user_id = u.id WHERE ticket_ticket_id = '" . FSTJ3Helper::getEscaped($db, $ticketid) . "'"; if (FST_Helper::getUserSetting("reverse_order")) { $query .= " ORDER BY posted ASC"; } else { $query .= " ORDER BY posted DESC"; } $db->setQuery($query); $rows = $db->loadAssocList(); return $rows; }
static function ParseMessageRows(&$messages, $ishtml) { $template = FST_EMail::Get_Template('messagerow'); $result = ""; foreach ($messages as &$message) { $vars = array(); //print_p($message); if ($message['name']) { $vars[] = FST_EMail::BuildVar('name', $message['name']); $vars[] = FST_EMail::BuildVar('email', $message['email']); $vars[] = FST_EMail::BuildVar('username', $message['username']); } else { $vars[] = FST_EMail::BuildVar('name', 'Unknown'); $vars[] = FST_EMail::BuildVar('email', 'Unknown'); $vars[] = FST_EMail::BuildVar('username', 'Unknown'); } $vars[] = FST_EMail::BuildVar('subject', $message['subject']); $vars[] = FST_EMail::BuildVar('posted', FST_Helper::Date($message['posted'])); $message['body'] = FST_Helper::ParseBBCode($message['body']); if ($ishtml) { $message['body'] = str_replace("\n", "<br>\n", $message['body']); $vars[] = FST_EMail::BuildVar('body', $message['body'] . "<br />"); } else { $vars[] = FST_EMail::BuildVar('body', $message['body'] . "\n"); } $result .= FST_EMail::ParseText($template['body'], $vars); } return $result; }
function DoPost() { $this->post['name'] = JRequest::getVar('name', '', '', 'string'); $this->post['email'] = JRequest::getVar('email', '', '', 'string'); $this->post['website'] = JRequest::getVar('website', '', '', 'string'); $this->post['body'] = JRequest::getVar('body', '', '', 'string'); $this->post['itemid'] = JRequest::getVar('itemid', 0, '', 'int'); $this->post['ident'] = JRequest::getVar('ident', 0, '', 'int'); $published = 1; if ($this->moderate) { $published = 0; } $captcha = new FST_Captcha(); $this->valid = 1; if ($this->post['name'] == "") { $this->errors['name'] = JText::_("YOU_MUST_ENTER_A_NAME"); $this->valid = 0; } if ($this->use_email && $this->post['email'] != "" && !JMailHelper::isEmailAddress($this->post['email'])) { $this->errors['email'] = JText::_("INVALID_EMAIL_ADDRESS_ENTERED"); $this->valid = 0; } if ($this->use_website && $this->post['website'] != "" && 0) { $this->errors['website'] = JText::_("INVALID_WEBSITE_ADDRESS_ENTERED"); $this->valid = 0; } if ($this->post['body'] == "") { $this->errors['body'] = JText::_("YOU_MUST_ENTER_A_COMMENT_TO_POST"); $this->valid = 0; } if ($this->handler->item_select_must_have) { if ($this->post['itemid'] == 0) { $this->errors['itemid'] = JText::_("YOU_MUST_SELECT_A") . $this->handler->email_article_type; $this->valid = 0; } } if (!$captcha->ValidateCaptcha()) { $this->errors['captcha'] = JText::_("INVALID_SECURITY_CODE"); $this->valid = 0; } if (!FSTCF::ValidateFields($this->customfields, $this->errors)) { $this->valid = 0; } $output['valid'] = $this->valid; if ($this->valid == 1) { $db = JFactory::getDBO(); $user = JFactory::getUser(); $userid = $user->id; $custom = FSTCF::Comm_StoreFields($this->customfields); $custom = serialize($custom); $now = FST_Helper::CurDate(); $qry = "INSERT INTO " . $this->table . " (ident, itemid, name, email, website, body, published, created, userid, custom) VALUES ("; $qry .= $this->post['ident']; $qry .= " , " . $this->post['itemid']; $qry .= " , '" . FSTJ3Helper::getEscaped($db, $this->post['name']); $qry .= "' , '" . FSTJ3Helper::getEscaped($db, $this->post['email']); $qry .= "' , '" . FSTJ3Helper::getEscaped($db, $this->post['website']); $qry .= "' , '" . FSTJ3Helper::getEscaped($db, $this->post['body']); $qry .= "' , {$published}, '{$now}', '" . FSTJ3Helper::getEscaped($db, $userid) . "', '" . FSTJ3Helper::getEscaped($db, $custom) . "' )"; $db->SetQuery($qry); $db->Query(); $this->comment = $this->post; $this->comment['id'] = $db->insertid(); $this->comment['ident'] = $this->post['ident']; foreach ($this->customfields as $id => $field) { $this->comment["custom_{$id}"] = JRequest::getVar("custom_{$id}", ""); JRequest::setVar("custom_{$id}", ''); } FST_EMail::Send_Comment($this); ob_clean(); if ($this->moderate) { $this->comment['published'] = 0; include $this->tmplpath . DS . 'moderate.php'; } else { if ($this->opt_show_posted_message_only) { $this->comment['published'] = 0; include $this->tmplpath . DS . 'thanks.php'; } else { $this->comment['published'] = 1; include $this->tmplpath . DS . 'thanks.php'; include $this->tmplpath . DS . 'comment.php'; } } $output['comment'] = ob_get_contents(); if ($this->opt_display) { if ($this->opt_order == 0) { $output['display'] = 'before'; } else { $output['display'] = 'after'; } } else { $output['display'] = 'none'; } if ($this->opt_show_posted_message_only) { $output['display'] = "replace"; } $this->post['name'] = $this->GetName(); $this->post['email'] = ''; $this->post['website'] = ''; $this->post['body'] = ''; $this->post['created'] = 'now'; if ($this->opt_show_form_after_post) { ob_clean(); $this->captcha = $captcha->GetCaptcha(); include $this->tmplpath . DS . 'addcomment.php'; $output['form'] = ob_get_contents(); $output['form_display'] = "replace"; } else { $output['form'] = ''; $output['form_display'] = ""; if ($this->opt_form_clear_comment) { $output['form_display'] = "clear_comment"; } } ob_clean(); echo json_encode($output); exit; } else { $output['display'] = 'none'; $output['form_display'] = "replace"; ob_clean(); $this->comment = $this->post; include $this->tmplpath . DS . 'comment.php'; $output['comment'] = ob_get_contents(); ob_clean(); $this->captcha = $captcha->GetCaptcha(); include $this->tmplpath . DS . 'addcomment.php'; $output['form'] = ob_get_contents(); ob_clean(); echo json_encode($output); exit; } return true; }
<td> <a href="<?php echo $link; ?> "><?php $body = strip_tags($row->body); if (strlen($body) > 250) { $body = substr($body, 0, 250) . "..."; } echo $body; ?> </a> </td> <td> <?php echo FST_Helper::Date($row->added, FST_DATETIME_MID); ?> </td> <td align="center"> <a href="#" class="modchage" id="comment_<?php echo $row->id; ?> " current='<?php echo $row->published; ?> '> <?php echo $published; ?> </a> </td>
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', FSTRoute::x('index.php?option=com_fst&view=backup&task=update'))); } if ($view != "" && $view != "backup") { JRequest::setVar('view', ''); } } // if bad version and controller is not fsts dont display // Create the controller $controllername = $controller; $classname = 'FstsController' . $controller; $controller = new $classname(); $css = JRoute::_(JURI::root() . "index.php?option=com_fst&view=css"); $document = JFactory::getDocument(); $document->addStyleSheet($css); $document->addStyleSheet(JURI::root() . 'administrator/components/com_fst/assets/css/main.css'); $document->addStyleSheet(JURI::root() . 'components/com_fst/assets/css/popup.css'); $document->addScript(JURI::root() . 'components/com_fst/assets/js/popup.js'); $document->addScript(JURI::root() . 'administrator/components/com_fst/assets/js/translate.js'); FST_Helper::IncludeJQuery(true); // Perform the Request task $controller->execute(JRequest::getVar('task')); // Redirect if set by the controller $controller->redirect();
?> } window.addEvent('domready', function(){ if (location.hash) { ShowTab(location.hash.replace('#','')); } else { ShowTab('general'); } <?php if (FST_Helper::Is16()) { ?> jQuery('#test_date_formats').click(function (ev) { ev.preventDefault(); var url = '<?php echo FSTRoute::x("index.php?option=com_fst&view=settings&what=testdates", false); ?> '; url += '&date_dt_short=' + encodeURIComponent(jQuery('#date_dt_short').val()); url += '&date_dt_long=' + encodeURIComponent(jQuery('#date_dt_long').val()); url += '&date_d_short=' + encodeURIComponent(jQuery('#date_d_short').val()); url += '&date_d_long=' + encodeURIComponent(jQuery('#date_d_long').val()); jQuery.get(url, function (data) {
static function getAdminPermissions() { if (empty(FST_Ticket_Helper::$_permissions)) { $mainframe = JFactory::getApplication(); global $option; $user = JFactory::getUser(); $userid = $user->id; $db = JFactory::getDBO(); $query = "SELECT * FROM #__fst_user WHERE user_id = '" . FSTJ3Helper::getEscaped($db, $userid) . "'"; $db->setQuery($query); FST_Ticket_Helper::$_permissions = $db->loadAssoc(); if (!FST_Ticket_Helper::$_permissions) { FST_Ticket_Helper::$_permissions['mod_kb'] = 0; FST_Ticket_Helper::$_permissions['mod_test'] = 0; FST_Ticket_Helper::$_permissions['support'] = 0; FST_Ticket_Helper::$_permissions['seeownonly'] = 1; FST_Ticket_Helper::$_permissions['autoassignexc'] = 1; FST_Ticket_Helper::$_permissions['allprods'] = 1; FST_Ticket_Helper::$_permissions['allcats'] = 1; FST_Ticket_Helper::$_permissions['alldepts'] = 1; FST_Ticket_Helper::$_permissions['artperm'] = 0; FST_Ticket_Helper::$_permissions['id'] = 0; FST_Ticket_Helper::$_permissions['groups'] = 0; FST_Ticket_Helper::$_permissions['reports'] = 0; FST_Ticket_Helper::$_permissions['settings'] = ''; } FST_Ticket_Helper::$_permissions['userid'] = $userid; FST_Ticket_Helper::$_perm_only = ''; FST_Ticket_Helper::$_perm_prods = ''; FST_Ticket_Helper::$_perm_depts = ''; FST_Ticket_Helper::$_perm_cats = ''; FST_Ticket_Helper::$_permissions['perm_where'] = ''; // // check for permission overrides for Joomla 1.6 if (FST_Settings::get('perm_article_joomla') || FST_Settings::get('perm_mod_joomla')) { if (FST_Helper::Is16()) { $newart = 0; $newmod = 0; $user = JFactory::getUser(); if ($user->authorise('core.edit.own', 'com_fst')) { $newart = 1; } if ($user->authorise('core.edit', 'com_fst')) { $newart = 2; $newmod = 1; } if ($user->authorise('core.edit.state', 'com_fst')) { $newart = 3; $newmod = 1; } if (FST_Settings::get('perm_article_joomla') && $newart > FST_Ticket_Helper::$_permissions['artperm']) { FST_Ticket_Helper::$_permissions['artperm'] = $newart; } if (FST_Settings::get('perm_mod_joomla') && $newmod > FST_Ticket_Helper::$_permissions['mod_kb']) { FST_Ticket_Helper::$_permissions['mod_kb'] = $newmod; } // } else { $newart = 0; $newmod = 0; $user = JFactory::getUser(); if ($user->authorize('com_fst', 'create', 'content', 'own')) { $newart = 1; } if ($user->authorize('com_fst', 'edit', 'content', 'own')) { $newart = 2; $newmod = 1; } if ($user->authorize('com_fst', 'publish', 'content', 'all')) { $newart = 3; $newmod = 1; } if (FST_Settings::get('perm_article_joomla') && $newart > FST_Ticket_Helper::$_permissions['artperm']) { FST_Ticket_Helper::$_permissions['artperm'] = $newart; } if (FST_Settings::get('perm_mod_joomla') && $newmod > FST_Ticket_Helper::$_permissions['mod_kb']) { FST_Ticket_Helper::$_permissions['mod_kb'] = $newmod; } } } } return FST_Ticket_Helper::$_permissions; }
function ParserPopulateTicket(&$parser, $row) { $parser->Clear(); if ($row) { $parser->SetVar('ref', $row['reference']); $parser->SetVar('subject', "<a href='" . FSTRoute::_('index.php?option=com_fst&view=admin&layout=support&ticketid=' . $row['id']) . "'>" . $row['title'] . "</a>"); $parser->SetVar("status", "<span style='color:" . $row['color'] . ";'>" . $row['status'] . "</span>"); if ($row['user_id'] == 0) { $name = $row['unregname'] . " (" . JText::_("UNREG") . ")"; } else { $name = $row['name']; } $parser->SetVar("name", $name); $parser->SetVar("lastactivity", FST_Helper::Date($row['lastupdate'], FST_DATETIME_SHORT)); $parser->SetVar("opened", FST_Helper::Date($row['opened'], FST_DATETIME_SHORT)); $parser->SetVar("closed", FST_Helper::Date($row['closed'], FST_DATETIME_SHORT)); $parser->SetVar("department", $row['department']); $parser->SetVar("category", $row['category']); $parser->SetVar("product", $row['product']); $parser->SetVar("priority", "<span style='color:" . $row['pricolor'] . ";'>" . $row['priority'] . "</span>"); $groups = implode(", ", $row['groups']); $parser->SetVar('groups', $groups); $parser->SetVar('deletebutton', 'deletebutton'); $parser->SetVar('archivebutton', 'archivebutton'); if (array_key_exists("custom", $row)) { $allcustom = array(); if (count($row['custom']) > 0) { foreach ($row['custom'] as $id => $value) { if (array_key_exists($id, $this->customfields)) { $field = $this->customfields[$id]; if ($field['type'] == "plugin") { $aparams = FSTCF::GetValues($field); if (array_key_exists("plugin", $aparams) && array_key_exists("plugindata", $aparams)) { $plugin = FSTCF::get_plugin($aparams['plugin']); $value = $plugin->Display($value, $aparams['plugindata'], array('ticketid' => $row['id'], 'userid' => $row['user_id'], 'ticket' => $row), $field['id']); } } $text = "<span class='fst_support_fieldname'>" . $this->customfields[$id]['description'] . "</span>"; if ($this->customfields[$id]['type'] == "checkbox") { if ($value == "on") { $text .= ": " . JText::_("Yes"); } else { $text .= ": " . JText::_("No"); } } else { $text .= ": " . $value; } $parser->SetVar("custom" . $id, $text); $allcustom[] = $text; } } } //echo "All custom : " . implode(", ",$allcustom) . "<br>"; $parser->SetVar("custom", implode(", ", $allcustom)); } if ($row['assigned'] == '') { $parser->SetVar('handlername', JText::_("UNASSIGNED")); } else { $parser->SetVar('handlername', $row['assigned']); } $parser->SetVar('username', $row['username']); $parser->SetVar('email', $row['useremail']); $parser->SetVar('handlerusername', $row['handlerusername']); $parser->SetVar('handleremail', $row['handleremail']); $icons = ""; if (FST_Settings::get('support_show_msg_counts')) { $icons .= "<span>"; $icons .= "<span style='font-weight:normal;top:-2px;position:relative;padding-right:2px;'>" . $row['msgcount']['total'] . "</span><span style='font-weight:normal;top:-2px;position:relative;padding-right:2px;'>x</span><img src='" . JURI::root(true) . "/components/com_fst/assets/images/messages.png'>"; $icons .= "</span>"; } $cotime = $this->db_time - strtotime($row['checked_out_time']); if ($cotime < FST_Settings::get('support_lock_time') && $row['checked_out'] != $this->userid && $row['checked_out'] > 0) { $html = "<div class='fst_user_tt'>" . $row['co_user']->name . " (" . $row['co_user']->email . ")</div>"; $icons .= "<img class='fsj_tip' src='" . JURI::root(true) . "/components/com_fst/assets/images/lock.png' title=\"" . JText::_('TICKET_LOCKED') . "::" . $html . "\">"; } else { $icons .= "<img src='" . JURI::root(true) . "/components/com_fst/assets/images/blank_16.png'>"; } if (!FST_Settings::get('support_hide_tags')) { if (isset($row['tags'])) { $html = ""; foreach ($row['tags'] as $tag) { $html .= "<div class='fst_tag_tt'>" . $tag['tag'] . "</div>"; } $icons .= "<img class='fsj_tip' src='" . JURI::root(true) . "/components/com_fst/assets/images/tag.png' title=\"" . JText::_('TICKET_TAGS') . "::" . $html . "\">"; } else { $icons .= "<img src='" . JURI::root(true) . "/components/com_fst/assets/images/blank_16.png'>"; } } if (isset($row['attach'])) { $html = "<table class='fst_attach_tt'>"; foreach ($row['attach'] as $attach) { $html .= "<tr style='border:0px;'><td nowrap style='border:0px;'>" . $attach['filename'] . " </td><td nowrap style='border:0px;'> " . FST_Helper::display_filesize($attach['size']) . "</td></tr>"; } $html .= "<table>"; $icons .= "<img class='fsj_tip' src='" . JURI::root(true) . "/components/com_fst/assets/images/attach.png' title=\"" . JText::_('TICKET_ATTACHMENTS') . "::" . $html . "\">"; } else { $icons .= "<img src='" . JURI::root(true) . "/components/com_fst/assets/images/blank_16.png'>"; } $parser->SetVar('icons', $icons); $delete = "<a href='" . FSTRoute::x('index.php?option=com_fst&view=admin&layout=support&tickets=' . JRequest::getVar('tickets') . '&delete=' . $row['id']) . "'>"; $delete .= "<img src='" . JURI::root(true) . "/components/com_fst/assets/images/delete_ticket.png'>"; $delete .= JText::_("DELETE") . "</a>"; $archive = "<a href='" . FSTRoute::x('index.php?option=com_fst&view=admin&layout=support&tickets=' . JRequest::getVar('tickets') . '&archive=' . $row['id']) . "'>"; $archive .= "<img src='" . JURI::root(true) . "/components/com_fst/assets/images/archive_ticket.png'>"; $archive .= JText::_("ARCHIVE") . "</a>"; $parser->SetVar('archivebutton', $archive); $parser->SetVar('deletebutton', $delete); // TODO: trhl /*id='ticket_<?php echo $ticket['id'];?>' onmouseover="$('ticket_<?php echo $ticket['id'];?>').style.background = '<?php echo FST_Settings::get('css_hl'); ?>';$('ticket_<?php echo $ticket['id'];?>_2').style.background = '<?php echo FST_Settings::get('css_hl'); ?>';" onmouseout="$('ticket_<?php echo $ticket['id'];?>').style.background = '';$('ticket_<?php echo $ticket['id'];?>_2').style.background = '';"*/ $this->_permissions = FST_Ticket_Helper::getAdminPermissions(); $type = "unassigned"; if ($row['admin_id'] == $this->_permissions['id']) { $type = "mine"; } else { if ($row['admin_id'] > 0) { $type = "other"; } } $style = ""; if (array_key_exists($row['ticket_pri_id'], $this->priorities)) { $pri = $this->priorities[$row['ticket_pri_id']]; if ($pri['backcolor']) { $style .= "background-color: {$pri['backcolor']};"; } } $handler_highlight = "ticket_type_{$type}"; $parser->SetVar('handler_highlight', $handler_highlight); $trhl = " class='ticket_{$row['id']} ' onmouseover='highlightticket({$row['id']})' onmouseout='unhighlightticket({$row['id']})' "; if (FST_Settings::get('support_entire_row')) { $style .= "cursor: pointer;"; $trhl .= " onclick='window.location=\"" . FSTRoute::x('&limitstart=&ticketid=' . $row['id']) . "\"' "; } $trhl .= " style='{$style}' "; $parser->SetVar('trhl', $trhl); } $parser->SetVar("showassigned", $this->showassigned); $parser->SetVar("hidehandler", FST_Settings::get('support_hide_handler')); $parser->SetVar("candelete", FST_Settings::get('support_delete')); $parser->SetVar("view", $this->ticket_view); }
echo JText::_('THERE_ARE_NO_TESTIMONIALS_TO_DISPLAY'); ?> </div> <?php } } $this->comments->IncludeJS(); ?> <?php include JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . '_powered.php'; ?> <?php echo FST_Helper::PageStyleEnd(); $scrollf = FST_Helper::Is16() ? "start" : "scrollTo"; ?> <?php if ($this->test_show_prod_mode == "accordian") { ?> <script> window.addEvent('domready', function() { if(window.ie6) var heightValue='100%'; else var heightValue=''; var togglerName='div.accordion_toggler_'; var contentName='div.accordion_content_'; var acc_elem = null;
?> <?php if ($product['title'] != "") { ?> <?php echo JText::_('NO_GENERAL_TESTS'); ?> <?php } else { ?> <?php echo JText::_('THERE_ARE_NO_TESTIMONIALS_TO_DISPLAY'); ?> <?php } ?> <?php } else { ?> <?php echo JText::_('NO_TESTS_FOR_PRODUCT'); ?> <?php } } include JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . '_powered.php'; ?> <?php echo FST_Helper::PageStyleEnd();
static function _GetDefaults() { global $fst_settings; if (empty($fst_settings)) { $fst_settings = array(); $fst_settings['version'] = 0; $fst_settings['fsj_username'] = ''; $fst_settings['fsj_apikey'] = ''; $fst_settings['jquery_include'] = "auto"; $fst_settings['perm_mod_joomla'] = 0; $fst_settings['perm_article_joomla'] = 0; $fst_settings['captcha_type'] = 'none'; $fst_settings['recaptcha_public'] = ''; $fst_settings['recaptcha_private'] = ''; $fst_settings['recaptcha_theme'] = 'red'; $fst_settings['comments_moderate'] = 'none'; $fst_settings['comments_hide_add'] = 1; $fst_settings['email_on_comment'] = ''; $fst_settings['comments_who_can_add'] = 'anyone'; $fst_settings['test_use_email'] = 1; $fst_settings['test_use_website'] = 1; $fst_settings['commnents_use_email'] = 1; $fst_settings['commnents_use_website'] = 1; $fst_settings['hide_powered'] = 0; $fst_settings['announce_use_content_plugins'] = 0; $fst_settings['announce_use_content_plugins_list'] = 0; $fst_settings['announce_comments_allow'] = 1; $fst_settings['announce_comments_per_page'] = 0; $fst_settings['announce_per_page'] = 10; $fst_settings['kb_rate'] = 1; $fst_settings['kb_comments'] = 1; $fst_settings['kb_view_top'] = 0; $fst_settings['kb_show_views'] = 1; $fst_settings['kb_show_recent'] = 1; $fst_settings['kb_show_recent_stats'] = 1; $fst_settings['kb_show_viewed'] = 1; $fst_settings['kb_show_viewed_stats'] = 1; $fst_settings['kb_show_rated'] = 1; $fst_settings['kb_show_rated_stats'] = 1; $fst_settings['kb_show_dates'] = 1; $fst_settings['kb_use_content_plugins'] = 0; $fst_settings['kb_show_art_related'] = 1; $fst_settings['kb_show_art_products'] = 1; $fst_settings['kb_show_art_attach'] = 1; $fst_settings['kb_contents'] = 1; $fst_settings['kb_smaller_subcat_images'] = 0; $fst_settings['kb_comments_per_page'] = 0; $fst_settings['kb_prod_per_page'] = 5; $fst_settings['kb_art_per_page'] = 10; $fst_settings['kb_print'] = 1; $fst_settings['test_moderate'] = 'none'; $fst_settings['test_email_on_submit'] = ''; $fst_settings['test_allow_no_product'] = 1; $fst_settings['test_who_can_add'] = 'anyone'; $fst_settings['test_hide_empty_prod'] = 1; $fst_settings['test_comments_per_page'] = 0; $fst_settings['skin_style'] = 0; $fst_settings['support_entire_row'] = 0; $fst_settings['support_autoassign'] = 0; $fst_settings['support_assign_open'] = 0; $fst_settings['support_assign_reply'] = 0; $fst_settings['support_user_attach'] = 1; $fst_settings['support_lock_time'] = 30; $fst_settings['support_show_msg_counts'] = 1; $fst_settings['support_reference'] = "4L-4L-4L"; $fst_settings['support_list_template'] = "classic"; $fst_settings['support_custom_register'] = ""; $fst_settings['support_no_logon'] = 0; $fst_settings['support_no_register'] = 0; $fst_settings['support_info_cols'] = 1; $fst_settings['support_actions_as_buttons'] = 0; $fst_settings['support_choose_handler'] = 'none'; $fst_settings['support_dont_check_dupe'] = 1; $fst_settings['support_admin_refresh'] = 0; $fst_settings['support_only_admin_open'] = 0; $fst_settings['support_user_reply_width'] = 56; $fst_settings['support_user_reply_width'] = 56; $fst_settings['support_admin_reply_width'] = 56; $fst_settings['support_admin_reply_height'] = 10; $fst_settings['ticket_label_width'] = 100; $fst_settings['support_next_prod_click'] = 1; $fst_settings['support_subject_size'] = 35; $fst_settings['support_subject_message_hide'] = ''; $fst_settings['support_filename'] = 0; $fst_settings['support_subject_at_top'] = 0; $fst_settings['support_tabs_allopen'] = 0; $fst_settings['support_tabs_allclosed'] = 0; $fst_settings['support_tabs_all'] = 0; $fst_settings['ticket_prod_per_page'] = 5; $fst_settings['ticket_per_page'] = 10; $fst_settings['support_restrict_prod'] = 0; $fst_settings['css_hl'] = '#f0f0f0'; $fst_settings['css_tb'] = '#ffffff'; $fst_settings['css_bo'] = '#e0e0e0'; $fst_settings['display_head'] = ''; $fst_settings['display_foot'] = ''; $fst_settings['use_joomla_page_title_setting'] = 0; $fst_settings['title_prefix'] = 1; $fst_settings['content_unpublished_color'] = '#FFF0F0'; if (FST_Helper::Is16()) { $fst_settings['display_h1'] = '<h1>$1</h1>'; $fst_settings['display_h2'] = '<h2>$1</h2>'; $fst_settings['display_h3'] = '<h3>$1</h3>'; $fst_settings['display_popup'] = '<h2>$1</h2>'; $fst_settings['display_style'] = '.fst_main tr, td { border: none; padding: 1px; }'; $fst_settings['display_popup_style'] = '.fst_popup tr, td { border: none; padding: 1px; }'; } else { $fst_settings['display_h1'] = '<div class="component-header"><div class="componentheading">$1</div></div>'; $fst_settings['display_h2'] = '<div class="fst_spacer contentheading">$1</div>'; $fst_settings['display_h3'] = '<div class="fst_admin_create">$1</div>'; $fst_settings['display_popup'] = '<div class="component-header"><div class="componentheading">$1</div></div>'; $fst_settings['display_style'] = ''; $fst_settings['display_popup_style'] = ''; } $fst_settings['support_email_on_create'] = 0; $fst_settings['support_email_handler_on_create'] = 0; $fst_settings['support_email_on_reply'] = 0; $fst_settings['support_email_handler_on_reply'] = 0; $fst_settings['support_email_handler_on_forward'] = 0; $fst_settings['support_email_on_close'] = 0; $fst_settings['support_email_all_admins'] = 0; $fst_settings['support_email_all_admins_only_unassigned'] = 0; $fst_settings['support_email_all_admins_ignore_auto'] = 0; $fst_settings['support_email_all_admins_can_view'] = 0; $fst_settings['support_user_can_close'] = 1; $fst_settings['support_user_can_reopen'] = 1; $fst_settings['support_advanced'] = 1; $fst_settings['support_allow_unreg'] = 0; $fst_settings['support_delete'] = 1; $fst_settings['support_advanced_default'] = 0; $fst_settings['support_sceditor'] = 1; $fst_settings['support_altcat'] = 0; $fst_settings['support_cronlog_keep'] = 5; $fst_settings['support_hide_priority'] = 0; $fst_settings['support_hide_handler'] = 0; $fst_settings['support_hide_users_tickets'] = 0; $fst_settings['support_hide_tags'] = 0; $fst_settings['support_email_unassigned'] = ''; $fst_settings['support_email_admincc'] = ''; $fst_settings['support_email_from_name'] = ''; $fst_settings['support_email_from_address'] = ''; $fst_settings['support_email_site_name'] = ''; $fst_settings['support_ea_check'] = 0; $fst_settings['support_ea_all'] = 0; $fst_settings['support_ea_reply'] = 0; $fst_settings['support_ea_type'] = 0; $fst_settings['support_ea_host'] = ''; $fst_settings['support_ea_port'] = ''; $fst_settings['support_ea_username'] = ''; $fst_settings['support_ea_password'] = ''; $fst_settings['support_ea_mailbox'] = ''; $fst_settings['support_user_message'] = '#c0c0ff'; $fst_settings['support_admin_message'] = '#c0ffc0'; $fst_settings['support_private_message'] = '#ffc0c0'; $fst_settings['support_basic_name'] = ''; $fst_settings['support_basic_username'] = ''; $fst_settings['support_basic_email'] = ''; $fst_settings['support_basic_messages'] = ''; $fst_settings['glossary_faqs'] = 1; $fst_settings['glossary_kb'] = 1; $fst_settings['glossary_announce'] = 1; $fst_settings['glossary_link'] = 1; $fst_settings['glossary_title'] = 0; $fst_settings['glossary_use_content_plugins'] = 0; $fst_settings['glossary_ignore'] = ''; $fst_settings['glossary_exclude'] = "a,script,pre,h1,h2,h3,h4,h5,h6"; $fst_settings['faq_popup_width'] = 650; $fst_settings['faq_popup_height'] = 375; $fst_settings['faq_popup_inner_width'] = 0; $fst_settings['faq_use_content_plugins'] = 0; $fst_settings['faq_use_content_plugins_list'] = 0; $fst_settings['faq_per_page'] = 10; $fst_settings['faq_cat_prefix'] = 1; // 1.9 comments stuff $fst_settings['comments_announce_use_custom'] = 0; $fst_settings['comments_kb_use_custom'] = 0; $fst_settings['comments_test_use_custom'] = 0; $fst_settings['comments_general_use_custom'] = 0; $fst_settings['comments_testmod_use_custom'] = 0; $fst_settings['announce_use_custom'] = 0; $fst_settings['announcemod_use_custom'] = 0; $fst_settings['announcesingle_use_custom'] = 0; // date format stuff $fst_settings['date_dt_short'] = ''; $fst_settings['date_dt_long'] = ''; $fst_settings['date_d_short'] = ''; $fst_settings['date_d_long'] = ''; $fst_settings['timezone_offset'] = 0; $fst_settings['mainmenu_moderate'] = 1; $fst_settings['mainmenu_support'] = 1; } }
<?php if ($this->errors['body']) { ?> <tr><td></td><td class='fst_must_have_field'><?php echo $this->errors['body']; ?> </td></tr><?php } ?> <tr> <th><?php echo JText::_('COMMENT_BODY'); ?> </th> <td colspan=2><textarea name='body' rows='5' cols='40' id='comment_body'><?php echo FST_Helper::escape($this->comment['body']); ?> </textarea></td> </tr> <tr> <td></td> <td> <input type=submit value='<?php echo JText::_('SAVE_COMMENT'); ?> ' id='addcomment'> <input type=submit value='<?php echo JText::_('CANCEL'); ?> ' id='canceledit' uid='<?php echo $this->uid;
function displayAllProducts() { $this->products = $this->get('Products'); if (!is_array($this->products)) { $this->products = array(); } FST_Helper::Tr($this->products); $this->showresult = 1; $mainframe = JFactory::getApplication(); $pathway =& $mainframe->getPathway(); if (FST_Helper::NeedBaseBreadcrumb($pathway, array('view' => 'test'))) { $pathway->addItem(JText::_('TESTIMONIALS'), FSTRoute::x('index.php?option=com_fst&view=test')); } if (FST_Settings::get('test_allow_no_product')) { $noproduct = array(); $noproduct['id'] = 0; $noproduct['title'] = JText::_('GENERAL_TESTIMONIALS'); $noproduct['description'] = ''; $noproduct['image'] = '/components/com_fst/assets/images/generaltests.png'; $this->products = array_merge(array($noproduct), $this->products); } if ($this->test_show_prod_mode != "list") { $idlist = array(); if (count($this->products) > 0) { foreach ($this->products as &$prod) { $prod['comments'] = array(); $idlist[] = $prod['id']; } } // not in normal list mode, get comments for each product $this->comments->itemid = $idlist; $this->comments->GetComments(); foreach ($this->comments->_data as &$data) { if ($data['itemid'] > 0) { $this->products[$data['itemid']]['comments'][] =& $data; } } } parent::display(); }
* @author Freestyle Joomla * @copyright (C) 2013 Freestyle Joomla * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html **/ defined('_JEXEC') or die; if (!defined("DS")) { define('DS', DIRECTORY_SEPARATOR); } if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . 'helper' . DS . 'helper.php')) { require_once JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . 'helper' . DS . 'j3helper.php'; require_once JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . 'helper' . DS . 'helper.php'; require_once JPATH_SITE . DS . 'components' . DS . 'com_fst' . DS . 'helper' . DS . 'comments.php'; $css = JRoute::_("index.php?option=com_fst&view=css&layout=default"); $document = JFactory::getDocument(); $document->addStyleSheet($css); FST_Helper::IncludeJQuery(); $document->addScript(JURI::base() . 'components/com_fst/assets/js/jquery.autoscroll.js'); $db = JFactory::getDBO(); JHTML::_('behavior.modal', 'a.fst_modal'); //JHTML::_('behavior.mootools'); $prodid = $params->get('prodid'); $dispcount = $params->get('dispcount'); $listtype = $params->get('listtype'); $maxlength = $params->get('maxlength'); $showmore = $params->get('show_more'); $showadd = $params->get('show_add'); $maxheight = $params->get('maxheight'); $comments = new FST_Comments("test", $prodid); $comments->template = "comments_testmod"; if (FST_Settings::get('comments_testmod_use_custom')) { $comments->template_type = 2;
static function FieldInput(&$field, &$errors, $errortype = "ticket", $context = array()) { $output = ""; $id = $field['id']; $userid = 0; if (array_key_exists('userid', $context)) { $userid = $context['userid']; } $ticketid = 0; if (array_key_exists('ticketid', $context)) { $ticketid = $context['ticketid']; } // if its a per user field, try to load the value $current = $field['default']; if ($field['peruser'] && $errortype == "ticket") { $uservalues = FSTCF::GetUserValues($userid, $ticketid); if (array_key_exists($field['id'], $uservalues)) { $current = $uservalues[$field['id']]['value']; } } $current = JRequest::getVar("custom_{$id}", $current); if ($field['type'] == "text") { $aparams = FSTCF::GetValues($field); $text_max = $aparams['text_max']; $text_size = $aparams['text_size']; $output = "<input name='custom_{$id}' id='custom_{$id}' value=\"" . FST_Helper::escape($current) . "\" maxlength='{$text_max}' size='{$text_size}'>\n"; } if ($field['type'] == "radio") { $values = FSTCF::GetValues($field); $output = ""; if (count($values) > 0) { foreach ($values as $value) { $output .= "<input type='radio' id='custom_{$id}' name='custom_{$id}' value=\"" . FST_Helper::escape($value) . "\""; if ($value == $current) { $output .= " checked"; } $output .= ">{$value}<br>\n"; } } } if ($field['type'] == "combo") { $values = FSTCF::GetValues($field); $output = "<select name='custom_{$id}' id='custom_{$id}'>\n"; $output .= "<option value=''>" . JText::_("PLEASE_SELECT") . "</option>\n"; if (count($values) > 0) { foreach ($values as $value) { $output .= "<option value=\"" . FST_Helper::escape($value) . "\""; if ($value == $current) { $output .= " selected"; } $output .= ">{$value}</option>\n"; } } $output .= "</select>"; } if ($field['type'] == "area") { $aparams = FSTCF::GetValues($field); $area_width = $aparams['area_width']; $area_height = $aparams['area_height']; $output = "<textarea name='custom_{$id}' id='custom_{$id}' cols='{$area_width}' rows='{$area_height}' style='width:95%'>{$current}</textarea>\n"; } if ($field['type'] == "checkbox") { $output = "<input type='checkbox' name='custom_{$id}' id='custom_{$id}'"; if ($current == "on") { $output .= " checked"; } $output .= ">\n"; } if ($field['type'] == "plugin") { $aparams = FSTCF::GetValues($field); $plugin = FSTCF::get_plugin($aparams['plugin']); $output = $plugin->Input($current, $aparams['plugindata'], $context, $id); } $id = "custom_" . $field['id']; if (array_key_exists($id, $errors)) { if ($errortype == "ticket") { $output .= '<div class="fst_ticket_error" id="error_subject">' . $errors[$id] . '</div>'; } else { $output .= '</td><td class="fst_must_have_field">' . $errors[$id]; } } return $output; }
<?php /** * @package Freestyle Joomla * @author Freestyle Joomla * @copyright (C) 2013 Freestyle Joomla * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html **/ defined('_JEXEC') or die; ?> <div class="fst_spacer"></div> <?php echo FST_Helper::PageSubTitle('MODERATE'); ?> <div class="fst_spacer"></div> <?php echo JText::_('Comments:'); ?> <?php echo $this->whatcomm; ?> <?php // ?> <button onclick='fst_moderate_refresh(); return false;'><?php echo JText::_('REFRESH'); ?> </button>
function testdate($date, $format) { $date = new JDate($date, new DateTimeZone("UTC")); $date->setTimezone(FST_Helper::getTimezone()); return $date->format($format, true); }