Пример #1
0
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2075 $
 */
require "../libraries/common.inc.php";
require "session_cp.inc.php";
uses("membertype", "typeoption");
require PHPB2B_ROOT . './libraries/page.class.php';
require LIB_PATH . "cache.class.php";
require CACHE_PATH . "cache_membergroup.php";
$cache = new Caches();
$typeoption = new Typeoption();
$conditions = null;
$page = new Pages();
$membertype = new Membertypes();
$tpl_file = "membertype";
setvar("MembertypeStatus", $typeoption->get_cache_type("common_option"));
foreach ($_PB_CACHE['membergroup'] as $key => $val) {
    $membergroups[$key] = $val['name'];
}
setvar("Membergroups", $membergroups);
if (isset($_POST['del']) && !empty($_POST['id'])) {
    $result = $membertype->del($_POST['id']);
    if (!$result) {
        flash();
    } else {
        $cache->updateTypes();
    }
}
if (isset($_POST['save'])) {
Пример #2
0
/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2075 $
 */
require "../libraries/common.inc.php";
uses("news", "newstype", "membertype", "attachment", "tag", "typeoption");
require LIB_PATH . 'time.class.php';
require PHPB2B_ROOT . 'libraries/page.class.php';
require "session_cp.inc.php";
$tag = new Tags();
$page = new Pages();
$attachment = new Attachment('pic');
$typeoption = new Typeoption();
$membertype = new Membertypes();
$news = new Newses();
$newstype = new Newstypes();
$conditions = array();
$fields = null;
$tpl_file = "news";
setvar("AskAction", $typeoption->get_cache_type("common_option"));
if (isset($_GET['do'])) {
    $do = trim($_GET['do']);
    if (isset($_GET['action'])) {
        $action = trim($_GET['action']);
    }
    if (!empty($_GET['id'])) {
        $id = intval($_GET['id']);
    }
    if ($do == "search") {
Пример #3
0
<?php

/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2075 $
 */
define('CURSCRIPT', 'index');
require "libraries/common.inc.php";
require "share.inc.php";
uses("membertype");
$membertype = new Membertypes();
setvar("MemberTypes", pb_lang_split_recursive($membertype->getTypes()));
setvar("SiteDescription", pb_lang_split($G['setting']['site_description']));
render("member");