コード例 #1
0
 function tag_get_delimiter()
 {
     xoops_loadLanguage("config", "tag");
     if (!empty($GLOBALS["tag_delimiter"])) {
         return $GLOBALS["tag_delimiter"];
     }
     $moduleConfig = tag_load_config();
     if (!empty($moduleConfig["tag_delimiter"])) {
         return $moduleConfig["tag_delimiter"];
     }
     return array(",", " ", "|", ";");
 }
コード例 #2
0
ファイル: functions.ini.php プロジェクト: severnaya99/Sg-2010
 function tag_get_delimiter()
 {
     if (!@(include XOOPS_ROOT_PATH . "/modules/tag/language/" . $GLOBALS["xoopsConfig"]["language"] . "/config.php")) {
         @(include XOOPS_ROOT_PATH . "/modules/tag/language/english/config.php");
     }
     if (!empty($GLOBALS["tag_delimiter"])) {
         return $GLOBALS["tag_delimiter"];
     }
     $moduleConfig = tag_load_config();
     if (!empty($moduleConfig["tag_delimiter"])) {
         return $moduleConfig["tag_delimiter"];
     }
     return array(",", " ", "|", ";");
 }
コード例 #3
0
ファイル: view.tag.php プロジェクト: severnaya99/Sg-2010
        redirect_header(XOOPS_URL . "/modules/" . $GLOBALS["xoopsModule"]->getVar("dirname") . "/index.php", 2, TAG_MD_INVALID);
        exit;
    }
    $tag_obj =& $tags_obj[0];
    $tag_id = $tag_obj->getVar("tag_id");
}
if (!empty($tag_desc)) {
    $page_title = $tag_desc;
} else {
    $module_name = "tag" == $xoopsModule->getVar("dirname") ? $xoopsConfig["sitename"] : $xoopsModule->getVar("name");
    $page_title = sprintf(TAG_MD_TAGVIEW, htmlspecialchars($tag_term), $module_name);
}
$xoopsOption["template_main"] = "tag_view.html";
$xoopsOption["xoops_pagetitle"] = strip_tags($page_title);
include XOOPS_ROOT_PATH . "/header.php";
$tag_config = tag_load_config();
tag_define_url_delimiter();
$limit = empty($tag_config["items_perpage"]) ? 10 : $tag_config["items_perpage"];
$sort = "time";
$order = "DESC";
$criteria = new CriteriaCompo(new Criteria("o.tag_id", $tag_id));
$criteria->setSort($sort);
$criteria->setOrder($order);
$criteria->setStart($start);
$criteria->setLimit($limit);
if (!empty($modid)) {
    $criteria->add(new Criteria("o.tag_modid", $modid));
    if ($catid >= 0) {
        $criteria->add(new Criteria("o.tag_catid", $catid));
    }
}
コード例 #4
0
ファイル: vars.php プロジェクト: trabisdementia/xuups
<?php

/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code 
 which is considered copyrighted (c) material of the original comment or credit authors.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * XOOPS tag management module
 *
 * @copyright       The XOOPS project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @since           1.0.0
 * @author          Taiwen Jiang <*****@*****.**>
 * @version         $Id: vars.php 2292 2008-10-12 04:53:18Z phppp $
 * @package         tag
 */
if (!defined("TAG_INI")) {
    define("TAG_INI", 1);
}
//include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.ini.php";
require_once XOOPS_ROOT_PATH . "/modules/tag/include/functions.ini.php";
// include customized variables
if (is_object($GLOBALS["xoopsModule"]) && "tag" == $GLOBALS["xoopsModule"]->getVar("dirname", "n")) {
    $GLOBALS["xoopsModuleConfig"] = tag_load_config();
}
//load_object();