本文整理汇总了PHP中CKunenaConfig类 的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaConfig类的具体用法?PHP CKunenaConfig怎么用?PHP CKunenaConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CKunenaConfig类 的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: fb_has_post_permission
/**
* Checks if a user has postpermission in given thread
* @param database object
* @param int
* @param int
* @param int
* @param boolean
* @param boolean
*
* @pre: fb_has_read_permission()
*/
function fb_has_post_permission(&$kunena_db, $catid, $replyto, $userid, $pubwrite, $ismod)
{
$fbConfig =& CKunenaConfig::getInstance();
if ($ismod) {
return 1;
}
// moderators always have post permission
if ($replyto != 0) {
$kunena_db->setQuery("SELECT thread FROM #__fb_messages WHERE id='{$replyto}'");
$topicID = $kunena_db->loadResult();
if ($topicID != 0) {
//message replied to is not the topic post; check if the topic post itself is locked
$sql = "SELECT locked FROM #__fb_messages WHERE id='{$topicID}'";
} else {
$sql = "SELECT locked FROM #__fb_messages WHERE id='{$replyto}'";
}
$kunena_db->setQuery($sql);
if ($kunena_db->loadResult() == 1) {
return -1;
}
// topic locked
}
//topic not locked; check if forum is locked
$kunena_db->setQuery("SELECT locked FROM #__fb_categories WHERE id='{$catid}'");
if ($kunena_db->loadResult() == 1) {
return -2;
}
// forum locked
if ($userid != 0 || $pubwrite) {
return 1;
}
// post permission :-)
return 0;
// no public writing allowed
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:46, 代码来源:kunena.permissions.php
示例2: KunenaViewPagination
function KunenaViewPagination($catid, $threadid, $page, $totalpages, $maxpages)
{
$fbConfig =& CKunenaConfig::getInstance();
$startpage = $page - floor($maxpages / 2) < 1 ? 1 : $page - floor($maxpages / 2);
$endpage = $startpage + $maxpages;
if ($endpage > $totalpages) {
$startpage = $totalpages - $maxpages < 1 ? 1 : $totalpages - $maxpages;
$endpage = $totalpages;
}
$output = '<span class="fb_pagination">' . _PAGE;
if ($startpage > 1) {
if ($endpage < $totalpages) {
$endpage--;
}
$output .= CKunenaLink::GetThreadPageLink($fbConfig, 'view', $catid, $threadid, 1, $fbConfig->messages_per_page, 1, '', $rel = 'follow');
if ($startpage > 2) {
$output .= "...";
}
}
for ($i = $startpage; $i <= $endpage && $i <= $totalpages; $i++) {
if ($page == $i) {
$output .= "<strong>{$i}</strong>";
} else {
$output .= CKunenaLink::GetThreadPageLink($fbConfig, 'view', $catid, $threadid, $i, $fbConfig->messages_per_page, $i, '', $rel = 'follow');
}
}
if ($endpage < $totalpages) {
if ($endpage < $totalpages - 1) {
$output .= "...";
}
$output .= CKunenaLink::GetThreadPageLink($fbConfig, 'view', $catid, $threadid, $totalpages, $fbConfig->messages_per_page, $totalpages, '', $rel = 'follow');
}
$output .= '</span>';
return $output;
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:35, 代码来源:view.php
示例3: setdefault
function setdefault() {
$db = JFactory::getDBO ();
$app = JFactory::getApplication ();
$config = KunenaFactory::getConfig ();
if (! JRequest::checkToken ()) {
$app->enqueueMessage ( JText::_ ( 'COM_KUNENA_ERROR_TOKEN' ), 'error' );
$app->redirect ( KunenaRoute::_($this->baseurl, false) );
}
$config->backup ();
$config->remove ();
$config = new CKunenaConfig();
$config->create();
$app->enqueueMessage ( JText::_('COM_KUNENA_CONFIG_DEFAULT'));
$app->redirect ( KunenaRoute::_($this->baseurl, false) );
}
开发者ID:rich20, 项目名称:Kunena, 代码行数:18, 代码来源:config.php
示例4: getConfig
/**
* Generate forum API
*
* @param moscomprofilerUser $user
* @param array $params
* @return object
*/
function getConfig($user)
{
global $_CB_database;
static $forum = null;
if ($forum === null) {
$forum = $this->getForumParams();
if ($forum !== null) {
if ($forum->prefix != 'kunena' || $forum->prefix == 'kunena' && !class_exists('KunenaForum')) {
if (!$forum->config) {
$query = 'SELECT * FROM ' . $_CB_database->NameQuote('#__' . $forum->prefix . '_config');
$_CB_database->setQuery($query);
$forum->config = $_CB_database->loadAssoc();
} else {
if ($forum->component == 'com_fireboard') {
global $fbConfig;
$config =& $fbConfig;
} elseif ($forum->component != 'com_kunena') {
global $sbConfig;
$config =& $sbConfig;
}
include_once $forum->config;
if ($forum->component == 'com_kunena') {
$config = get_object_vars(CKunenaConfig::getInstance());
}
$forum->config = $config;
}
} elseif (class_exists('KunenaFactory')) {
$forum->config = get_object_vars(KunenaFactory::getConfig());
} else {
$forum->config = null;
}
$forum->version = $this->getVersion($forum);
}
}
if ($forum !== null && isset($user->id)) {
$forum->userdetails = $this->getUserDetails($user, $forum);
}
return $forum;
}
开发者ID:rogatnev-nikita, 项目名称:cloudinterpreter, 代码行数:46, 代码来源:cb.simpleboardtab.model.php
示例5: CKunenaConfig
public function &getInstance() {
static $instance = NULL;
if (! $instance) {
$instance = new CKunenaConfig ();
$instance->load ();
}
return $instance;
}
开发者ID:rich20, 项目名称:Kunena, 代码行数:8, 代码来源:kunena.config.class.php
示例6: TagExtended
function TagExtended(&$tag_new, &$task, $tag, $between)
{
# Function replaces TAGs with corresponding
# Encode was already been called for between
$fbConfig =& CKunenaConfig::getInstance();
$kunena_my =& JFactory::getUser();
if ($task->in_code) {
switch (strtolower($tag->name)) {
case 'code:1':
// fb ancient compatibility
// fb ancient compatibility
case 'code':
$types = array("php", "mysql", "html", "js", "javascript");
$code_start_html = '<div class="fbcode"><table cellspacing="1" cellpadding="3" border="0"><tr><td><b>' . _KUNENA_MSG_CODE . '</b></td></tr><tr><td><hr />';
if (!empty($tag->options["type"]) && in_array($tag->options["type"], $types)) {
$t_type = $tag->options["type"];
} else {
$t_type = "php";
}
// make sure we show line breaks
$code_start_html .= "<code class=\"{$t_type}\">";
$code_end_html = '</code><hr /></td></tr></table></div>';
// Preserve spaces and tabs in code
$codetext = str_replace("\t", "__FBTAB__", $between);
$codetext = kunena_htmlspecialchars($codetext, ENT_QUOTES);
$codetext = str_replace(" ", " ", $codetext);
$tag_new = $code_start_html . $codetext . $code_end_html;
#reenter regular replacements
$task->in_code = FALSE;
return TAGPARSER_RET_REPLACED;
break;
default:
break;
}
return TAGPARSER_RET_NOTHING;
}
switch (strtolower($tag->name)) {
# call html_entity_decode_utf8 if Encode() did not already!!!
# in general $between was already Encoded (if not explicitly suppressed!)
case 'email':
$tempstr = kunena_htmlspecialchars($between, ENT_QUOTES);
if (substr($tempstr, 0, 7) == 'mailto:') {
$between = substr($tempstr, 7);
} else {
$tempstr = 'mailto:' . $tempstr;
}
$tag_new = "<a href='" . $tempstr . "'>" . $between . '</a>';
return TAGPARSER_RET_REPLACED;
break;
case 'url':
$tempstr = kunena_htmlspecialchars($between, ENT_QUOTES);
if (!preg_match("`^(https?://)`", $tempstr)) {
$tempstr = 'http://' . $tempstr;
}
$tag_new = "<a href='" . $tempstr . "' rel=\"nofollow\" target=\"_blank\">" . $between . '</a>';
return TAGPARSER_RET_REPLACED;
break;
case 'img':
if ($between) {
static $file_ext = null;
$matches = null;
if (empty($file_ext)) {
$params =& JComponentHelper::getParams('com_media');
$file_ext = explode(',', $params->get('upload_extensions'));
}
preg_match('/\\.([\\w\\d]+)$/', $between, $matches);
if (!in_array(strtolower($matches[1]), $file_ext)) {
break;
}
$tempstr = kunena_htmlspecialchars($between, ENT_QUOTES);
$task->autolink_disable--;
# continue autolink conversion
// Make sure we add image size if specified and while we are
// at it also set maximum image width from text width config.
//
// NOTICE: image max variables from config are not intended
// for formating but to limit the size of uploads, which can
// be larger than the available post area to support super-
// sized popups.
$imgmaxsize = (int) ($fbConfig->rtewidth * 9 / 10);
// 90% of text width
$imgtagsize = isset($tag->options["size"]) ? (int) kunena_htmlspecialchars($tag->options["size"]) : 0;
if ($imgtagsize > 0 && $imgtagsize < $imgmaxsize) {
$imgmaxsize = $imgtagsize;
}
// Need to check if we are nested inside a URL code
if ($task->autolink_disable == 0) {
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8
$tag_new = "<a href='" . $tempstr . "' rel=\"lightbox\"><img src='" . $tempstr . ($imgtagsize ? "' width='" . $imgmaxsize : '') . "' style='max-width:" . $imgmaxsize . "px; ' alt='' /></a>";
} else {
// This part: <div style=\"table-layout:fixed; display:table;\"> ... </div> compliments of IE8
$tag_new = "<img src='" . $tempstr . ($imgtagsize ? "' width='" . $imgmaxsize : '') . "' style='max-width:" . $imgmaxsize . "px; ' alt='' />";
}
return TAGPARSER_RET_REPLACED;
}
return TAGPARSER_RET_NOTHING;
break;
case 'file':
if ($between) {
$tempstr = kunena_htmlspecialchars($between, ENT_QUOTES);
//.........这里部分代码省略.........
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:101, 代码来源:kunena.parser.php
示例7: show
/**
* Display results
* @param string actionstring
*/
function show()
{
$fbConfig =& CKunenaConfig::getInstance();
extract($this->params);
$q = implode(" ", $this->get_searchstrings());
$searchuser = $this->get_searchusername();
$limitstart = $this->get_limitstart();
$limit = $this->get_limit();
$selected = ' selected="selected"';
$checked = ' checked="checked"';
$fb_advsearch_hide = 1;
if ($this->int_kunena_errornr) {
$q = $this->searchword;
$fb_advsearch_hide = 0;
}
if (file_exists(KUNENA_ABSTMPLTPATH . '/plugin/advancedsearch/advsearch.php')) {
include KUNENA_ABSTMPLTPATH . '/plugin/advancedsearch/advsearch.php';
} else {
include KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'plugin/advancedsearch/advsearch.php';
}
$results = $this->get_results();
$totalRows = $this->total;
$pagination = KunenaSearchPagination($this->func, $q, $this->getUrlParams(), floor($limitstart / $limit) + 1, $limit, floor($totalRows / $limit) + 1, 7);
if (defined('KUNENA_DEBUG')) {
echo '<p style="background-color:#FFFFCC;border:1px solid red;">' . $this->str_kunena_errormsg . '</p>';
}
?>
<?php
if (empty($q) && empty($searchuser)) {
return;
}
$boardclass = 'fb_';
?>
<div class="<?php
echo $boardclass;
?>
_bt_cvr1">
<div class="<?php
echo $boardclass;
?>
_bt_cvr2">
<div class="<?php
echo $boardclass;
?>
_bt_cvr3">
<div class="<?php
echo $boardclass;
?>
_bt_cvr4">
<div class="<?php
echo $boardclass;
?>
_bt_cvr5">
<table class = "fb_blocktable" id ="fb_forumsearch" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
<thead>
<tr>
<th colspan = "3">
<div class = "fb_title_cover">
<span class="fb_title fbl"><?php
echo _KUNENA_SEARCH_RESULTS;
?>
</span>
<b><?php
printf(_FORUM_SEARCH, $q);
?>
</b>
</div>
</th>
</tr>
</thead>
<tbody>
<tr class = "fb_sth">
<th class = "th-1 <?php
echo $boardclass;
?>
sectiontableheader">
<?php
echo _GEN_SUBJECT;
?>
</th>
<th class = "th-2 <?php
echo $boardclass;
?>
sectiontableheader">
<?php
echo _GEN_AUTHOR;
?>
</th>
<th class = "th-3 <?php
echo $boardclass;
?>
sectiontableheader">
//.........这里部分代码省略.........
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:101, 代码来源:kunena.search.class.php
示例8: hasPostPermission
/**
* Checks if a user has postpermission in given thread
* @param database object
* @param int
* @param int
* @param boolean
* @param boolean
*/
function hasPostPermission($kunena_db, $catid, $id, $userid, $pubwrite, $ismod)
{
$fbConfig =& CKunenaConfig::getInstance();
$app =& JFactory::getApplication();
$topicLock = 0;
if ($id != 0) {
$kunena_db->setQuery("SELECT thread FROM #__fb_messages WHERE id='{$id}'");
$topicID = $kunena_db->loadResult();
$lockedWhat = _GEN_TOPIC;
if ($topicID != 0) {
$sql = "SELECT locked FROM #__fb_messages WHERE id='{$topicID}'";
} else {
$sql = "SELECT locked FROM #__fb_messages WHERE id='{$id}'";
}
$kunena_db->setQuery($sql);
$topicLock = $kunena_db->loadResult();
}
if ($topicLock == 0) {
//topic not locked; check if forum is locked
$kunena_db->setQuery("SELECT locked FROM #__fb_categories WHERE id='{$catid}'");
$topicLock = $kunena_db->loadResult();
$lockedWhat = _GEN_FORUM;
}
if (($userid != 0 || $pubwrite) && ($topicLock == 0 || $ismod)) {
return 1;
} else {
//user is not allowed to write a post
if ($topicLock) {
echo "<p align=\"center\">{$lockedWhat} " . _POST_LOCKED . "<br />";
echo _POST_NO_NEW . "<br /><br /></p>";
} else {
$app->enqueueMessage(_POST_NO_PUBACCESS1, 'notice');
$app->enqueueMessage(_POST_NO_PUBACCESS2, 'notice');
$app->redirect(CKunenaLink::GetShowLatestURL());
}
return 0;
}
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:46, 代码来源:post.php
示例9: trigger
/**
* Triggers CB events
*
* Current events: profileIntegration=0/1, avatarIntegration=0/1
**/
function trigger($event, &$params)
{
global $_PLUGINS;
$fbConfig =& CKunenaConfig::getInstance();
$params['config'] =& $fbConfig;
$_PLUGINS->loadPluginGroup('user');
$_PLUGINS->trigger('kunenaIntegration', array($event, &$fbConfig, &$params));
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:13, 代码来源:kunena.communitybuilder.php
示例10: KUNENA_get_pathway
/**
* Function to print the pathway
* @param object database object
* @param object category object
* @param int the post id
* @param boolean set title
*/
function KUNENA_get_pathway(&$kunena_db, $obj_fb_cat, $bool_set_title, $obj_post = 0)
{
global $fbIcons;
$document =& JFactory::getDocument();
$fbConfig =& CKunenaConfig::getInstance();
//Get the Category's parent category name for breadcrumb
$kunena_db->setQuery("SELECT name, id FROM #__fb_categories WHERE id='" . $obj_fb_cat->getParent()) . "'";
$objCatParentInfo = $kunena_db->loadObject();
check_dberror("Unable to load categories.");
//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='" . $obj_fb_cat->getId() . "'");
$modslist = $kunena_db->loadObjectList();
check_dberror("Unable to load moderators.");
// echo '<div class="fb_pathway">';
// List of Forums
// show folder icon
$return = '<img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" border="0" alt="' . _GEN_FORUMLIST . '" style="vertical-align: middle;" /> ';
// link to List of Forum Categories
$return .= ' ' . fb_Link::GetKunenaLink(_GEN_FORUMLIST) . '<br />';
// List of Categories
if ($objCatParentInfo) {
if ($bool_set_title) {
$document->setTitle(stripslashes($objCatParentInfo->name) . ' - ' . stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title));
}
// show lines
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="' . $objCatParentInfo->name . '" border="0" style="vertical-align: middle;" /> ';
// link to Category
$return .= ' ' . fblink::GetCategoryLink('listcat', $objCatParentInfo->id, $objCatParentInfo->name) . '<br />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
} else {
if ($bool_set_title) {
$document->setTitle(stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title));
}
}
// Forum
// show lines
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="+" border="0" style="vertical-align: middle;" /> ';
// Link to forum
$return .= ' ' . fbLink::GetCategoryLink('listcat', $obj_fb_cat->getId(), $obj_fb_cat->getName());
//check if this forum is locked
if ($obj_fb_cat->getLocked()) {
$return .= isset($fbIcons['forumlocked']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forumlocked'] . '" border="0" alt="' . _GEN_LOCKED_FORUM . '" title="' . _GEN_LOCKED_FORUM . '"/>' : ' <img src="' . KUNENA_URLIMAGESPATH . 'lock.gif" border="0" width="13" height="13" alt="' . _GEN_LOCKED_FORUM . '" title="' . _GEN_LOCKED_FORUM . '">';
}
// check if this forum is reviewed
if ($obj_fb_cat->getReview()) {
$return .= isset($fbIcons['forumreviewed']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forumreviewed'] . '" border="0" alt="' . _GEN_REVIEWED . '" title="' . _GEN_REVIEWED . '"/>' : ' <img src="' . KUNENA_URLIMAGESPATH . 'review.gif" border="0" width="15" height="15" alt="' . _GEN_REVIEWED . '" title="' . _GEN_REVIEWED . '">';
}
//check if this forum is moderated
if ($obj_fb_cat->getModerated()) {
$return .= isset($fbIcons['forummoderated']) ? ' <img src="' . KUNENA_URLICONSPATH . $fbIcons['forummoderated'] . '" border="0" alt="' . _GEN_MODERATED . '" title="' . _GEN_MODERATED . '"/>' : ' <img src="' . KUNENA_URLEMOTIONSPATH . 'moderate.gif" border="0" alt="' . _GEN_MODERATED . '" title="' . _GEN_MODERATED . '"/>';
$text = '';
if (count($modslist) > 0) {
foreach ($modslist as $mod) {
$text = $text . ', ' . $mod->username;
}
$return .= ' (' . _GEN_MODERATORS . ': ' . ltrim($text, ",") . ')';
}
}
if ($obj_post != 0) {
if ($bool_set_title) {
$document->setTitle(stripslashes($obj_post->subject) . ' - ' . stripslashes($fbConfig->board_title));
}
// Topic
// show lines
$return .= '<br /> <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-blank.gif" alt="| " border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'tree-end.gif" alt="|-" border="0" style="vertical-align: middle;" />';
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'folder.gif" alt="+" border="0" style="vertical-align: middle;" /> ';
$return .= ' <b>' . $obj_post->subject . '</b>';
// Check if the Topic is locked?
if ((int) $obj_post->locked != 0) {
$return .= ' <img src="' . KUNENA_URLIMAGESPATH . 'lock.gif" border="0" width="13" height="13" alt="' . _GEN_LOCKED_TOPIC . '" title="' . _GEN_LOCKED_TOPIC . '"/>';
}
}
// echo '</div>';
return $return;
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:86, 代码来源:fb_layout.php
示例11: CKunenaUsers
function CKunenaUsers()
{
$fbConfig =& CKunenaConfig::getInstance();
if ($fbConfig->username == 1) {
$this->mapping['name'] = $this->mapping['username'];
}
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:7, 代码来源:kunena.user.class.php
示例12: smileypath
function smileypath()
{
$fbConfig =& CKunenaConfig::getInstance();
if (is_dir(KUNENA_PATH_TEMPLATE . DS . $fbConfig->template . '/images/' . KUNENA_LANGUAGE . '/emoticons')) {
$smiley_live_path = JURI::root() . '/components/com_kunena/template/' . $fbConfig->template . '/images/' . KUNENA_LANGUAGE . '/emoticons';
$smiley_abs_path = KUNENA_PATH_TEMPLATE . DS . $fbConfig->template . '/images/' . KUNENA_LANGUAGE . '/emoticons';
} else {
$smiley_live_path = KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'images/' . KUNENA_LANGUAGE . '/emoticons';
$smiley_abs_path = KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'images/' . KUNENA_LANGUAGE . '/emoticons';
}
$smileypath['live'] = $smiley_live_path;
$smileypath['abs'] = $smiley_abs_path;
return $smileypath;
}
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:14, 代码来源:admin.kunena.php
示例13: showlist
function showlist($ulrows, $total_results, $pageNav, $limitstart, $query_ext, $search = "")
{
$app =& JFactory::getApplication();
$fbConfig =& CKunenaConfig::getInstance();
$kunena_db =& JFactory::getDBO();
if ($search == "") {
$search = _KUNENA_USRL_SEARCH;
}
?>
<script type = "text/javascript">
<!--
function validate()
{
if ((document.usrlform.search == "") || (document.usrlform.search.value == ""))
{
alert('<?php
echo _KUNENA_USRL_SEARCH_ALERT;
?>
');
return false;
}
else
{
return true;
}
}
//-->
</script>
<?php
if ($fbConfig->joomlastyle < 1) {
$boardclass = "fb_";
}
?>
<div class="<?php
echo $boardclass;
?>
_bt_cvr1">
<div class="<?php
echo $boardclass;
?>
_bt_cvr2">
<div class="<?php
echo $boardclass;
?>
_bt_cvr3">
<div class="<?php
echo $boardclass;
?>
_bt_cvr4">
<div class="<?php
echo $boardclass;
?>
_bt_cvr5">
<table class = "fb_blocktable" id ="fb_userlist" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
<thead>
<tr>
<th>
<table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
<tr>
<td align = "left">
<div class = "fb_title_cover fbm">
<span class="fb_title fbl"> <?php
echo _KUNENA_USRL_USERLIST;
?>
</span>
<?php
printf(_KUNENA_USRL_REGISTERED_USERS, $app->getCfg('sitename'), $total_results);
?>
</div>
</td>
<td align = "right">
<form name = "usrlform" method = "post" action = "<?php
echo CKunenaLink::GetUserlistURL();
?>
" onsubmit = "return validate()">
<input type = "text"
name = "search"
class = "inputbox"
style = "width:150px"
maxlength = "100" value = "<?php
echo $search;
?>
" onblur = "if(this.value=='') this.value='<?php
echo $search;
?>
';" onfocus = "if(this.value=='<?php
echo $search;
?>
') this.value='';" />
<input type = "image" src = "<?php
echo KUNENA_TMPLTMAINIMGURL . '/images/usl_search_icon.gif';
?>
" alt = "<?php
echo _KUNENA_USRL_SEARCH;
?>
//.........这里部分代码省略.........
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:101, 代码来源:userlist.php
示例14: __construct
function __construct()
{
$this->_db = JFactory::getDBO();
$this->config = CKunenaConfig::getInstance();
$this->document =& JFactory::getDocument();
}
开发者ID:vuchannguyen, 项目名称:hoctap, 代码行数:6, 代码来源:kunena.pathway.class.php
示例15: jbListMessages
/**
* Lists messages to be moderated
* @param array allMes list of object
* @param string fbs action string
*/
function jbListMessages($allMes, $catid)
{
$fbConfig =& CKunenaConfig::getInstance();
echo '<form action="' . JRoute::_(KUNENA_LIVEURLREL . '&func=review') . '" name="moderation" method="post">';
?>
<script>
function ConfirmDelete()
{
if (confirm("<?php
echo _MODERATION_DELETE_MESSAGE;
?>
"))
document.moderation.submit();
else
return false;
}
</script>
<table width = "100%" border = 0 cellspacing = 1 cellpadding = 3>
<tr height = "10" class = "fb_table_header">
<th align = "center">
<b><?php
echo _GEN_DATE;
?>
</b>
</th>
<th width = "8%" align = "center">
<b><?php
echo _GEN_AUTHOR;
?>
</b>
</th>
<th width = "13%" align = "center">
<b><?php
echo _GEN_SUBJECT;
?>
</b>
</th>
<th width = "55%" align = "center">
<b><?php
echo _GEN_MESSAGE;
?>
</b>
</th>
<th width = "13%" align = "center">
<b><?php
echo _GEN_ACTION;
?>
</b>
</th>
</tr>
<?php
$i = 1;
//avoid calling it each time
$smileyList = smile::getEmoticons("");
foreach ($allMes as $message) {
$i = 1 - $i;
echo '<tr class="fb_message' . $i . '">';
echo '<td valign="top">' . date(_DATETIME, $message->time) . '</td>';
echo '<td valign="top">' . $message->name . '</td>';
echo '<td valign="top"><b>' . $message->subject . '<b></td>';
$fb_message_txt = stripslashes($message->message);
echo '<td valign="top">' . smile::smileReplace($fb_message_txt, 0, $fbConfig->disemoticons, $smileyList) . '</td>';
echo '<td valign="top"><input type="checkbox" name="cid[]" value="' . $message->id . '" /></td>';
echo '</tr>';
}
?>
<tr>
<td colspan = "5" align = "center" valign = "top" style = "text-align:center">
<input type = "hidden" name = "catid" value = "<?php
echo $catid;
?>
"/>
<input type = "submit"
align = "center"
class = "button" name = "action" value = "<?php
echo _MOD_APPROVE;
?>
" border = "0"> <input type = "submit" align = "center" class = "button" name = "action" onclick = "ConfirmDelete()" value = "<?php
echo _MOD_DELETE;
?>
" border = "0">
</td>
</tr>
<tr height = "10" bgcolor = "#e2e2e2">
<td colspan = "5">
//.........这里部分代码省略.........
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:101, 代码来源:moderate_messages.php
示例16: getAvatarKunena
function getAvatarKunena($userID)
{
if (file_exists(JPATH_SITE . DS . "components" . DS . "com_kunena" . DS . "lib" . DS . "kunena.user.class.php")) {
require_once JPATH_SITE . DS . "components" . DS . "com_kunena" . DS . "lib" . DS . "kunena.user.class.php";
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$fbConfig = CKunenaConfig::getInstance();
//print_r($fbConfig);die();
if ($fbConfig->avatar_src == 'fb') {
//get avatar image from database
$db = JFactory::getDBO();
$sql = "SELECT `avatar` FROM #__fb_users WHERE `userid`='{$userID}'";
$db->setQuery($sql);
//die($db->getQuery ());
$imgPath = $db->loadResult();
if ($imgPath) {
$fireboardAvatar = '';
if (@(!is_null($fbConfig->version)) && @isset($fbConfig->version) && @$fbConfig->version == '1.0.1') {
$fireboardAvatar = 'components/com_kunena/' . $imgPath;
} else {
$fireboardAvatar = 'images/fbfiles/avatars/' . $imgPath;
}
//check exist image of user
if (file_exists(JPATH_SITE . DS . $fireboardAvatar)) {
return JURI::root() . $fireboardAvatar;
} else {
// Return false if Image file doesn't exist.
return false;
}
} else {
// user don't use avatar.
return false;
}
}
}
return false;
}
开发者ID:jomsocial, 项目名称:JSVoice, 代码行数:37, 代码来源:jahelper.php
示例17: getConfig
/**
* Get a Kunena configuration object
*
* Returns the global {@link CKunenaConfig} object, only creating it if it doesn't already exist.
*
* @return object CKunenaConfig
*/
public static function getConfig()
{
require_once(KPATH_SITE.'/lib/kunena.config.class.php');
return CKunenaConfig::getInstance();
}
开发者ID:rich20, 项目名称:Kunena, 代码行数:12, 代码来源:factory.php
示例18: ReportForm
function ReportForm($id, $catid)
{
$app =& JFactory::getApplication();
$fbConfig =& CKunenaConfig::getInstance();
$kunena_my =& JFactory::getUser();
$redirect = JRoute::_(KUNENA_LIVEURLREL . '&func=view&catid=' . $catid . '&id=' . $id . '&Itemid=' . KUNENA_COMPONENT_ITEMID) . '#' . $id;
//$redirect = JRoute::_($redirect);
if (!$kunena_my->id) {
$app->redirect($redirect);
return;
}
if ($fbConfig->reportmsg == 0) {
$app->redirect($redirect);
return;
}
?>
<div class = "<?php
echo $boardclass;
?>
_bt_cvr1">
<div class = "<?php
echo $boardclass;
?>
_bt_cvr2">
<div class = "<?php
echo $boardclass;
?>
_bt_cvr3">
<div class = "<?php
echo $boardclass;
?>
_bt_cvr4">
<div class = "<?php
echo $boardclass;
?>
_bt_cvr5">
<table class = "fb_blocktable" id = "fb_forumfaq" border = "0" cellspacing = "0" cellpadding = "0" width = "100%">
<thead>
<tr>
<th>
<div class = "fb_title_cover">
<span class = "fb_title"><?php
echo _KUNENA_COM_A_REPORT;
?>
</span>
</div>
</tr>
</thead>
<tbody>
<tr>
<td class = "fb_faqdesc">
<form method = "post" action = "<?php
echo JRoute::_(KUNENA_LIVEURLREL . '&func=report');
?>
">
<table width = "100%" border = "0">
<tr>
<td width = "10%">
<?php
echo _KUNENA_REPORT_REASON;
?>
:
</td>
<td>
<input type = "text" name = "reason" class = "inputbox" size = "30"/>
</td>
</tr>
<tr>
<td colspan = "2">
<?php
echo _KUNENA_REPORT_MESSAGE;
?>
:
</td>
</tr>
<tr>
<td colspan = "2">
<textarea id = "text" name = "text" cols = "40" rows = "10" class = "inputbox"></textarea>
</td>
</tr>
</table>
<input type = "hidden" name = "do" value = "report"/>
<input type = "hidden" name = "id" value = "<?php
echo $id;
?>
"/>
<input type = "hidden" name = "catid" value = "<?php
echo $catid;
?>
"/>
<input type = "hidden" name = "reporter" value = "<?php
echo $kunena_my->id;
?>
"/>
//.........这里部分代码省略.........
开发者ID:kaantunc, 项目名称:MYK-BOR, 代码行数:101, 代码来源:report.php
The BolunHan/Krypton repository through 2021-06-03 on GitHub allows absolute pat
阅读:686| 2022-07-29
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1223| 2022-08-30
ozzieperez/packtpub-library-downloader: Script to download all your PacktPub ebo
阅读:535| 2022-08-15
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1136| 2022-08-17
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:947| 2022-11-06
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1344| 2022-08-18
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:491| 2022-08-16
PacktPublishing/Mastering-Embedded-Linux-Programming-Third-Edition: Mastering Em
阅读:747| 2022-08-15
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:644| 2022-11-06
shem8/MaterialLogin: Login view with material design
阅读:726| 2022-08-17
请发表评论