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


PHP cot_incfile函数代码示例

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


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

示例1: form_structure_editor

function form_structure_editor($id)
{
    global $cot_structure, $cot_extrafields, $db_structure, $structure, $L, $R;
    $row = $cot_structure->category($id);
    if (empty($row)) {
        return null;
    }
    $ii++;
    $structure_id = $row['structure_id'];
    $structure_code = $row['structure_code'];
    $n = $row['structure_area'];
    $dozvil = $row['structure_count'] > 0 ? false : true;
    $is_module = cot_module_active($n);
    $t = new XTemplate(cot_tplfile('cateditor.admin.edit', 'plug'));
    $t->assign(array('ADMIN_STRUCTURE_HEADER' => $row['structure_title'], 'ADMIN_STRUCTURE_DEL_URL' => $dozvil ? cot_confirm_url(cot_url('admin', 'm=other&p=cateditor&n=' . $n . '&a=delete&id=' . $row['structure_id'] . '&' . cot_xg()), 'admin') : '', 'ADMIN_STRUCTURE_UPDATE_FORM_URL' => cot_url('admin', 'm=other&p=cateditor&n=' . $n . '&id=' . $structure_id . '&a=update'), 'ADMIN_STRUCTURE_ID' => $row['structure_id'], 'ADMIN_STRUCTURE_CODE' => cot_inputbox('text', 'rstructurecode', $structure_code, 'size="10" maxlength="255"'), 'ADMIN_STRUCTURE_PATHFIELDIMG' => mb_strpos($row['structure_path'], '.') == 0 ? $R['admin_icon_join1'] : $R['admin_icon_join2'], 'ADMIN_STRUCTURE_PATH' => cot_inputbox('text', 'rstructurepath', $row['structure_path'], 'size="12" maxlength="255"'), 'ADMIN_STRUCTURE_TPL' => cot_inputbox('text', 'rstructuretpl', $row['structure_tpl'], 'size="10" maxlength="255"'), 'ADMIN_STRUCTURE_TITLE' => cot_inputbox('text', 'rstructuretitle', $row['structure_title'], 'size="32" maxlength="255"'), 'ADMIN_STRUCTURE_DESC' => cot_inputbox('text', 'rstructuredesc', $row['structure_desc'], 'size="64" maxlength="255"'), 'ADMIN_STRUCTURE_ICON' => cot_inputbox('text', 'rstructureicon', $row['structure_icon'], 'size="64" maxlength="128"'), 'ADMIN_STRUCTURE_LOCKED' => cot_checkbox($row['structure_locked'], 'rstructurelocked'), 'ADMIN_STRUCTURE_COUNT' => $row['structure_count'], 'ADMIN_STRUCTURE_PARENT' => $cot_structure->select($cot_structure->get_parent($id), 'rstructureparent', true, 'disabled="disabled"'), 'ADMIN_STRUCTURE_JUMPTO_URL' => cot_url($n, 'c=' . $structure_code), 'ADMIN_STRUCTURE_RIGHTS_URL' => $is_module ? cot_url('admin', 'm=rightsbyitem&ic=' . $n . '&io=' . $structure_code) : '', 'ADMIN_STRUCTURE_ODDEVEN' => cot_build_oddeven($ii)));
    foreach ($cot_extrafields[$db_structure] as $exfld) {
        $exfld_val = cot_build_extrafields('rstructure' . $exfld['field_name'], $exfld, $row['structure_' . $exfld['field_name']]);
        $exfld_title = isset($L['structure_' . $exfld['field_name'] . '_title']) ? $L['structure_' . $exfld['field_name'] . '_title'] : $exfld['field_description'];
        $t->assign(array('ADMIN_STRUCTURE_' . strtoupper($exfld['field_name']) => $exfld_val, 'ADMIN_STRUCTURE_' . strtoupper($exfld['field_name']) . '_TITLE' => $exfld_title, 'ADMIN_STRUCTURE_EXTRAFLD' => $exfld_val, 'ADMIN_STRUCTURE_EXTRAFLD_TITLE' => $exfld_title));
        $t->parse('MAIN.EXTRAFLD');
    }
    require_once cot_incfile('configuration');
    $optionslist = cot_config_list($is_module ? 'module' : 'plug', $n, $structure_code);
    /* === Hook - Part1 : Set === */
    $extp = cot_getextplugins('admin.config.edit.loop');
    /* ===== */
    foreach ($optionslist as $row_c) {
        list($title, $hint) = cot_config_titles($row_c['config_name'], $row_c['config_text']);
        if ($row_c['config_type'] == COT_CONFIG_TYPE_SEPARATOR) {
            $t->assign('ADMIN_CONFIG_FIELDSET_TITLE', $title);
            $t->parse('MAIN.OPTIONS.CONFIG.ADMIN_CONFIG_ROW.ADMIN_CONFIG_FIELDSET_BEGIN');
        } else {
            $t->assign(array('ADMIN_CONFIG_ROW_CONFIG' => cot_config_input($row_c['config_name'], $row_c['config_type'], $row_c['config_value'], $row_c['config_variants']), 'ADMIN_CONFIG_ROW_CONFIG_TITLE' => $title, 'ADMIN_CONFIG_ROW_CONFIG_MORE_URL' => cot_url('admin', 'm=structure&n=' . $n . '&d=' . $durl . '&id=' . $structure_id . '&al=' . $structure_code . '&a=reset&v=' . $row_c['config_name'] . '&' . cot_xg()), 'ADMIN_CONFIG_ROW_CONFIG_MORE' => $hint));
            /* === Hook - Part2 : Include === */
            foreach ($extp as $pl) {
                include $pl;
            }
            /* ===== */
            $t->parse('MAIN.CONFIG.ADMIN_CONFIG_ROW.ADMIN_CONFIG_ROW_OPTION');
        }
        $t->parse('MAIN.CONFIG.ADMIN_CONFIG_ROW');
    }
    /* === Hook  === */
    foreach (cot_getextplugins('admin.config.edit.tags') as $pl) {
        include $pl;
    }
    /* ===== */
    $t->assign('CONFIG_HIDDEN', cot_inputbox('hidden', 'editconfig', $structure_code));
    $t->parse('MAIN.CONFIG');
    $t->parse('MAIN');
    return $t->text('MAIN');
}
开发者ID:esclkm,项目名称:cot-cateditor,代码行数:52,代码来源:cateditor.admin.edit.php

示例2: switch

}
/* ===== */
switch ($n) {
    case 'edit':
        $o = cot_import('o', 'G', 'ALP');
        $p = cot_import('p', 'G', 'ALP');
        $v = cot_import('v', 'G', 'ALP');
        $o = empty($o) ? 'core' : $o;
        $p = empty($p) ? 'global' : $p;
        $optionslist = cot_config_list($o, $p, '');
        cot_die(!sizeof($optionslist), true);
        if ($o != 'core' && file_exists(cot_langfile($p, $o))) {
            require cot_langfile($p, $o);
        }
        if ($o != 'core' && file_exists(cot_incfile($p, $o))) {
            require_once cot_incfile($p, $o);
        }
        /* === Hook  === */
        foreach (cot_getextplugins('admin.config.edit.first') as $pl) {
            include $pl;
        }
        /* ===== */
        if ($a == 'update' && !empty($_POST)) {
            $updated = cot_config_update_options($p, $optionslist, $o);
            $errors = cot_get_messages('', 'error');
            if ($o == 'module' || $o == 'plug') {
                $dir = $o == 'module' ? $cfg['modules_dir'] : $cfg['plugins_dir'];
                // Run configure extension part if present
                if (file_exists($dir . "/" . $p . "/setup/" . $p . ".configure.php")) {
                    include $dir . "/" . $p . "/setup/" . $p . ".configure.php";
                }
开发者ID:Logodeveloper,项目名称:Cotonti,代码行数:31,代码来源:admin.config.php

示例3: switch

 switch ($score['ukarma_area']) {
     case 'forums':
         require_once cot_incfile('forums', 'module');
         $frm = $db->query("SELECT * FROM {$db_forum_posts} AS fp \n\t\t\t\tLEFT JOIN {$db_forum_topics} AS ft ON fp.fp_topicid=ft.ft_id \n\t\t\t\tWHERE fp.fp_id=" . $score['ukarma_code'])->fetch();
         $page_url = cot_url('forums', 'm=posts&id=' . $score['ukarma_code']);
         $page_title = $frm['ft_title'];
         break;
     case 'page':
         require_once cot_incfile('page', 'module');
         $pag = $db->query("SELECT * FROM {$db_pages} WHERE page_id=" . $score['ukarma_code'])->fetch();
         $page_url = cot_url('page', 'c=' . $pag['page_cat'] . '&id=' . $score['ukarma_code']);
         $page_title = $pag['page_title'];
         break;
     case 'com':
         require_once cot_incfile('comments', 'plug');
         require_once cot_incfile('page', 'module');
         $pag = $db->query("SELECT c.*, p.* FROM {$db_com} AS c LEFT JOIN {$db_pages} AS p ON c.com_code = p.page_id WHERE c.com_id=" . $score['ukarma_code'] . " AND c.com_area='page'")->fetch();
         $page_url = !empty($pag['page_alias']) ? cot_url('page', 'c=' . $pag['page_cat'] . '&al=' . $pag['page_alias']) . "#c" . $score['ukarma_code'] : cot_url('page', 'c=' . $pag['page_cat'] . '&id=' . $pag['page_id']) . "#c" . $score['ukarma_code'];
         $page_title = $pag['page_title'];
         break;
     default:
         $page_url = cot_url('users', 'm=details&id=' . $score['user_id'] . '&u=' . $score['user_name']);
         $page_title = $score['user_name'];
         break;
 }
 $t->assign(array('UKARMA_ROW_URL' => $page_url, 'UKARMA_ROW_TITLE' => $page_title));
 /* === Hook - Part2 : Include === */
 foreach ($extp as $pl) {
     include $pl;
 }
 /* ===== */
开发者ID:CrazyFreeMan,项目名称:cot-ukarma,代码行数:31,代码来源:ukarma.php

示例4: defined

<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=recentitems.recentpages.first
[END_COT_EXT]
==================== */
/**
 * Joins into the main recentitems query
 *
 * @package Comments
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
global $db_com;
require_once cot_incfile('comments', 'plug');
$join_columns .= ", (SELECT COUNT(*) FROM `{$db_com}` WHERE com_area = 'page' AND com_code = p.page_id) AS com_count";
开发者ID:Andreyjktl,项目名称:Cotonti,代码行数:18,代码来源:comments.recentitems.recentpages.first.php

示例5: define

define('COT_CODE', TRUE);
define('COT_MESSAGE', TRUE);
define('COT_CORE', TRUE);
require_once './datas/config.php';
require_once $cfg['system_dir'] . '/functions.php';
$env['location'] = 'messages';
$env['ext'] = 'message';
require_once $cfg['system_dir'] . '/cotemplate.php';
require_once $cfg['system_dir'] . '/common.php';
// This trick allows message strings to be overriden in theme langfiles
$temp_L = $L;
require_once cot_langfile('message', 'core');
$L = array_merge($L, $temp_L);
unset($temp_L);
if (defined('COT_ADMIN')) {
    require_once cot_incfile('admin', 'module');
}
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = cot_auth('message', 'a');
//cot_block($usr['auth_read']);
$msg = cot_import('msg', 'G', 'INT');
$num = cot_import('num', 'G', 'INT');
$rc = cot_import('rc', 'G', 'INT');
unset($r, $rd, $ru);
$title = $L['msg' . $msg . '_title'];
$body = $L['msg' . $msg . '_body'];
/* === Hook === */
foreach (cot_getextplugins('message.first') as $pl) {
    include $pl;
}
/* ===== */
switch ($msg) {
开发者ID:Andreyjktl,项目名称:Cotonti,代码行数:31,代码来源:message.php

示例6: defined

<?php

/* ====================
  [BEGIN_COT_EXT]
  Hooks=ajax
  [END_COT_EXT]
  ==================== */
/**
 * news admin usability modification
 *
 * @package news
 * @version 0.7.0
 * @author Cotonti Team
 * @copyright Copyright (c) Cotonti Team 2008-2012
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
$m = cot_import('m', 'G', 'TXT');
// Mode choice
if (!in_array($m, array('thumb'))) {
    $m = 'upload';
}
require_once cot_incfile('mavatars', 'plug', $m);
开发者ID:Andreyjktl,项目名称:cot-freelance,代码行数:23,代码来源:mavatars.ajax.php

示例7: defined

<?php

/**
 * Sbr plugin
 *
 * @package sbr
 * @version 1.0.0
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_langfile('sbr', 'plug');
require_once cot_incfile('sbr', 'plug', 'resources');
// Global variables
global $db_sbr, $db_sbr_stages, $db_sbr_claims, $db_x;
$db_sbr = isset($db_sbr) ? $db_sbr : $db_x . 'sbr';
$db_sbr_stages = isset($db_sbr_stages) ? $db_sbr_stages : $db_x . 'sbr_stages';
$db_sbr_posts = isset($db_sbr_posts) ? $db_sbr_posts : $db_x . 'sbr_posts';
$db_sbr_claims = isset($db_sbr_claims) ? $db_sbr_claims : $db_x . 'sbr_claims';
$db_sbr_files = isset($db_sbr_files) ? $db_sbr_files : $db_x . 'sbr_files';
$cot_extrafields[$db_sbr] = !empty($cot_extrafields[$db_sbr]) ? $cot_extrafields[$db_sbr] : array();
function cot_generate_sbrtags($item_data, $tag_prefix = '', $admin_rights = null, $pagepath_home = false)
{
    global $db, $cot_extrafields, $cfg, $L, $Ls, $R, $db_sbr, $db_sbr_stages, $sys;
    static $extp_first = null, $extp_main = null;
    if (is_null($extp_first)) {
        $extp_first = cot_getextplugins('sbrtags.first');
        $extp_main = cot_getextplugins('sbrtags.main');
    }
    /* === Hook === */
开发者ID:cotemplate,项目名称:cot-sbr,代码行数:31,代码来源:sbr.functions.php

示例8: defined

<?php

/**
 * Content Internationalization API
 *
 * @package I18n
 * @copyright (c) Cotonti Team
 * @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_langfile('i18n', 'plug');
require_once cot_incfile('i18n', 'plug', 'resources');
cot::$db->registerTable('i18n_locales');
cot::$db->registerTable('i18n_pages');
cot::$db->registerTable('i18n_structure');
/**
 * Builds internationalized category path
 *
 * @param string $area Area code
 * @param string $cat Category code
 * @param string $locale Locale code
 * @return string
 */
function cot_i18n_build_catpath($area, $cat, $locale)
{
    global $structure, $cfg, $i18n_structure;
    $tmp = array();
    $pathcodes = explode('.', $structure[$area][$cat]['path']);
    foreach ($pathcodes as $k => $x) {
        if ($x != 'system') {
            if (empty($i18n_structure[$x][$locale]['title'])) {
开发者ID:Andreyjktl,项目名称:Cotonti,代码行数:31,代码来源:i18n.functions.php

示例9: defined

<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=admin.extrafields.first
[END_COT_EXT]
==================== */
/**
 * Ads board module for Cotonti Siena
 *
 * @package Advert
 * @author Kalnov Alexey    <kalnovalexey@yandex.ru>
 * @copyright (c) Portal30 Studio http://portal30.ru
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('subscribe', 'module');
$extra_whitelist[cot::$db->subscribe] = array('name' => cot::$db->subscribe, 'caption' => cot::$L['Module'] . ' ' . cot::$L['subscribe_subscribe_title'], 'type' => 'module', 'code' => 'subscribe', 'tags' => array());
$extra_whitelist[cot::$db->subscriber] = array('name' => cot::$db->subscriber, 'caption' => cot::$L['Module'] . ' ' . cot::$L['subscribe_subscribe_title'] . ' - ' . cot::$L['subscribe_subscribers'], 'type' => 'module', 'code' => 'subscribe', 'tags' => array());
开发者ID:Alex300,项目名称:subscribe,代码行数:18,代码来源:subscribe.extrafields.php

示例10: defined

 * @license Distributed under BSD license.
 */
defined('COT_CODE') or die('Wrong URL');
global $env;
// pages
if ($env['ext'] == 'page' && $user_data['page_id'] > 0 && $cfg['plugin']['karma']['karma_page_on'] || $user_data['page_id'] > 0 && $user_data['page_state'] == 0) {
    $motive['loc'] = 'pg';
    $motive['id'] = $user_data['page_id'];
}
// forums
if ($env['ext'] == 'forums' && $cfg['plugin']['karma']['karma_frm_on']) {
    global $forum_karma;
    var_dump($forum_karma);
    $motive['loc'] = $forum_karma ? 'frm' : false;
    $motive['id'] = $user_data['fp_id'];
}
// user
if ($env['ext'] == 'users' && $user_data['user_id'] > 0) {
    $motive['loc'] = 'ud';
    $motive['id'] = $user_data['user_id'];
}
// comments
if ($user_data['com_area'] && $user_data['com_id'] > 0 && $cfg['plugin']['karma']['karma_com_on']) {
    $motive['loc'] = $user_data['com_code'] > 0 ? 'com' : false;
    $motive['id'] = $user_data['com_id'];
    $motive['module'] = $user_data['com_area'] . ':id=' . $user_data['com_code'];
}
if (!empty($motive['loc']) && !empty($motive['id'])) {
    require_once cot_incfile('karma', 'plug');
    $temp_array['KARMA'] = karma_gadget($user_data['user_id'], $user_data['user_karma'], $motive['loc'], $motive['id'], $motive['module']);
}
开发者ID:Dr2005alex,项目名称:cot_karma,代码行数:31,代码来源:karma.user.tags.php

示例11: defined

<?php

/* ====================
[BEGIN_COT_EXT]
Hooks=comments.send.new
[END_COT_EXT]
==================== */
/**
 * Ads board module for Cotonti Siena
 *
 * @package Advboard
 * @author Kalnov Alexey    <kalnovalexey@yandex.ru>
 * @copyright (c) 2015 Portal30 Studio http://portal30.ru
 */
defined('COT_CODE') or die('Wrong URL.');
require_once cot_incfile('advboard', 'module');
$adv_cat = '';
if ($comarray['com_area'] == 'advboard' && cot::$cfg['advboard']['notifyUserNewComment'] == 1 && $comarray['com_code'] > 0) {
    $advert = advboard_model_Advert::getById($comarray['com_code']);
    if ($advert && $advert->issetEmail(true)) {
        // Очистить кеш
        // todo очистка кеша в одном файле с мультихуком
        //        if (ab_inBoardCat($adv_cat) && $cache && $cfg['plugin']['advboard']['recentAdvCacheTime'] > 0) {
        //            /** @var Memcache_driver $ab_CacheDrv  */
        //            $ab_CacheDrv = ab_getCacheDrv();
        //            $cache_key = 'RECENT_ADVS';
        //            $advRealm = COT_DEFAULT_REALM;
        //            $ab_CacheDrv->remove($cache_key, $advRealm);
        //        }
        //Очистить кеш
        $advertUrl = $advert->getUrl();
开发者ID:ASDAFF,项目名称:advboard,代码行数:31,代码来源:advboard.comments.send.new.php

示例12: defined

/**
 * [BEGIN_COT_EXT]
 * Hooks=users.details.tags
 * [END_COT_EXT]
 */
/**
 * market module
 *
 * @package market
 * @version 2.5.2
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru, littledev.ru
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
require_once cot_incfile('market', 'module');
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = cot_auth('market', 'any', 'RWA');
$tab = cot_import('tab', 'G', 'ALP');
$category = $tab == 'market' ? cot_import('cat', 'G', 'TXT') : '';
list($pg, $d, $durl) = cot_import_pagenav('dmarket', $cfg['market']['cat___default']['maxrowsperpage']);
//маркет вкладка
$t1 = new XTemplate(cot_tplfile(array('market', 'userdetails'), 'module'));
$t1->assign(array("ADDPRD_URL" => cot_url('market', 'm=add'), "PRD_ADDPRD_URL" => cot_url('market', 'm=add'), "ADDPRD_SHOWBUTTON" => $usr['auth_write'] ? true : false, "RPD_ADDPRD_SHOWBUTTON" => $usr['auth_write'] ? true : false));
$where = array();
$order = array();
if ($usr['id'] == 0 || $usr['id'] != $urr['user_id'] && !$usr['isadmin']) {
    $where['state'] = "item_state=0";
}
if ($category) {
    $where['cat'] = 'item_cat=' . $db->quote($category);
}
开发者ID:bahinn,项目名称:cot-freelance,代码行数:31,代码来源:market.userdetails.php

示例13: defined

<?php

/**
 * pagecattree Plugin for Cotonti CMF
 *
 * @version 2.0.0
 * @author esclkm, http://www.littledev.ru
 * @copyright (c) 2008-2011 esclkm, http://www.littledev.ru
 */
defined('COT_CODE') or die('Wrong URL.');
$tree = $cot_structure->build_tree();
// max
//str_pad
if ($id > 0) {
    require_once cot_incfile('cateditor', 'plug', 'admin.edit');
    $editor = form_structure_editor($id);
} else {
    $parentid = cot_import('parentid', 'G', 'INT');
    require_once cot_incfile('cateditor', 'plug', 'admin.new');
    $editor = form_structure_new($parentid);
}
$t->assign(array('NEWCATEGORY_URL' => cot_url('admin', 'm=other&p=cateditor&n=' . $n . '&parentid=' . $id), 'RESYNC_URL' => cot_url('admin', 'm=other&p=cateditor&n=' . $n . '&a=resyncall&' . cot_xg()), 'TREE' => $tree, 'EDITOR' => $editor));
开发者ID:esclkm,项目名称:cot-cateditor,代码行数:22,代码来源:cateditor.admin.editor.php

示例14: empty

    $prev_branch = 'genoa';
    require_once $cfg['system_dir'] . '/database.php';
    $dbc_port = empty($cfg['mysqlport']) ? '' : ';port=' . $cfg['mysqlport'];
    $db = new CotDB('mysql:host=' . $cfg['mysqlhost'] . $dbc_port . ';dbname=' . $cfg['mysqldb'], $cfg['mysqluser'], $cfg['mysqlpassword']);
    cot::init();
    $sql_install = @$db->query("SHOW TABLES LIKE '{$db_updates}'");
    if ($sql_install->rowCount() != 1) {
        define('COT_UPGRADE', true);
        $cfg['defaulttheme'] = 'nemesis';
        $cfg['defaultscheme'] = 'default';
    }
    require_once $cfg['system_dir'] . '/common.php';
}
require_once cot_incfile('forms');
require_once cot_incfile('extensions');
require_once cot_langfile('install', 'module');
require_once cot_langfile('users', 'core');
require_once cot_langfile('admin', 'core');
require_once cot_incfile('install', 'module', 'resources');
// Various Generic Vars needed to operate as Normal
$theme = $cfg['defaulttheme'];
$scheme = $cfg['defaultscheme'];
$out['meta_lastmod'] = gmdate('D, d M Y H:i:s');
$file['config'] = './datas/config.php';
$file['config_sample'] = './datas/config-sample.php';
$file['sql'] = './setup/install.sql';
if (!$cfg['new_install']) {
    include cot_incfile('install', 'module', 'update');
} else {
    include cot_incfile('install', 'module', 'install');
}
开发者ID:Andreyjktl,项目名称:Cotonti,代码行数:31,代码来源:install.php

示例15: defined

/**
 * market module
 *
 * @package market
 * @version 2.5.7
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru, littledev.ru
 * @license BSD
 */
defined('COT_CODE') or die('Wrong URL');
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = cot_auth('market', 'any', 'RWA');
// Requirements
require_once cot_langfile('market', 'module');
require_once cot_incfile('forms');
require_once cot_incfile('extrafields');
// Tables and extras
cot::$db->registerTable('market');
cot_extrafields_register_table('market');
$structure['market'] = is_array($structure['market']) ? $structure['market'] : array();
/**
 * Update market categories counters
 *
 * @param string $cat Cat code
 * @return int
 * @global CotDB $db
 */
function cot_market_sync($cat)
{
    global $db, $db_structure, $db_market, $cache;
    $parent = cot_structure_parents('market', $cat, 'first');
开发者ID:ASDAFF,项目名称:cot-freelance,代码行数:30,代码来源:market.functions.php


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