Beispiel #1
0
foreach ($actlist as $k => $v) {
    $navbar[$k] = in_array($act, $v) ? $current : '';
    if ($k == 'card') {
        $menustr .= '<li' . $navbar[$k] . '><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=' . $v[0] . '&identifier=sanree_brand&pmod=admincp"><span>' . $cardname . '</span></a></li>';
    }
    $menustr .= '<li' . $navbar[$k] . '><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=' . $v[0] . '&identifier=sanree_brand&pmod=admincp"><span>' . $langs[$k] . '</span></a></li>';
}
$menustr .= '</ul>';
$thisurl = "plugins&operation=config&identifier=sanree_brand&pmod=admincp&act={$act}";
$gotourl = 'action=plugins&operation=config&identifier=sanree_brand&pmod=admincp&act=';
$adminurl = ADMINSCRIPT . '?action=plugins&operation=config&identifier=sanree_brand&pmod=admincp';
$menustr = $rightlink . $menustr;
cpheader();
$cateid = intval($_G['sr_cateid']);
if ($cateid) {
    $thisurl .= '&cateid=' . $cateid;
}
$actfile = sanree_libfile('admincp/' . $plugin['identifier'] . '/' . $act, $plugin['identifier']);
if (!file_exists($actfile)) {
    cpmsg($langs['isbusiness'], 'action=plugins&operation=config&identifier=sanree_brand&pmod=admincp&act=list', 'error');
}
$bindingforum = intval($config['bindingforum']);
if ($bindingforum < 1) {
    cpmsg_error($langs['nobindingforum']);
}
chkformtitle($bindingforum);
$creditunit = $config['creditunit'];
if (empty($creditunit)) {
    cpmsg_error($langs['nocreditunit']);
}
require_once $actfile;
Beispiel #2
0
<?php

/**
 *      [Sanree] (C)2001-2099 Sanree Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: sanree_brand_brandno.php sanree $
 */
if (!defined('IN_DISCUZ')) {
    exit('2014042523s4K4QUOUT9||5057||1411992002');
}
$brandno = dhtmlspecialchars(trim($_G['sr_tid']));
preg_match("/[^0-9a-zA-Z]/", $brandno, $matches);
if (count($matches) > 0) {
    showmessage(srlang('errorbrandno'));
}
if (!$brandno) {
    showmessage(srlang('nodengji'));
}
$brandresult = C::t('#sanree_brand#sanree_brand_businesses')->get_by_brandno($brandno);
if (!$brandresult) {
    showmessage(srlang('nodengji'));
}
if ($brandresult['status'] != 1) {
    showmessage(srlang('nostatus'));
}
chkbrandend($brandresult);
$_G['sr_tid'] = $brandresult['bid'];
$_G['item_detail'] = 'detail';
require_once sanree_libfile('module/' . $plugin['identifier'] . '/item', $plugin['identifier']);
Beispiel #3
0
<?php

/**
 *      [Sanree] (C)2001-2099 Sanree Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: sanree_brand_mybrand.php sanree $
 */
if (!defined('IN_DISCUZ')) {
    exit('2014042523s4K4QUOUT9||5057||1411992002');
}
if (!$_G['uid']) {
    showmessage(srlang('nologin'), '', array(), array('login' => true));
}
$view = $_G['sr_view'];
$viewarray = array('me', 'mymsg', 'myalbum');
$view = !in_array($view, $viewarray) ? 'me' : $view;
$actives[$view] = ' class="a"';
$bcount[0] = C::t('#sanree_brand#sanree_brand_businesses')->count_by_wherec(array('t.uid=' . $_G['uid'], 'c.status=1', 't.status=1'));
$bcount[1] = C::t('#sanree_brand#sanree_brand_businesses')->count_by_wherec(array('t.uid=' . $_G['uid'], 'c.status=1', 't.status=0'));
$bcount[2] = C::t('#sanree_brand#sanree_brand_businesses')->count_by_wherec(array('t.uid=' . $_G['uid'], 'c.status=1', 't.status=-1'));
$bcount[3] = $bcount[0] + $bcount[1] + $bcount[2];
require_once sanree_libfile('module/' . $plugin['identifier'] . '/' . $mod . '_' . $view, $plugin['identifier']);