本文整理汇总了PHP中getmodulepath函数的典型用法代码示例。如果您正苦于以下问题:PHP getmodulepath函数的具体用法?PHP getmodulepath怎么用?PHP getmodulepath使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getmodulepath函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: search_gallery
function search_gallery($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('gallery') . 'functions.php';
//Suchstring generieren
$tagmatches = gallery_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$search1[] = "caption LIKE '" . addslashes_like($item) . "'";
$search2[] = " ( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " title LIKE '%" . addslashes_like($item) . "%' OR description LIKE '%" . addslashes_like($item) . "%' ) ";
}
$searchstring1 = implode($conn, $search1);
$searchstring2 = implode($conn, $search2);
//Bilder durchsuchen
$data = $db->fetch("SELECT galid FROM " . PRE . "_gallery_pics WHERE ( active='1' AND ( " . $searchstring1 . " ) ) GROUP BY galid");
$galids = get_ids($data, 'galid');
if (count($galids)) {
$picres = " id IN (" . @implode(',', $galids) . ") OR ";
}
//Ergebnisse
$data = $db->fetch("SELECT id,title FROM " . PRE . "_gallery WHERE ( searchable='1' AND '" . time() . "' BETWEEN starttime AND endtime " . section_filter() . " AND ( " . $picres . " ( " . $searchstring2 . " ) ) ) ORDER BY title ASC");
if (count($data)) {
foreach ($data as $res) {
++$i;
$result[$i]['TITLE'] = strip_tags($res['title']);
$result[$i]['LINK'] = mklink('gallery.php?id=' . $res['id'], 'gallery,list' . $res['id'] . ',1' . urlformat($res['title']) . '.html');
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:30,代码来源:search.php
示例2: forum_threads_updated
function forum_threads_updated($count = 5, $inforumid = 0, $notforumid = 0, $template = 'updated')
{
require_once BASEDIR . getmodulepath('forum') . 'functions.php';
global $set, $apx, $db;
$count = (int) $count;
//Erlaubte Foren
if (is_int($forumid)) {
$inforum = array($inforumid);
} else {
$inforum = intlist($inforumid);
}
if (is_int($notforumid)) {
$notforum = array($notforumid);
} else {
$notforum = intlist($notforumid);
}
$forumids = forum_allowed_forums($inforum, $notforum);
//Daten auslesen
$fields = implode(',', array('threadid', 'prefix', 'title', 'opener_userid', 'opener', 'opentime', 'lastposter_userid', 'lastposter', 'lastposttime', 'posts', 'views'));
if (count($forumids)) {
$data = $db->fetch("SELECT " . $fields . " FROM " . PRE . "_forum_threads WHERE ( del=0 AND moved=0 AND forumid IN (" . implode(',', $forumids) . ") ) ORDER BY lastposttime DESC " . iif($count, "LIMIT " . $count));
} else {
$data = array();
}
forum_threads_print($data, $template, 'lastposttime');
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:26,代码来源:tfunctions.php
示例3: connect
function connect()
{
global $set, $db, $apx;
//PHP5 benötigt
if (version_compare(phpversion(), '5', '<')) {
message($apx->lang->get('MSG_PHP5ONLY'));
return;
}
require BASEDIR . getmodulepath('twitter') . 'epitwitter/class.epicurl.php';
require BASEDIR . getmodulepath('twitter') . 'epitwitter/class.epioauth.php';
require BASEDIR . getmodulepath('twitter') . 'epitwitter/class.epitwitter.php';
$consumer_key = 'nJFE6htU7i5Bf637pvdLBg';
$consumer_secret = '7P4dgrc5OT6Ic0ePE6xz9u69weqNwpBQxkigRJhHk';
if ($_GET['oauth_token'] && $_GET['oauth_verifier']) {
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
$twitterObj->setToken($_GET['oauth_token']);
$token = $twitterObj->getAccessToken(array('oauth_verifier' => $_GET['oauth_verifier']));
$db->query("UPDATE " . PRE . "_config SET value='" . addslashes($token->oauth_token) . "' WHERE module='twitter' AND varname='oauth_token' LIMIT 1");
$db->query("UPDATE " . PRE . "_config SET value='" . addslashes($token->oauth_token_secret) . "' WHERE module='twitter' AND varname='oauth_secret' LIMIT 1");
$twitterObj->setToken($token->oauth_token, $token->oauth_token_secret);
$twitterInfo = $twitterObj->get_accountVerify_credentials();
message($apx->lang->get('MSG_DONE', array('ACCOUNT' => $twitterInfo->screen_name)), 'action.php?action=main.mconfig&module=twitter');
} else {
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
$redirect = $twitterObj->getAuthorizeUrl(null, array('oauth_callback' => HTTP_HOST . HTTPDIR . 'admin/action.php?action=twitter.connect'));
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $redirect);
}
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:29,代码来源:admin.php
示例4: execute_action
function execute_action()
{
if (!file_exists(BASEDIR . getmodulepath($this->module()) . 'admin.php')) {
message($this->lang->get('CORE_MISSADMIN'));
} elseif (!isset($this->actions[$this->module()][$this->action()])) {
message($this->lang->get('CORE_NOTREG'));
} elseif (!$this->user->has_right($_REQUEST['action'])) {
if ($this->user->info['userid']) {
message($this->lang->get('CORE_NORIGHT'));
} else {
header("HTTP/1.1 301 Moved Permanently");
header('Location: action.php?action=user.login');
exit;
}
} else {
$this->lang->dropaction();
//Action-Sprachpaket des Moduls laden
require_once BASEDIR . getmodulepath($this->module()) . 'admin.php';
$adminclass = new action();
$action = $this->action();
if (method_exists($adminclass, $action)) {
$adminclass->{$action}();
} else {
message($this->lang->get('CORE_METHODFAIL'));
}
}
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:27,代码来源:class.apexx.admin.php
示例5: misc_products_comments
function misc_products_comments()
{
global $set, $db, $apx, $user;
$_REQUEST['id'] = (int) $_REQUEST['id'];
if (!$_REQUEST['id']) {
die('missing ID!');
}
$apx->tmpl->loaddesign('blank');
require_once BASEDIR . getmodulepath('calendar') . 'functions.php';
products_showcomments($_REQUEST['id']);
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:11,代码来源:misc.php
示例6: action
function action()
{
global $apx;
//if ( $_REQUEST['module'] && !$apx->is_module($_REQUEST['module']) ) die('module does not exist!');
$this->module = $_REQUEST['module'];
$this->mid = (int) $_REQUEST['mid'];
$apx->tmpl->assign('MODULE', $this->module);
$apx->tmpl->assign('MID', $this->mid);
//Settings
require_once BASEDIR . getmodulepath('comments') . 'class.comments.php';
$this->coms = @new comments($this->module);
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:12,代码来源:admin.php
示例7: content_showcomments
function content_showcomments($id)
{
global $set, $db, $apx, $user;
$res = $db->first("SELECT allowcoms FROM " . PRE . "_content WHERE ( id='" . $id . "' AND active='1' " . section_filter() . " ) LIMIT 1");
if (!$apx->is_module('comments') || !$set['content']['coms'] || !$res['allowcoms']) {
return;
}
require_once BASEDIR . getmodulepath('comments') . 'class.comments.php';
$coms = new comments('content', $id);
$coms->assign_comments();
$apx->tmpl->parse('comments', 'comments');
require 'lib/_end.php';
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:13,代码来源:functions.php
示例8: comments_usercount
function comments_usercount($userid = 0, $template = 'commentcount')
{
global $apx, $db, $set;
$userid = (int) $userid;
if (!$userid) {
return;
}
include BASEDIR . getmodulepath('comments') . 'functions.php';
$tmpl = new tengine();
$apx->lang->drop('commentcount', 'comments');
$tmpl->assign('COUNT', comments_count($userid));
$tmpl->assign('USERID', $userid);
$tmpl->parse('functions/' . $template, 'comments');
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:14,代码来源:tfunctions.php
示例9: search_poll
function search_poll($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('poll') . 'functions.php';
$tagmatches = poll_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$query = " ( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " question LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a1 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a2 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a3 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a4 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a5 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a6 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a7 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a8 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a9 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a10 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a11 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a12 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a13 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a14 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a15 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a16 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a17 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a18 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a19 LIKE '%" . addslashes_like($item) . "%'";
$query .= " OR a20 LIKE '%" . addslashes_like($item) . "%' )";
$search[] = $query;
}
$searchstring = implode($conn, $search);
//Aktuelle Umfrage
require_once BASEDIR . getmodulepath('poll') . 'functions.php';
$recent = poll_recent();
//Ergebnisse
$data = $db->fetch("SELECT id,question FROM " . PRE . "_poll WHERE ( searchable='1' AND '" . time() . "' BETWEEN starttime AND endtime " . section_filter() . " AND ( " . $searchstring . " ) ) ORDER BY starttime DESC");
if (count($data)) {
foreach ($data as $res) {
++$i;
if ($res['id'] == $recent) {
$link = mklink('poll.php?recent=1', 'poll,recent.html');
} else {
$link = mklink('poll.php?id=' . $res['id'], 'poll,' . $res['id'] . '.html');
}
$result[$i]['TITLE'] = strip_tags($res['question']);
$result[$i]['LINK'] = $link;
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:50,代码来源:search.php
示例10: forum_allowed_forums
function forum_allowed_forums($inforumid = array(), $notforumid = array())
{
static $readable;
require_once BASEDIR . getmodulepath('forum') . 'basics.php';
//Erlaubte Foren auslesen
if (!isset($readable)) {
$readable_info = forum_get_readable();
$readable = get_ids($readable_info, 'forumid');
}
$ids = $readable;
//Gewünschte Foren ermitteln
if (is_array($inforumid) && count($inforumid)) {
$ids = array_intersect($ids, $inforumid);
}
if (is_array($notforumid) && count($notforumid)) {
$ids = array_diff($ids, $notforumid);
}
return $ids;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:19,代码来源:functions.php
示例11: search_glossar
function search_glossar($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('glossar') . 'functions.php';
//Suchstring generieren
$tagmatches = glossar_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$search[] = " ( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " title LIKE '%" . addslashes_like($item) . "%' OR text LIKE '%" . addslashes_like($item) . "%' ) ";
}
$searchstring = implode($conn, $search);
//Ergebnisse
$data = $db->fetch("SELECT id,title FROM " . PRE . "_glossar WHERE ( searchable='1' AND starttime!='0' AND ( " . $searchstring . " ) ) ORDER BY title ASC");
if (count($data)) {
foreach ($data as $res) {
++$i;
$result[$i]['TITLE'] = strip_tags($res['title']);
$result[$i]['LINK'] = mklink('glossar.php?id=' . $res['id'], 'glossar,id' . $res['id'] . urlformat($res['title']) . '.html');
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:22,代码来源:search.php
示例12: search_videos
function search_videos($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('videos') . 'functions.php';
//Suchstring generieren
$tagmatches = videos_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$search[] = " ( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " title LIKE '%" . addslashes_like($item) . "%' OR text LIKE '%" . addslashes_like($item) . "%' ) ";
}
$searchstring = implode($conn, $search);
//Videos durchsuchen
$data = $db->fetch("SELECT id,title FROM " . PRE . "_videos WHERE ( searchable='1' AND '" . time() . "' BETWEEN starttime AND endtime " . section_filter() . " AND ( " . $searchstring . " ) ) ORDER BY addtime DESC");
if (count($data)) {
foreach ($data as $res) {
++$i;
$result[$i]['TITLE'] = $res['title'];
$result[$i]['LINK'] = mklink('videos.php?id=' . $res['id'], 'videos,id' . $res['id'] . urlformat($res['title']) . '.html');
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:22,代码来源:search.php
示例13: search_calendar
function search_calendar($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('calendar') . 'functions.php';
//Suchstring generieren
$tagmatches = calendar_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$search[] = " ( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " title LIKE '%" . addslashes_like($item) . "%' OR text LIKE '%" . addslashes_like($item) . "%' ) ";
}
$searchstring = implode($conn, $search);
//Ergebnisse
$data = $db->fetch("SELECT id,title FROM " . PRE . "_calendar_events WHERE ( active!=0 AND private=0 " . section_filter() . " AND ( " . $searchstring . " ) ) ORDER BY startday ASC, starttime ASC, title ASC");
if (count($data)) {
foreach ($data as $res) {
++$i;
$link = mklink('events.php?id=' . $res['id'], 'events,id' . $res['id'] . urlformat($res['title']) . '.html');
$result[$i]['TITLE'] = strip_tags($res['title']);
$result[$i]['LINK'] = $link;
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:23,代码来源:search.php
示例14: search_articles
function search_articles($items, $conn)
{
global $set, $db, $apx, $user;
require_once BASEDIR . getmodulepath('articles') . 'functions.php';
//Suchstrings generieren
$tagmatches = articles_match_tags($items);
foreach ($items as $item) {
$tagmatch = array_shift($tagmatches);
$search1[] = "( title LIKE '%" . addslashes_like($item) . "%' OR text LIKE '%" . addslashes_like($item) . "%' ) ";
$search2[] = "( " . iif($tagmatch, " id IN (" . implode(',', $tagmatch) . ") OR ") . " title LIKE '%" . addslashes_like($item) . "%' OR subtitle LIKE '%" . addslashes_like($item) . "%' OR teaser LIKE '%" . addslashes_like($item) . "%' ) ";
}
$searchstring1 = "( " . implode($conn, $search1) . " )";
$searchstring2 = "( " . implode($conn, $search2) . " )";
//Seiten durchsuchen
$data = $db->fetch("SELECT artid FROM " . PRE . "_articles_pages WHERE ( " . $searchstring1 . " ) GROUP BY artid");
$artids = get_ids($data, 'artid');
if (count($artids)) {
$pageres = "id IN (" . @implode(',', $artids) . ") OR";
}
//Artikel durchsuchen
$data = $db->fetch("SELECT id,type,title,subtitle FROM " . PRE . "_articles WHERE ( searchable='1' AND '" . time() . "' BETWEEN starttime AND endtime " . section_filter() . " AND ( " . $pageres . " " . $searchstring2 . " ) ) ORDER BY starttime DESC");
if (count($data)) {
foreach ($data as $res) {
++$i;
//Wohin soll verlinkt werden?
if ($res['type'] == 'normal') {
$link2file = 'articles';
} else {
$link2file = $res['type'] . 's';
}
$link = mklink($link2file . '.php?id=' . $res['id'], $link2file . ',id' . $res['id'] . ',0' . urlformat($res['title']) . '.html');
$result[$i]['TITLE'] = strip_tags($res['title']) . iif($res['subtitle'], ' - ' . strip_tags($res['subtitle']));
$result[$i]['LINK'] = $link;
}
}
return $result;
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:37,代码来源:search.php
示例15: define
| apexx CMS & Portalsystem |
| ============================ |
| (c) Copyright 2005-2009, Christian Scheb |
| http://www.stylemotion.de |
| |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION! |
| SOFTWARE BELONGS TO ITS AUTHORS! |
\***************************************************************/
define('APXRUN', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
require_once BASEDIR . getmodulepath('calendar') . 'functions.php';
$apx->module('calendar');
$apx->lang->drop('send');
headline($apx->lang->get('HEADLINE'), mklink('sendevent.php', 'sendevent.html'));
titlebar($apx->lang->get('HEADLINE'));
////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($_POST['send']) {
list($spam) = $db->first("SELECT addtime FROM " . PRE . "_calendar_events WHERE send_ip='" . get_remoteaddr() . "' ORDER BY addtime DESC");
//Captcha prüfen
if ($set['calendar']['captcha'] && !$user->info['userid']) {
require BASEDIR . 'lib/class.captcha.php';
$captcha = new captcha();
$captchafailed = $captcha->check();
}
if ($captchafailed) {
message($apx->lang->get('MSG_WRONGCODE'), 'javascript:history.back()');
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:sendevent.php
示例16: die
| |
| apexx CMS & Portalsystem |
| ============================ |
| (c) Copyright 2005-2009, Christian Scheb |
| http://www.stylemotion.de |
| |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION! |
| SOFTWARE BELONGS TO ITS AUTHORS! |
\***************************************************************/
//Security-Check
if (!defined('APXRUN')) {
die('You are not allowed to execute this file directly!');
}
require_once BASEDIR . getmodulepath('links') . 'functions.php';
//Kommentar-Popup
function misc_links_comments()
{
global $set, $db, $apx, $user;
$_REQUEST['id'] = (int) $_REQUEST['id'];
if (!$_REQUEST['id']) {
die('missing ID!');
}
$apx->tmpl->loaddesign('blank');
links_showcomments($_REQUEST['id']);
}
//Link aufrufen
function misc_gotolink()
{
global $set, $db, $apx, $user;
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:misc.php
示例17: define
| (c) Copyright 2005-2009, Christian Scheb |
| http://www.stylemotion.de |
| |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION! |
| SOFTWARE BELONGS TO ITS AUTHORS! |
\***************************************************************/
define('APXRUN', true);
define('NOSTATS', true);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_start.php';
//////////////////////////////////////////////////////////// SYSTEMSTART ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
//Funktionen laden
foreach ($apx->modules as $module => $info) {
if (!file_exists(BASEDIR . getmodulepath($module) . 'misc.php')) {
continue;
}
include_once BASEDIR . getmodulepath($module) . 'misc.php';
}
$call = 'misc_' . $_REQUEST['action'];
if (!function_exists($call)) {
die('action does not exist!');
}
//Aktion ausführen
$call();
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
/////////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:misc.php
示例18: die
| (c) Copyright 2005-2009, Christian Scheb |
| http://www.stylemotion.de |
| |
|---------------------------------------------------------------|
| THIS SOFTWARE IS NOT FREE! MAKE SURE YOU OWN A VALID LICENSE! |
| DO NOT REMOVE ANY COPYRIGHTS WITHOUT PERMISSION! |
| SOFTWARE BELONGS TO ITS AUTHORS! |
\***************************************************************/
# PRODUCTS CLASS
# ==============
//Security-Check
if (!defined('APXRUN')) {
die('You are not allowed to execute this file directly!');
}
//Funktionen laden
include BASEDIR . getmodulepath('products') . 'admin_extend.php';
class action extends products_functions
{
//Produkttypen
var $types = array('game', 'software', 'hardware', 'music', 'movie', 'book');
var $genretypes = array('game', 'music', 'movie', 'book');
var $mediatypes = array('game', 'software', 'music', 'movie', 'book');
var $alltypes = array('normal', 'game', 'software', 'hardware', 'music', 'movie', 'book');
//***************************** Spiele zeigen *****************************
function show()
{
global $set, $db, $apx, $html;
//Suche durchführen
if ($_REQUEST['item'] && ($_REQUEST['title'] || $_REQUEST['text'])) {
$where = '';
//Suche wird ausgeführt...
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:admin.php
示例19: mklink
} else {
$coms->mid = $res['id'];
}
$link = mklink('videos.php?id=' . $res['id'], 'videos,id' . $res['id'] . urlformat($res['title']) . '.html');
$tabledata[$i]['COMMENT_COUNT'] = $coms->count();
$tabledata[$i]['COMMENT_LINK'] = $coms->link($link);
$tabledata[$i]['DISPLAY_COMMENTS'] = 1;
if (in_template(array('VIDEO.COMMENT_LAST_USERID', 'VIDEO.COMMENT_LAST_NAME', 'VIDEO.COMMENT_LAST_TIME'), $parse)) {
$tabledata[$i]['COMMENT_LAST_USERID'] = $coms->last_userid();
$tabledata[$i]['COMMENT_LAST_NAME'] = $coms->last_name();
$tabledata[$i]['COMMENT_LAST_TIME'] = $coms->last_time();
}
}
//Bewertungen
if ($apx->is_module('ratings') && $set['videos']['ratings'] && $res['allowrating']) {
require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
if (!isset($rate)) {
$rate = new ratings('videos', $res['id']);
} else {
$rate->mid = $res['id'];
}
$tabledata[$i]['RATING'] = $rate->display();
$tabledata[$i]['RATING_VOTES'] = $rate->count();
$tabledata[$i]['DISPLAY_RATING'] = 1;
}
}
}
//Sortby
ordervars($orderdef, mklink('videos.php?catid=' . $_REQUEST['catid'], 'videos,' . $_REQUEST['catid'] . ',1.html'));
$apx->tmpl->assign('VIDEO', $tabledata);
$apx->tmpl->parse('index');
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:31,代码来源:videos.php
示例20: glossar_showcomments
function glossar_showcomments($id)
{
global $set, $db, $apx, $user;
$id = (int) $id;
$res = $db->first("SELECT id,allowcoms FROM " . PRE . "_glossar WHERE ( id='" . $id . "' AND starttime!='0' ) LIMIT 1");
if (!$apx->is_module('comments') || !$set['glossar']['coms'] || !$res['allowcoms']) {
return;
}
require_once BASEDIR . getmodulepath('comments') . 'class.comments.php';
$coms = new comments('glossar', $id);
$coms->assign_comments();
$apx->tmpl->parse('comments', 'comments');
require 'lib/_end.php';
}
开发者ID:bigfraggle,项目名称:open-apexx,代码行数:14,代码来源:functions.php
注:本文中的getmodulepath函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论