当前位置: 首页>>代码示例>>PHP>>正文


PHP kunena_htmlspecialchars函数代码示例

本文整理汇总了PHP中kunena_htmlspecialchars函数的典型用法代码示例。如果您正苦于以下问题:PHP kunena_htmlspecialchars函数的具体用法?PHP kunena_htmlspecialchars怎么用?PHP kunena_htmlspecialchars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了kunena_htmlspecialchars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: showChildren

function showChildren($category, $prefix = "", &$allow_forum)
{
    $kunena_db =& JFactory::getDBO();
    $kunena_db->setQuery("SELECT id, name, parent FROM #__fb_categories WHERE parent='{$category}' AND published='1' ORDER BY ordering");
    $forums = $kunena_db->loadObjectList();
    check_dberror("Unable to load categories.");
    foreach ($forums as $forum) {
        if (in_array($forum->id, $allow_forum)) {
            echo "<option value=\"{$forum->id}\">{$prefix} " . kunena_htmlspecialchars($forum->name) . "</option>";
        }
        showChildren($forum->id, $prefix . "---", $allow_forum);
    }
}
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:13,代码来源:showcat.php

示例2: KUNENA_GetAvailableForums

function KUNENA_GetAvailableForums($catid, $action, $options = array(), $disabled, $multiple = 0)
{
    $kunena_db =& JFactory::getDBO();
    $list = JJ_categoryArray();
    $this_treename = '';
    foreach ($list as $item) {
        if ($this_treename) {
            if ($item->id != $catid && strpos($item->treename, $this_treename) === false) {
                $options[] = JHTML::_('select.option', $item->id, kunena_htmlspecialchars($item->treename));
            }
        } else {
            if ($item->id != $catid) {
                $options[] = JHTML::_('select.option', $item->id, kunena_htmlspecialchars($item->treename));
            } else {
                $this_treename = "{$item->treename}/";
            }
        }
    }
    $tag_attribs = 'class="inputbox fbs" ' . ($multiple ? ' size="5" MULTIPLE ' : ' size="1" ') . ($disabled ? " disabled " : "");
    $parent = JHTML::_('select.genericlist', $options, 'catid', $tag_attribs, 'value', 'text', $catid, 'KUNENA_AvailableForums');
    return $parent;
}
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:22,代码来源:class.kunena.php

示例3: kunena_htmlspecialchars

        echo $fbURL;
        ?>
"> <?php 
        echo kunena_htmlspecialchars(stripslashes($item->subject));
        ?>
 </a>

                </td>

                <td class = "td-3 fbm" align="left">

                        <a  class="fb-topic-cat fbm" href = "<?php 
        echo $fbCatURL;
        ?>
"> <?php 
        echo kunena_htmlspecialchars(stripslashes($item->catname));
        ?>
</a>

                </td>

                <td class = "td-4 fbm" align="center"><?php 
        echo $item->threadhits;
        ?>
                </td>

                <td class = "td-5  fbs" align="left">
                  <div class="fb-latest-subject-date fbs">
<?php 
        echo '' . date(_DATETIME, $item->time) . '';
        ?>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:forummsg.php

示例4: listThreadHistory

function listThreadHistory($id, $fbConfig, $kunena_db)
{
    if ($id != 0) {
        //get the parent# for the post on which 'reply' or 'quote' is chosen
        $kunena_db->setQuery("SELECT parent FROM #__fb_messages WHERE id='{$id}'");
        $this_message_parent = $kunena_db->loadResult();
        //Get the thread# for the same post
        $kunena_db->setQuery("SELECT thread FROM #__fb_messages WHERE id='{$id}'");
        $this_message_thread = $kunena_db->loadResult();
        //determine the correct thread# for the entire thread
        if ($this_message_parent == 0) {
            $thread = $id;
        } else {
            $thread = $this_message_thread;
        }
        //get all the messages for this thread
        $kunena_db->setQuery("SELECT * FROM #__fb_messages AS m LEFT JOIN #__fb_messages_text AS t ON m.id=t.mesid WHERE (thread='{$thread}' OR id='{$thread}') AND hold='0' ORDER BY time DESC LIMIT " . $fbConfig->historylimit);
        $messages = $kunena_db->loadObjectList();
        check_dberror("Unable to load messages.");
        //and the subject of the first thread (for reference)
        $kunena_db->setQuery("SELECT subject FROM #__fb_messages WHERE id='{$thread}' and parent='0'");
        $this_message_subject = $kunena_db->loadResult();
        check_dberror("Unable to load messages.");
        echo "<b>" . _POST_TOPIC_HISTORY . ":</b> " . kunena_htmlspecialchars(stripslashes($this_message_subject)) . " <br />" . _POST_TOPIC_HISTORY_MAX . " {$fbConfig->historylimit} " . _POST_TOPIC_HISTORY_LAST . "<br />";
        ?>

        <table border = "0" cellspacing = "1" cellpadding = "3" width = "100%" class = "fb_review_table">
            <tr>
                <td class = "fb_review_header" width = "20%" align = "center">
                    <strong><?php 
        echo _GEN_AUTHOR;
        ?>
</strong>
                </td>

                <td class = "fb_review_header" align = "center">
                    <strong><?php 
        echo _GEN_MESSAGE;
        ?>
</strong>
                </td>
            </tr>

            <?php 
        $k = 0;
        $smileyList = smile::getEmoticons(1);
        foreach ($messages as $mes) {
            $k = 1 - $k;
            $mes->name = kunena_htmlspecialchars($mes->name);
            $mes->email = kunena_htmlspecialchars($mes->email);
            $mes->subject = kunena_htmlspecialchars($mes->subject);
            $fb_message_txt = stripslashes($mes->message);
            $fb_message_txt = smile::smileReplace($fb_message_txt, 1, $fbConfig->disemoticons, $smileyList);
            $fb_message_txt = nl2br($fb_message_txt);
            $fb_message_txt = str_replace("__FBTAB__", "\t", $fb_message_txt);
            ?>

                <tr>
                    <td class = "fb_review_body<?php 
            echo $k;
            ?>
" valign = "top">
                        <?php 
            echo stripslashes($mes->name);
            ?>
                    </td>

                    <td class = "fb_review_body<?php 
            echo $k;
            ?>
">
                        <?php 
            $fb_message_txt = str_replace("</P><br />", "</P>", $fb_message_txt);
            //Long Words Wrap:
            $fb_message_txt = smile::htmlwrap($fb_message_txt, $fbConfig->wrap);
            $fb_message_txt = CKunenaTools::prepareContent($fb_message_txt);
            echo $fb_message_txt;
            ?>
                    </td>
                </tr>

            <?php 
        }
        ?>
        </table>

<?php 
    }
    //else: this is a new topic so there can't be a history
}
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:90,代码来源:post.php

示例5: __construct

 function __construct($userid, $do = '')
 {
     $this->_app = JFactory::getApplication();
     $this->my = JFactory::getUser();
     $this->do = $do;
     if ($this->do == 'login') {
         return $this->login();
     } elseif ($this->do == 'logout') {
         return $this->logout();
     }
     kimport('html.parser');
     require_once KPATH_SITE . '/lib/kunena.timeformat.class.php';
     $this->_db = JFactory::getDBO();
     $this->config = KunenaFactory::getConfig();
     if (!$userid) {
         $this->user = $this->my;
     } else {
         $this->user = JFactory::getUser($userid);
     }
     if ($this->user->id == 0 || $this->my->id == 0 && !$this->config->pubprofile) {
         $this->allow = false;
         $this->header = JText::_('COM_KUNENA_LOGIN_NOTIFICATION');
         $this->body = JText::_('COM_KUNENA_PROFILEPAGE_NOT_ALLOWED_FOR_GUESTS') . ' ' . JText::_('COM_KUNENA_NO_ACCESS');
         CKunenaTools::loadTemplate('/login.php');
         return;
     }
     $integration = KunenaFactory::getProfile();
     $activityIntegration = KunenaFactory::getActivityIntegration();
     $template = KunenaFactory::getTemplate();
     $this->params = $template->params;
     if (get_class($integration) == 'KunenaProfileNone') {
         $this->allow = false;
         $this->header = JText::_('COM_KUNENA_PROFILE_DISABLED');
         $this->body = JText::_('COM_KUNENA_PROFILE_DISABLED') . ' ' . JText::_('COM_KUNENA_NO_ACCESS');
         CKunenaTools::loadTemplate('/login.php');
         return;
     }
     $this->allow = true;
     $this->profile = KunenaFactory::getUser($this->user->id);
     if (!$this->profile->exists()) {
         $this->profile->save();
     }
     if ($this->profile->userid == $this->my->id) {
         if ($this->do != 'edit') {
             $this->editlink = CKunenaLink::GetMyProfileLink($this->profile->userid, JText::_('COM_KUNENA_EDIT'), 'nofollow', 'edit');
         } else {
             $this->editlink = CKunenaLink::GetMyProfileLink($this->profile->userid, JText::_('COM_KUNENA_BACK'), 'nofollow');
         }
     }
     $this->name = $this->user->username;
     if ($this->config->userlist_name) {
         $this->name = $this->user->name . ' (' . $this->name . ')';
     }
     if ($this->config->showuserstats) {
         if ($this->config->userlist_usertype) {
             $this->usertype = $this->user->usertype;
         }
         $this->rank_image = $this->profile->getRank(0, 'image');
         $this->rank_title = $this->profile->getRank(0, 'title');
         $this->posts = $this->profile->posts;
         $this->userpoints = $activityIntegration->getUserPoints($this->profile->userid);
         $this->usermedals = $activityIntegration->getUserMedals($this->profile->userid);
     }
     if ($this->config->userlist_joindate || CKunenaTools::isModerator($this->my->id)) {
         $this->registerdate = $this->user->registerDate;
     }
     if ($this->config->userlist_lastvisitdate || CKunenaTools::isModerator($this->my->id)) {
         $this->lastvisitdate = $this->user->lastvisitDate;
     }
     $this->avatarlink = $this->profile->getAvatarLink('kavatar', 'profile');
     $this->personalText = $this->profile->personalText;
     $this->signature = $this->profile->signature;
     $this->timezone = $this->user->getParam('timezone', $this->_app->getCfg('offset', 0));
     $this->moderator = CKunenaTools::isModerator($this->profile->userid);
     $this->admin = CKunenaTools::isAdmin($this->profile->userid);
     switch ($this->profile->gender) {
         case 1:
             $this->genderclass = 'male';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_MALE');
             break;
         case 2:
             $this->genderclass = 'female';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE');
             break;
         default:
             $this->genderclass = 'unknown';
             $this->gender = JText::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN');
     }
     if ($this->profile->location) {
         $this->locationlink = '<a href="http://maps.google.com?q=' . kunena_htmlspecialchars($this->profile->location) . '" target="_blank">' . kunena_htmlspecialchars($this->profile->location) . '</a>';
     } else {
         $this->locationlink = JText::_('COM_KUNENA_LOCATION_UNKNOWN');
     }
     $this->online = $this->profile->isOnline();
     $this->showUnusedSocial = true;
     $avatar = KunenaFactory::getAvatarIntegration();
     $this->editavatar = is_a($avatar, 'KunenaAvatarKunena') ? true : false;
     kimport('userban');
     $this->banInfo = KunenaUserBan::getInstanceByUserid($userid, true);
     $this->canBan = $this->banInfo->canBan();
//.........这里部分代码省略.........
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:101,代码来源:profile.php

示例6: showCss

    function showCss($file, $option)
    {
        $f = fopen($file, "r");
        $content = fread($f, filesize($file));
        $content = kunena_htmlspecialchars($content);
        ?>
<div class="fbfunctitle"><?php 
        echo _KUNENA_CSSEDITOR;
        ?>
</div>
    <form action = "index2.php?" method = "post" name = "adminForm" class = "adminForm" id = "adminForm">


        <table cellpadding = "4" cellspacing = "0" border = "0" width = "100%" class = "adminform">
            <tr>
	                <th colspan = "4">
					<?php 
        echo _KUNENA_PATH;
        ?>
 <?php 
        echo $file;
        ?>
            </tr>

            <tr>
                <td>
                    <textarea cols = "100" rows = "20" name = "csscontent"><?php 
        echo $content;
        ?>
</textarea>
                </td>
            </tr>

            <tr>
                <td class = "error"><?php 
        echo _KUNENA_CSSERROR;
        ?>
                </td>
            </tr>
        </table>

        <input type = "hidden" name = "file" value = "<?php 
        echo $file;
        ?>
"/>

        <input type = "hidden" name = "option" value = "<?php 
        echo $option;
        ?>
"> <input type = "hidden" name = "task" value = ""> <input type = "hidden" name = "boxchecked" value = "0">
    </form>


<?php 
    }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:55,代码来源:admin.kunena.html.php

示例7: check_dberror

        $published = JRequest::getVar("published", 0);
        $showdate = JRequest::getVar("showdate", "");
        $kunena_db->setQuery("UPDATE #__fb_announcement SET title='{$title}', description='{$description}', sdescription='{$sdescription}',  created=" . ($created != '' ? "'{$created}'" : "NOW()") . ", published='{$published}', showdate='{$showdate}' WHERE id={$id}");
        if ($kunena_db->query()) {
            $app->redirect(CKunenaLink::GetAnnouncementURL($fbConfig, 'show'), _ANN_SUCCESS_EDIT);
        }
    }
    if ($do == "edit") {
        $kunena_db->setQuery("SELECT * FROM #__fb_announcement WHERE id='{$id}'");
        $anns = $kunena_db->loadObjectList();
        check_dberror("Unable to load announcements.");
        $ann = $anns[0];
        $annID = $ann->id;
        $anntitle = kunena_htmlspecialchars(stripslashes($ann->title));
        $annsdescription = kunena_htmlspecialchars(stripslashes($ann->sdescription));
        $anndescription = kunena_htmlspecialchars(stripslashes($ann->description));
        $anncreated = $ann->created;
        $annpublished = $ann->published;
        $annordering = $ann->ordering;
        $annshowdate = $ann->showdate;
        $calendar = JHTML::_('calendar', $anncreated, 'created', 'addcreated');
        //$document->addCustomTag('<link rel="stylesheet" type="text/css" media="all" href="' . JURI::root() . '/includes/js/calendar/calendar-mos.css" title="green" />');
        ?>
<script type = "text/javascript">
    <!--
    function validate_form()
    {
        valid = true;

        if (document.editform.title.value == "")
        {
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:announcement.php

示例8: foreach

        <th class = "th-3 <?php 
echo $boardclass;
?>
sectiontableheader"  align = "center"><?php 
echo _GEN_DATE;
?>
</th>
    </tr>
</thead>
<tbody>
    <?php 
foreach ($tree as $leaf) {
    $leaf->name = kunena_htmlspecialchars($leaf->name);
    $leaf->subject = kunena_htmlspecialchars($leaf->subject);
    $leaf->email = kunena_htmlspecialchars($leaf->email);
    //get all html out of the subject & email & name before posting:
    ?>

        <tr class="fb_threadview_row">
            <?php 
    if ($fbConfig->shownew && $kunena_my->id != 0 && !$leaf->moved) {
        if ($prevCheck < $leaf->time && sizeof($read_topics) == 0 || !in_array($leaf->thread, $read_topics)) {
            //new post
            echo '<td width="1%" class="fb_new">';
            // echo isset($fbIcons['unreadmessage']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['unreadmessage'] . '" border="0" alt="' . _GEN_UNREAD . '" title="' . _GEN_UNREAD . '"/>' : $fbConfig->newchar;
            echo '</td>';
        } else {
            //not new posts
            echo '<td width="1%" class="fb_notnew">';
            // echo isset($fbIcons['readmessage']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['readmessage'] . '" border="0" alt="' . _GEN_NOUNREAD . '" title="' . _GEN_NOUNREAD . '"/>' : $fbConfig->newchar;
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:30,代码来源:thread.php

示例9: date

}
?>

                </div>
            </td>
<!-- -->

        </tr>

	<tr><td class = "fb-msgview-right-b" >
		<div class="fb_message_editMarkUp_cover">
<?php 
if ($fmessage->modified_by) {
    echo '<span class="fb_message_editMarkUp">' . _KUNENA_EDITING_LASTEDIT . ': ' . date(_DATETIME, $fmessage->modified_time) . ' ' . _KUNENA_BY . ' ' . CKunenaTools::whoisID($fmessage->modified_by) . '.';
    if ($fmessage->modified_reason) {
        echo _KUNENA_REASON . ': ' . kunena_htmlspecialchars(stripslashes($fmessage->modified_reason));
    }
    echo '</span>';
}
if ($fbConfig->reportmsg && $kunena_my->id > 1) {
    echo '<span class="fb_message_informMarkUp">' . CKunenaLink::GetReportMessageLink($catid, $msg_id, _KUNENA_REPORT) . '</span>';
}
if (isset($msg_ip)) {
    echo '<span class="fb_message_informMarkUp">' . CKunenaLink::GetMessageIPLink($msg_ip) . '</span>';
}
?>
		</div>
		<div class="fb_message_buttons_cover">
			<div class="fb_message_buttons_row">
                <?php 
//we should only show the Quick Reply section to registered users. otherwise we are missing too much information!!
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:message.php

示例10: isset

                                                if (is_file(KUNENA_ABSCATIMAGESPATH . $forumparent->id . "_notlogin_childsmall.gif")) {
                                                    echo "<img src=\"" . KUNENA_URLCATIMAGES . $forumparent->id . "_notlogin_childsmall.gif\" border=\"0\" class='forum-cat-image' alt=\" \" />";
                                                } else {
                                                    echo isset($fbIcons['notloginforum']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['notloginforum_childsmall'] . '" border="0" alt="' . _GEN_FORUM_NOTNEW . '" title="' . _GEN_FORUM_NOTNEW . '" />' : stripslashes($fbConfig->newchar);
                                                }
                                                ?>

                                                    <?php 
                                            }
                                            //
                                        }
                                        // end: parent read unread iconset
                                        ?>

                                                    <?php 
                                        echo CKunenaLink::GetCategoryLink('showcat', $forumparent->id, kunena_htmlspecialchars(stripslashes($forumparent->name)));
                                        echo '<span class="fb_childcount fbs">(' . $forumparent->numTopics . "/" . $forumparent->numPosts . ')</span>';
                                    }
                                    echo "</div>";
                                }
                                ?>
                                                </div>
                                            </div>

                                        <?php 
                            }
                            //get the Moderator list for display
                            $kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='{$singlerow->id}'");
                            $modslist = $kunena_db->loadObjectList();
                            check_dberror("Unable to load moderators.");
                            // moderator list
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:listcat.php

示例11: fbWriteTextarea


//.........这里部分代码省略.........
            }
        }
        ?>
					</div>

					</td></tr>
<!-- end of extendable fiels -->
                    <tr>
                        <td class = "<?php 
        echo $boardclass;
        ?>
posthint">
                            <input type = "text" name = "helpbox" size = "45" class = "<?php 
        echo $boardclass;
        ?>
inputbox" maxlength = "100" value = "<?php 
        @(print _KUNENA_EDITOR_HELPLINE_HINT);
        ?>
" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr class = "<?php 
        echo $boardclass;
        ?>
sectiontableentry2">
            <td valign = "top" class = "fb_leftcolumn">
                <strong><?php 
        @(print _MESSAGE);
        ?>
</strong>:<br />
               <b onclick = "size_messagebox(100);" style="cursor:pointer">(+)</b><b> / </b><b onclick = "size_messagebox(-100);" style="cursor:pointer">(-)</b>
                <?php 
        if ($emoticons != 1) {
            ?>

                    <br/>

                    <br/>

                    <div align = "right">
                        <table border = "0" cellspacing = "3" cellpadding = "0">
                            <tr>
                                <td colspan = "4" style = "text-align: center;">
                                    <strong><?php 
            @(print _GEN_EMOTICONS);
            ?>
</strong>
                                </td>
                            </tr>

                            <?php 
            generate_smilies();
            //the new function Smiley mod
            ?>
                        </table>
                    </div>

                <?php 
        }
        ?>
            </td>

            <td valign = "top">
                <textarea cols="60" rows="6" class = "<?php 
        echo $boardclass;
        ?>
txtarea" name = "<?php 
        echo $areaname;
        ?>
" id = "<?php 
        echo $areaname;
        ?>
"><?php 
        echo kunena_htmlspecialchars($html, ENT_QUOTES);
        ?>
</textarea>
<?php 
        if ($editmode) {
            // Moderator edit area
            ?>
     <fieldset>
     <legend><?php 
            @(print _KUNENA_EDITING_REASON);
            ?>
</legend>
        <input name="modified_reason" size="40" maxlength="200"  type="text" /><br />

     </fieldset>
<?php 
        }
        ?>
            </td>
        </tr>

<?php 
    }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:101,代码来源:smile.class.php

示例12: stripslashes

}
if ($func == "mylatest") {
    $document->setTitle(_KUNENA_MY_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));
    $query = "SELECT count(distinct tmp.thread) FROM\n\t\t\t\t(SELECT thread\n\t\t\t\t\tFROM #__fb_messages\n\t\t\t\t\tWHERE userid={$kunena_my->id} AND hold=0 AND moved=0 AND catid IN ({$fbSession->allowed})\n\t\t\t\tUNION ALL\n\t\t\t\t SELECT m.thread As thread\n\t\t\t\t\tFROM #__fb_messages AS m\n\t\t\t\t\tJOIN #__fb_favorites AS f ON m.thread = f.thread\n\t\t\t\t\tWHERE f.userid={$kunena_my->id} AND m.parent = 0 AND hold=0 and moved=0 AND catid IN ({$fbSession->allowed})) AS tmp";
} else {
    $document->setTitle(_KUNENA_ALL_DISCUSSIONS . ' - ' . stripslashes($fbConfig->board_title));
    $query = "Select count(distinct thread) FROM #__fb_messages WHERE time >'{$querytime}'" . " AND hold=0 AND moved=0 AND catid IN ({$fbSession->allowed})" . $latestcats;
    // if categories are limited apply filter
}
$kunena_db->setQuery($query);
$total = (int) $kunena_db->loadResult();
check_dberror('Unable to count total threads');
$totalpages = ceil($total / $threads_per_page);
//meta description and keywords
$metaKeys = kunena_htmlspecialchars(stripslashes(_KUNENA_ALL_DISCUSSIONS . ", {$fbConfig->board_title}, " . $app->getCfg('sitename')));
$metaDesc = kunena_htmlspecialchars(stripslashes(_KUNENA_ALL_DISCUSSIONS . " ({$page}/{$totalpages}) - {$fbConfig->board_title}"));
$document =& JFactory::getDocument();
$cur = $document->get('description');
$metaDesc = $cur . '. ' . $metaDesc;
$document =& JFactory::getDocument();
$document->setMetadata('robots', 'noindex, follow');
$document->setMetadata('keywords', $metaKeys);
$document->setDescription($metaDesc);
if ($func == "mylatest") {
    $order = "myfavorite DESC, lastid DESC";
    $query = "SELECT m.thread, MAX(m.id) as lastid, MAX(t.fav) AS myfavorite FROM (\n\t\t\tSELECT thread, 0 AS fav\n\t\t\tFROM #__fb_messages\n\t\t\tWHERE userid='{$kunena_my->id}' AND moved='0' AND hold='0' AND catid IN ({$fbSession->allowed})\n\t\t\tGROUP BY thread\n\t\tUNION ALL\n\t\t\tSELECT thread, 1 AS fav FROM #__fb_favorites WHERE userid='{$kunena_my->id}'\n\t\t) AS t\n\t\tINNER JOIN #__fb_messages AS m ON m.thread=t.thread\n\t\tWHERE m.moved='0' AND m.hold='0' AND m.catid IN ({$fbSession->allowed})\n\t\tGROUP BY thread\n\t\tORDER BY {$order}\n\t";
} else {
    $order = "lastid DESC";
    $query = "SELECT thread, MAX(id) AS lastid FROM #__fb_messages WHERE time>'{$querytime}' AND hold='0' AND moved='0' AND catid IN ({$fbSession->allowed})\n\t\tGROUP BY thread\n\t\tORDER BY {$order}\n\t";
}
$kunena_db->setQuery($query, $offset, $threads_per_page);
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:latestx.php

示例13: foreach

        <image>
	        <url><?php 
echo KUNENA_URLEMOTIONSPATH;
?>
rss.gif</url>
	        <title>Powered by Kunena</title>
	        <link><?php 
echo JURI::root();
?>
</link>
	        <description>Kunena Site Syndication</description>
        </image>
<?php 
foreach ($rows as $row) {
    echo "        <item>\n";
    echo "            <title>" . _GEN_SUBJECT . ": " . stripslashes(kunena_htmlspecialchars($row->subject)) . " - " . _GEN_BY . ": " . stripslashes(kunena_htmlspecialchars($row->lastpostname)) . "</title>" . "\n";
    echo "            <link>";
    $uri =& JURI::getInstance(JURI::base());
    $itemlink = $uri->toString(array('scheme', 'host', 'port')) . CKunenaLink::GetThreadPageURL($fbConfig, 'view', $row->catid, $row->thread, ceil($row->numberposts / $fbConfig->messages_per_page), $fbConfig->messages_per_page, $row->lastpostid);
    echo $itemlink;
    echo "</link>\n";
    $words = $row->lastpostmessage;
    $words = smile::purify($words);
    echo "            <description>" . kunena_htmlspecialchars($words) . "</description>" . "\n";
    echo "            <pubDate>" . date('r', $row->lastposttime) . "</pubDate>" . "\n";
    echo "        </item>\n";
}
?>
    </channel>
</rss>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:30,代码来源:kunena.rss.php

示例14: date

                            <td class = "td-6">
                                <div class = "fb-latest-subject-date fbs">
<?php 
        echo $leaf->moved ? _KUNENA_TOPIC_MOVED_LONG : date(_DATETIME, $last_reply[$leaf->id]->time);
        ?>

<?php 
        if ($leaf->moved) {
        } else {
            ?>

<?php 
            echo _GEN_BY;
            ?>
 <?php 
            echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, kunena_htmlspecialchars(stripslashes($last_reply[$leaf->id]->name)));
            ?>

<?php 
        }
        ?>

    <?php 
        $tmpicon = '';
        if (!$leaf->moved) {
            $tmpicon = isset($fbIcons['latestpost']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['latestpost'] . '" border="0" alt="' . _SHOW_LAST . '" />' : '  <img src="' . KUNENA_URLEMOTIONSPATH . 'icon_newest_reply.gif" border="0"  alt="' . _SHOW_LAST . '" title="' . _SHOW_LAST . '" />';
        }
        echo CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->id, $threadPages, $fbConfig->messages_per_page, $tmpicon, $last_reply[$leaf->id]->id);
        ?>
                                </div>
                            </td>
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:flat.php

示例15: isset

     $msg_aim = isset($fbIcons['msgaim']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msgaim'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->AIM)) . '" title="AIM: ' . kunena_htmlspecialchars(stripslashes($userinfo->AIM)) . '" />' : 'AIM: ' . kunena_htmlspecialchars(stripslashes($userinfo->AIM)) . '';
 }
 if ($userinfo->MSN != '') {
     $msg_msn = isset($fbIcons['msgmsn']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msgmsn'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->MSN)) . '" title="MSN: ' . kunena_htmlspecialchars(stripslashes($userinfo->MSN)) . '" />' : 'MSN: ' . kunena_htmlspecialchars(stripslashes($userinfo->MSN)) . '';
 }
 if ($userinfo->YIM != '') {
     $msg_yim = isset($fbIcons['msgyim']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msgyim'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->YIM)) . '" title="YIM: ' . kunena_htmlspecialchars(stripslashes($userinfo->YIM)) . '" />' : ' YIM: ' . kunena_htmlspecialchars(stripslashes($userinfo->YIM)) . '';
 }
 if ($userinfo->SKYPE != '') {
     $msg_skype = isset($fbIcons['msgskype']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msgskype'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->SKYPE)) . '" title="SKYPE: ' . kunena_htmlspecialchars(stripslashes($userinfo->SKYPE)) . '" />' : 'SKYPE: ' . kunena_htmlspecialchars(stripslashes($userinfo->SKYPE)) . '';
 }
 if ($userinfo->GTALK != '') {
     $msg_gtalk = isset($fbIcons['msggtalk']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['msggtalk'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->GTALK)) . '" title="GTALK: ' . kunena_htmlspecialchars(stripslashes($userinfo->GTALK)) . '" />' : 'GTALK: ' . kunena_htmlspecialchars(stripslashes($userinfo->GTALK)) . '';
 }
 if ($userinfo->websiteurl != '') {
     $msg_website = isset($fbIcons['msgwebsite']) ? '<a href="http://' . kunena_htmlspecialchars(stripslashes($userinfo->websiteurl)) . '" target="_blank"><img src="' . KUNENA_URLICONSPATH . $fbIcons['msgwebsite'] . '" border="0" alt="' . kunena_htmlspecialchars(stripslashes($userinfo->websitename)) . '" title="' . kunena_htmlspecialchars(stripslashes($userinfo->websitename)) . '" /></a>' : '<a href="http://' . kunena_htmlspecialchars(stripslashes($userinfo->websiteurl)) . '" target="_blank">' . kunena_htmlspecialchars(stripslashes($userinfo->websitename)) . '</a>';
 }
 // Finish: Additional Info //
 //Show admins the IP address of the user:
 if ($is_Moderator) {
     $msg_ip = $fmessage->ip;
 }
 $fb_subject_txt = $fmessage->subject;
 $table = array_flip(get_html_translation_table(HTML_ENTITIES));
 $fb_subject_txt = strtr($fb_subject_txt, $table);
 $fb_subject_txt = stripslashes($fb_subject_txt);
 $fb_subject_txt = smile::htmlwrap($fb_subject_txt, $fbConfig->wrap);
 $msg_subject = smile::fbHtmlSafe($fb_subject_txt);
 $msg_date = date(_DATETIME, $fmessage->time);
 $fb_message_txt = stripslashes($fmessage->message);
 $fb_message_txt = smile::smileReplace($fb_message_txt, 0, $fbConfig->disemoticons, $smileyList);
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:31,代码来源:view.php


注:本文中的kunena_htmlspecialchars函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。