當前位置: 首頁>>代碼示例>>PHP>>正文


PHP jieqi_getconfigs函數代碼示例

本文整理匯總了PHP中jieqi_getconfigs函數的典型用法代碼示例。如果您正苦於以下問題:PHP jieqi_getconfigs函數的具體用法?PHP jieqi_getconfigs怎麽用?PHP jieqi_getconfigs使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了jieqi_getconfigs函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: addlog

 function addlog($data)
 {
     global $jieqiLsort;
     jieqi_getconfigs('system', 'lsort', 'jieqiLsort');
     if (empty($data) || !is_array($data)) {
         return false;
     }
     $newLogs =& $this->create();
     $logtype = isset($data['logtype']) ? intval($data['logtype']) : 0;
     $newLogs->setVar('logtype', $logtype);
     isset($data['siteid']) ? $newLogs->setVar('siteid', intval($data['siteid'])) : $newLogs->setVar('siteid', JIEQI_SITE_ID);
     isset($data['loglevel']) ? $newLogs->setVar('loglevel', intval($data['loglevel'])) : $newLogs->setVar('loglevel', intval($jieqiLsort[$logtype]['loglevel']));
     isset($data['logtime']) ? $newLogs->setVar('logtime', intval($data['logtime'])) : $newLogs->setVar('logtime', JIEQI_NOW_TIME);
     isset($data['userid']) ? $newLogs->setVar('userid', intval($data['userid'])) : $newLogs->setVar('userid', intval($_SESSION['jieqiUserId']));
     isset($data['username']) ? $newLogs->setVar('username', $data['username']) : $newLogs->setVar('username', $_SESSION['jieqiUserName']);
     isset($data['userip']) ? $newLogs->setVar('userip', $data['userip']) : $newLogs->setVar('userip', jieqi_userip());
     isset($data['targetname']) ? $newLogs->setVar('targetname', $data['targetname']) : $newLogs->setVar('targetname', $jieqiLsort[$logtype]['targetname']);
     isset($data['targetid']) ? $newLogs->setVar('targetid', intval($data['targetid'])) : $newLogs->setVar('targetid', 0);
     isset($data['targettitle']) ? $newLogs->setVar('targettitle', $data['targettitle']) : $newLogs->setVar('targettitle', '');
     isset($data['logurl']) ? $newLogs->setVar('logurl', $data['logurl']) : $newLogs->setVar('logurl', jieqi_addurlvars(array(), false, false));
     isset($data['logcode']) ? $newLogs->setVar('logcode', intval($data['logcode'])) : $newLogs->setVar('logcode', 0);
     isset($data['logtitle']) ? $newLogs->setVar('logtitle', $data['logtitle']) : $newLogs->setVar('logtitle', $jieqiLsort[$logtype]['logtitle']);
     isset($data['logdata']) ? $newLogs->setVar('logdata', $data['logdata']) : $newLogs->setVar('logdata', '');
     isset($data['lognote']) ? $newLogs->setVar('lognote', $data['lognote']) : $newLogs->setVar('lognote', '');
     isset($data['fromdata']) ? $newLogs->setVar('fromdata', $data['fromdata']) : $newLogs->setVar('fromdata', '');
     isset($data['todata']) ? $newLogs->setVar('todata', $data['todata']) : $newLogs->setVar('todata', '');
     return $this->insert($newLogs);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:28,代碼來源:logs.php

示例2: setContent

 function setContent()
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     if (empty($_SESSION['jieqiUserId'])) {
         return false;
     } else {
         jieqi_getconfigs('article', 'configs');
         $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
         $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
         $jieqiTpl->assign('article_static_url', $article_static_url);
         $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
         include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
         $article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
         $criteria = new CriteriaCompo(new Criteria('authorid', $_SESSION['jieqiUserId']));
         $article_handler->queryObjects($criteria);
         $articles = array();
         $i = 0;
         while ($v = $article_handler->getObject()) {
             $articles[$i]['url'] = $article_static_url . '/articlemanage.php?id=' . $v->getVar('articleid');
             $articles[$i]['caption'] = $v->getVar('articlename');
             $articles[$i]['goodnum'] = $v->getVar('goodnum');
             $articles[$i]['lastupdate'] = $v->getVar('lastupdate');
             $articles[$i]['id'] = $v->getVar('articleid');
             $i++;
         }
         $jieqiTpl->assign_by_ref('articles', $articles);
     }
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:29,代碼來源:block_myarticles.php

示例3: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('article', 'configs');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     jieqi_includedb();
     $query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
     $criteria = new CriteriaCompo();
     $criteria->setFields("r.*,a.articlename");
     $criteria->setTables(jieqi_dbprefix('article_reviews') . " AS r LEFT JOIN " . jieqi_dbprefix('article_article') . " AS a ON r.ownerid=a.articleid");
     if ($this->exevars['istop'] == 1) {
         $criteria->add(new Criteria('r.istop', '1'));
     } elseif ($this->exevars['istop'] == 2) {
         $criteria->add(new Criteria('r.istop', '0'));
     }
     if ($this->exevars['isgood'] == 1) {
         $criteria->add(new Criteria('r.isgood', '1'));
     } elseif ($this->exevars['isgood'] == 2) {
         $criteria->add(new Criteria('r.isgood', '0'));
     }
     $criteria->setSort('r.topicid');
     $criteria->setOrder('DESC');
     $criteria->setLimit($this->exevars['listnum']);
     $criteria->setStart(0);
     $query->queryObjects($criteria);
     $reviewrows = array();
     $i = 0;
     while ($v = $query->getObject()) {
         $reviewrows[$i]['reviewtitle'] = jieqi_htmlstr(str_replace(array("\r", "\n"), array('', ' '), $v->getVar('title', 'n')));
         $reviewrows[$i]['ownerid'] = $v->getVar('ownerid');
         $reviewrows[$i]['articlename'] = $v->getVar('articlename');
         $reviewrows[$i]['topicid'] = $v->getVar('topicid');
         $reviewrows[$i]['url_review'] = $article_dynamic_url . '/reviews.php?aid=' . $v->getVar('ownerid');
         $reviewrows[$i]['poster'] = $v->getVar('poster');
         $reviewrows[$i]['posterid'] = $v->getVar('posterid');
         $reviewrows[$i]['postdate'] = date('m-d H:i', $v->getVar('posttime'));
         $reviewrows[$i]['posttime'] = $v->getVar('posttime');
         $reviewrows[$i]['replytime'] = $v->getVar('replytime');
         $reviewrows[$i]['views'] = $v->getVar('views');
         $reviewrows[$i]['replies'] = $v->getVar('replies');
         $reviewrows[$i]['islock'] = $v->getVar('islock');
         $reviewrows[$i]['istop'] = $v->getVar('istop');
         $reviewrows[$i]['isgood'] = $v->getVar('isgood');
         $reviewrows[$i]['topictype'] = $v->getVar('topictype');
         $reviewrows[$i]['url_articleinfo'] = jieqi_geturl('article', 'article', $v->getVar('ownerid'), 'info');
         $reviewrows[$i]['url_articleindex'] = jieqi_geturl('article', 'article', $v->getVar('ownerid'), 'index');
         $reviewrows[$i]['url_articleread'] = $reviewrows[$i]['url_articleindex'];
         $i++;
     }
     $jieqiTpl->assign_by_ref('reviewrows', $reviewrows);
     $jieqiTpl->assign('url_more', $article_dynamic_url . '/reviewslist.php');
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:56,代碼來源:block_reviewslist.php

示例4: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('obook', 'configs');
     $obook_static_url = empty($jieqiConfigs['obook']['staticurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['staticurl'];
     $obook_dynamic_url = empty($jieqiConfigs['obook']['dynamicurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['dynamicurl'];
     $jieqiTpl->assign('obook_static_url', $obook_static_url);
     $jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:10,代碼來源:block_writerbox.php

示例5: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('article', 'configs');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     $jieqiTpl->assign('url_articlesearch', $article_dynamic_url . '/search.php');
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:11,代碼來源:block_search.php

示例6: jieqi_url_system_avatar

/**
 * 返回用戶頭像圖片url
 * 
 * @param      int         $uid 用戶id
 * @param      int         $size 返回類型 'd'=>圖片目錄, 'l'=>大圖(默認), 's'=>小圖, 'i'=>圖標, 'a'=>返回前麵幾個合並的數組
 * @param      int         $type 圖片類型 -1 係統自動判斷,0 無頭像 1=>'.gif', 2=>'.jpg', 3=>'.jpeg', 4=>'.png', 5=>'.bmp'
 * @param      bool        $retdft 無頭像是否返回默認頭像地址,true-是(默認),false-否
 * @access     public
 * @return     mixed
 */
function jieqi_url_system_avatar($uid, $size = 'l', $type = -1, $retdft = true)
{
    global $jieqiConfigs;
    global $jieqi_image_type;
    if (!isset($jieqiConfigs['system'])) {
        jieqi_getconfigs('system', 'configs');
    }
    if (empty($jieqi_image_type)) {
        $jieqi_image_type = array(1 => '.gif', 2 => '.jpg', 3 => '.jpeg', 4 => '.png', 5 => '.bmp');
    }
    if (function_exists('gd_info') && $jieqiConfigs['system']['avatarcut']) {
        $avatar_cut = true;
    } else {
        $avatar_cut = false;
    }
    $base_avatar = '';
    if ($uid == 0 || $type == 0 || $type > 0 && !isset($jieqi_image_type[$type])) {
        if ($retdft) {
            $base_avatar = JIEQI_USER_URL . '/images';
            $type = 2;
            $uid = 'noavatar';
        } else {
            return false;
        }
    } elseif ($type < 0) {
        return JIEQI_USER_URL . '/avatar.php?uid=' . $uid . '&size=' . $size;
    }
    $prefix = $jieqi_image_type[$type];
    if (empty($base_avatar)) {
        $base_avatar = jieqi_uploadurl($jieqiConfigs['system']['avatardir'], $jieqiConfigs['system']['avatarurl'], 'system') . jieqi_getsubdir($uid);
    }
    switch ($size) {
        case 'd':
            return $base_avatar;
            break;
        case 'l':
            return $base_avatar . '/' . $uid . $prefix;
            break;
        case 's':
            return $avatar_cut ? $base_avatar . '/' . $uid . 's' . $prefix : $base_avatar . '/' . $uid . $prefix;
            break;
        case 'i':
            return $avatar_cut ? $base_avatar . '/' . $uid . 'i' . $prefix : $base_avatar . '/' . $uid . $prefix;
            break;
        case 'a':
        default:
            if ($avatar_cut) {
                return array('l' => $base_avatar . '/' . $uid . $prefix, 's' => $base_avatar . '/' . $uid . 's' . $prefix, 'i' => $base_avatar . '/' . $uid . 'i' . $prefix, 'd' => $base_avatar);
            } else {
                return array('l' => $base_avatar . '/' . $uid . $prefix, 's' => $base_avatar . '/' . $uid . $prefix, 'i' => $base_avatar . '/' . $uid . $prefix, 'd' => $base_avatar);
            }
            break;
    }
}
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:64,代碼來源:funurl.php

示例7: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     global $jieqiSort;
     jieqi_getconfigs('article', 'configs');
     jieqi_getconfigs('article', 'sort');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
     //載入相關處理函數
     include_once $GLOBALS['jieqiModules']['article']['path'] . '/include/funarticle.php';
     $article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
     $criteria = new CriteriaCompo();
     $criteria->add(new Criteria('authorid', $this->blockvars['cacheid']));
     if ($this->exevars['isfull'] == 1) {
         $criteria->add(new Criteria('isfull', 1));
     } elseif ($this->exevars['isfull'] == 2) {
         $criteria->add(new Criteria('isfull', 0));
     }
     $criteria->setSort($this->exevars['field']);
     if ($this->exevars['asc'] == 1) {
         $criteria->setOrder('ASC');
     } else {
         $criteria->setOrder('DESC');
     }
     $criteria->setLimit($this->exevars['listnum']);
     $criteria->setStart(0);
     $article_handler->queryObjects($criteria);
     $articlerows = array();
     $k = 0;
     while ($v = $article_handler->getObject()) {
         $articlerows[$k] = jieqi_article_vars($v);
         $articlerows[$k]['order'] = $k + 1;
         if ($this->exevars['field'] == 'goodnew') {
             $articlerows[$k]['visitnum'] = $v->getVar('allvisit');
         } else {
             $articlerows[$k]['visitnum'] = $v->getVar($this->exevars['field']);
         }
         if ($this->exevars['field'] == 'size') {
             $articlerows[$k]['visitnum'] = ceil($articlerows[$k]['visitnum'] / 1024) . 'K';
         } elseif ($this->exevars['field'] == 'lastupdate' || $this->exevars['field'] == 'postdate' || $this->exevars['field'] == 'toptime') {
             $articlerows[$k]['visitnum'] = date('m-d', $articlerows[$k]['visitnum']);
         }
         $k++;
     }
     $jieqiTpl->assign_by_ref('articlerows', $articlerows);
     $jieqiTpl->assign('ownerid', $this->blockvars['cacheid']);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:51,代碼來源:block_uarticles.php

示例8: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('article', 'configs');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     $sorts = array('allvisit', 'monthvisit', 'weekvisit', 'dayvisit', 'allauthorvisit', 'monthauthorvisit', 'weekauthorvisit', 'dayauthorvisit', 'allvote', 'monthvote', 'weekvote', 'dayvote', 'postdate', 'lastupdate', 'authorupdate', 'masterupdate', 'goodnum', 'size', 'weekrate', 'monthrate', 'toptime');
     foreach ($sorts as $sort) {
         $jieqiTpl->assign('url_' . $sort, jieqi_geturl('article', 'toplist', 1, $sort));
     }
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:14,代碼來源:block_toplist.php

示例9: setContent

 function setContent($isreturn = false)
 {
     global $jieqiTpl;
     global $jieqiConfigs;
     global $jieqiSort;
     include_once $GLOBALS['jieqiModules']['article']['path'] . '/class/article.php';
     //載入相關處理函數
     include_once $GLOBALS['jieqiModules']['article']['path'] . '/include/funarticle.php';
     jieqi_getconfigs('article', 'configs');
     jieqi_getconfigs('article', 'sort');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     $articlerows = array();
     if (count($this->exevars) > 0) {
         $article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
         $sql = 'SELECT * FROM ' . jieqi_dbprefix('article_article') . ' WHERE articleid IN (0,' . implode(',', $this->exevars) . ')';
         $sql .= ' LIMIT 0, 100';
         $res = $article_handler->db->query($sql);
         $k = 0;
         while ($v = $article_handler->getObject($res)) {
             $articlerows[$k] = jieqi_article_vars($v);
             $articlerows[$k]['order'] = $k + 1;
             $k++;
         }
     }
     $i = 0;
     $maxrow = count($articlerows);
     $sortrows = array();
     foreach ($this->exevars as $aid) {
         $k = 0;
         while ($k < $maxrow && $articlerows[$k]['articleid'] != $aid) {
             $k++;
         }
         if ($k < $maxrow) {
             $articlerows[$k]['order'] = $i + 1;
             $sortrows[$i] =& $articlerows[$k];
             $i++;
         }
     }
     $jieqiTpl->assign_by_ref('articlerows', $sortrows);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:43,代碼來源:block_commend.php

示例10: setContent

 function setContent($isreturn = false)
 {
     global $jieqiSort;
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('article', 'sort');
     jieqi_getconfigs('article', 'configs');
     $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['staticurl'];
     $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $GLOBALS['jieqiModules']['article']['url'] : $jieqiConfigs['article']['dynamicurl'];
     $jieqiTpl->assign('article_static_url', $article_static_url);
     $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
     $sortrows = array();
     $jieqiTpl->assign('url_articlelist', jieqi_geturl('article', 'articlelist', 1, 0));
     $i = 0;
     foreach ($jieqiSort['article'] as $k => $v) {
         $sortrows[$i] = array('sortid' => $k, 'sortname' => $v['caption'], 'url_sort' => jieqi_geturl('article', 'articlelist', 1, $k), 'sortlayer' => $v['layer']);
         $i++;
     }
     $jieqiTpl->assign_by_ref('sortrows', $sortrows);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:20,代碼來源:block_sort.php

示例11: setContent

 function setContent($isreturn = false)
 {
     global $jieqiSort;
     global $jieqiTpl;
     global $jieqiConfigs;
     jieqi_getconfigs('obook', 'sort');
     jieqi_getconfigs('obook', 'configs');
     $obook_static_url = empty($jieqiConfigs['obook']['staticurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['staticurl'];
     $obook_dynamic_url = empty($jieqiConfigs['obook']['dynamicurl']) ? $GLOBALS['jieqiModules']['obook']['url'] : $jieqiConfigs['obook']['dynamicurl'];
     $jieqiTpl->assign('obook_static_url', $obook_static_url);
     $jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
     $sortrows = array();
     if ($jieqiConfigs['obook']['fakesort'] == 1) {
         if (!empty($jieqiConfigs['obook']['fakeprefix'])) {
             $tmpvar = '/' . $jieqiConfigs['obook']['fakeprefix'] . 'sort';
         } else {
             $tmpvar = '/files/obook/sort';
         }
         $tmpurl = $obook_dynamic_url . $tmpvar . '/0/1' . $jieqiConfigs['obook']['fakefile'];
     } else {
         $tmpurl = $obook_dynamic_url . '/obooklist.php?class=0';
     }
     $jieqiTpl->assign('url_obookindex', $tmpurl);
     $jieqiTpl->assign('url_obooklist', $tmpurl);
     $i = 0;
     foreach ($jieqiSort['obook'] as $k => $v) {
         if ($jieqiConfigs['obook']['fakesort'] == 1) {
             if (!empty($jieqiConfigs['obook']['fakeprefix'])) {
                 $tmpvar = '/' . $jieqiConfigs['obook']['fakeprefix'] . 'sort';
             } else {
                 $tmpvar = '/files/obook/sort';
             }
             $tmpurl = $obook_dynamic_url . $tmpvar . $k . '/0/1' . $jieqiConfigs['obook']['fakefile'];
         } else {
             $tmpurl = $obook_dynamic_url . '/obooklist.php?class=' . $k;
         }
         $sortrows[$i] = array('sortid' => $k, 'sortname' => $v['caption'], 'url_sort' => $tmpurl, 'sortlayer' => $v['layer']);
         $i++;
     }
     $jieqiTpl->assign_by_ref('sortrows', $sortrows);
 }
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:41,代碼來源:block_sort.php

示例12: define

<?php

/**
 * 網站首頁
 *
 * 默認首頁是載入/configs/blocks.php裏麵配置的區塊
 * 
 * 調用模板:無
 * 
 * @category   jieqicms
 * @package    system
 * @copyright  Copyright (c) Hangzhou Jieqi Network Technology Co.,Ltd. (http://www.jieqi.com)
 * @author     $Author: juny $
 * @version    $Id: index.php 344 2009-06-23 03:06:07Z juny $
 */
//定義本頁麵所屬區塊
define('JIEQI_MODULE_NAME', 'system');
require_once 'global.php';
//包含區塊參數
jieqi_getconfigs(JIEQI_MODULE_NAME, 'blocks', 'jieqiBlocks');
//包含頁頭頁尾
include_once JIEQI_ROOT_PATH . '/header.php';
$jieqiTpl->assign('jieqi_indexpage', 1);
//設置首頁標誌,便於模板裏麵可以判斷
$jieqiTset['jieqi_contents_template'] = '';
//內容位置不賦值,全部用區塊
include_once JIEQI_ROOT_PATH . '/footer.php';
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:27,代碼來源:index.php

示例13: jieqi_getconfigs

}
if (!empty($jieqiTset['jieqi_contents_template'])) {
    if (!isset($jieqiTset['jieqi_contents_cacheid'])) {
        $jieqiTset['jieqi_contents_cacheid'] = NULL;
    }
    if (!isset($jieqiTset['jieqi_contents_compileid'])) {
        $jieqiTset['jieqi_contents_compileid'] = NULL;
    }
    $jieqiTpl->include_compiled_inc($jieqiTset['jieqi_contents_template'], $jieqiTset['jieqi_contents_compileid']);
}
//根據模板包含區塊配置文件
if (!empty($jieqiTset['jieqi_blocks_config'])) {
    if (!empty($jieqiTset['jieqi_blocks_module'])) {
        jieqi_getconfigs($jieqiTset['jieqi_blocks_module'], $jieqiTset['jieqi_blocks_config'], 'jieqiBlocks');
    } else {
        jieqi_getconfigs(JIEQI_MODULE_NAME, $jieqiTset['jieqi_blocks_config'], 'jieqiBlocks');
    }
}
//區塊處理
if (!isset($jieqi_showlblock)) {
    $jieqi_showlblock = false;
}
if (!isset($jieqi_showcblock)) {
    $jieqi_showcblock = false;
}
if (!isset($jieqi_showrblock)) {
    $jieqi_showrblock = false;
}
if (!isset($jieqi_showtblock)) {
    $jieqi_showtblock = false;
}
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:31,代碼來源:indexs.php

示例14: JieqiFormTextArea

 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_title'], 'articletitle', htmlspecialchars(jieqi_collectstop($jieqiCollect['articletitle']), ENT_QUOTES), 5, 60), true);
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_author'], 'author', htmlspecialchars(jieqi_collectstop($jieqiCollect['author']), ENT_QUOTES), 5, 60));
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_sort'], 'sort', htmlspecialchars(jieqi_collectstop($jieqiCollect['sort']), ENT_QUOTES), 5, 60));
 if (!is_array($jieqiCollect['sortid'])) {
     $jieqiCollect['sortid'] = array();
 }
 $tmpstr = '';
 foreach ($jieqiCollect['sortid'] as $k => $v) {
     if (!empty($tmpstr)) {
         $tmpstr .= '||';
     }
     $tmpstr .= $k . '=>' . $v;
 }
 $sortelement = new JieqiFormText($jieqiLang['article']['rule_sort_relation'], 'sortid', 60, 10000, htmlspecialchars($tmpstr, ENT_QUOTES));
 $sortelement->setIntro($jieqiLang['article']['rule_sort_note']);
 jieqi_getconfigs(JIEQI_MODULE_NAME, 'sort');
 $sortstr = '';
 foreach ($jieqiSort['article'] as $k => $v) {
     if (!empty($sortstr)) {
         $sortstr .= '||';
     }
     $sortstr .= $v['caption'] . '=>' . $k;
 }
 $sortelement->setDescription(sprintf($jieqiLang['article']['rule_sort_guide'], $sortstr));
 $collect_form->addElement($sortelement);
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_keywords'], 'keyword', htmlspecialchars(jieqi_collectstop($jieqiCollect['keyword']), ENT_QUOTES), 5, 60));
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_intro'], 'intro', htmlspecialchars(jieqi_collectstop($jieqiCollect['intro']), ENT_QUOTES), 5, 60));
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_image'], 'articleimage', htmlspecialchars(jieqi_collectstop($jieqiCollect['articleimage']), ENT_QUOTES), 5, 60));
 $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_articleimage_filter'], 'filterimage', 60, 250, htmlspecialchars($jieqiCollect['filterimage'], ENT_QUOTES)));
 $indexelement = new JieqiFormTextArea($jieqiLang['article']['rule_articleindex_url'], 'indexlink', htmlspecialchars(jieqi_collectstop($jieqiCollect['indexlink']), ENT_QUOTES), 5, 60);
 $indexelement->setIntro($jieqiLang['article']['rule_articleindex_note']);
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:31,代碼來源:collectedit.php

示例15: jieqi_getconfigs

    $logrows[$k]['logtime'] = $v->getVar('logtime');
    $logrows[$k]['userid'] = $v->getVar('userid');
    $logrows[$k]['username'] = $v->getVar('username');
    $logrows[$k]['userip'] = $v->getVar('userip');
    $logrows[$k]['targetname'] = $v->getVar('targetname');
    $logrows[$k]['targetid'] = $v->getVar('targetid');
    $logrows[$k]['targettitle'] = $v->getVar('targettitle');
    $logrows[$k]['logurl'] = $v->getVar('logurl');
    $logrows[$k]['logcode'] = $v->getVar('logcode');
    $logrows[$k]['logtitle'] = $v->getVar('logtitle');
    $logrows[$k]['logdata'] = $v->getVar('logdata');
    $logrows[$k]['lognote'] = $v->getVar('lognote');
    //$logrows[$k]['fromdata']=$v->getVar('fromdata');
    //$logrows[$k]['todata']=$v->getVar('todata');
    $k++;
}
$jieqiTpl->assign_by_ref('logrows', $logrows);
/*查找日誌類型*/
jieqi_getconfigs(JIEQI_MODULE_NAME, 'lsort', 'jieqiLsort');
if (!isset($jieqiLsort)) {
    $jieqiLsort = array();
}
$jieqiTpl->assign_by_ref('logsort', $jieqiLsort);
//處理頁麵跳轉
include_once JIEQI_ROOT_PATH . '/lib/html/page.php';
$jumppage = new JieqiPage($logs_handler->getCount($criteria), $jieqiConfigs['system']['userlogpnum'], $_REQUEST['page']);
$jumppage->setlink('', true, true);
$jieqiTpl->assign('url_jumppage', $jumppage->whole_bar());
$jieqiTpl->setCaching(0);
$jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/admin/logs.html';
include_once JIEQI_ROOT_PATH . '/admin/footer.php';
開發者ID:thu0ng91,項目名稱:jmc,代碼行數:31,代碼來源:logs.php


注:本文中的jieqi_getconfigs函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。