function rss_filter($v) { $v = showIn($v, 'page'); $v = clearSCs($v); # Short Code Formatting $scr = new lethe(); $rss_str = $scr->shortReplaces(array($v)); $rss_str = '<![CDATA[' . $rss_str[0] . ']]>'; return $rss_str; }
echo $rssfeed; } } else { if ($pos == 'web') { $opCamp = $myconn->prepare("SELECT * FROM " . db_table_pref . "campaigns WHERE campaign_key=? AND webOpt=1") or die(mysqli_error($myconn)); $opCamp->bind_param('s', $id); $opCamp->execute(); $opCamp->store_result(); if ($opCamp->num_rows != 0) { $sr = new Statement_Result($opCamp); $opCamp->fetch(); $campData = $sr->Get('details'); $campTitle = $sr->Get('subject'); $campTitle = clearSCs($campTitle); # Clear Some Short Codes $campData = clearSCs($campData, true); # Clear Some Short Codes $opSC = new lethe(); $opSC->OID = $sr->Get('OID'); # Load Organization Data $orgSets = array(); if (!$opSC->loadOrg($sr->Get('OID'))) { $orgSets['set_public_key'] = ''; } $LETHE_ORG_SETS['set_org_name'] = $orgSets['set_org_name']; # Short Codes $campDataSC = $opSC->shortReplaces(array($campData)); if (is_array($campDataSC) && count($campDataSC) != 0) { foreach ($campDataSC as $k => $v) { $campData = $v; }