Beispiel #1
0
<?php

if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
$base_page = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . C::t('common_setting')->fetch('yiqixueba_basepage');
if (file_exists($base_page) && is_file($base_page)) {
    require_once $base_page;
    require_once GC('main_admincp');
}
?>

Beispiel #2
0
$apiaction = addslashes($_GET['apiaction']);
$outdata = array();
if ($sign != md5(md5($indata))) {
    $outdata[] = lang('plugin/' . $plugin['identifier'], 'api_sign_error');
}
if (!$apiaction) {
    $outdata[] = lang('plugin/' . $plugin['identifier'], 'api_apiaction_error');
}
$indata = base64_decode($indata);
$indata = dunserialize($indata);
////////////////////////////////////////
list($mokuai, $action) = explode("_", $apiaction);
$api_file = $action ? $mokuai . '_api_' . $action : 'main_api_' . $action;
//dump($api_file);
if (file_exists(GC($api_file))) {
    require_once GC($api_file);
}
////////////////////////////////////////
if (is_array($outdata)) {
    require_once libfile('class/xml');
    $filename = $apiaction . '.xml';
    $plugin_export = array2xml($outdata, 1);
    ob_end_clean();
    dheader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    dheader('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    dheader('Cache-Control: no-cache, must-revalidate');
    dheader('Pragma: no-cache');
    dheader('Content-Encoding: none');
    dheader('Content-Length: ' . strlen($plugin_export));
    dheader('Content-Disposition: attachment; filename=' . $filename);
    dheader('Content-Type: text/xml');
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$sid = getgpc('sid');
$subsid = getgpc('subsid');
$navtitle = lang('plugin/yiqixueba', 'shop');
require_once GC('shop_yiqixueba_shophead');
//参考网站http://www.pailezu.com/
$goods = C::t(GM('shop_goods'))->range();
include template(GT('shop_goodslist'));
Beispiel #4
0
{
    global $sitekey, $curmokuai;
    $page_filename = md5($sitekey . $pagename);
    $page_file = DISCUZ_ROOT . 'source/plugin/yiqixueba/pages/' . $page_filename;
    $cache_filename = md5($sitekey . $page_filename . filemtime($page_file));
    $cache_file = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . $cache_filename;
    return $cache_file;
}
//
//
function GM($tablename)
{
    global $sitekey, $curmokuai;
    $table_file = '#yiqixueba#y_' . md5($sitekey . $tablename);
    return $table_file;
}
//
//
function GV($templatename)
{
    global $sitekey;
    $template_file = 'yiqixueba:' . md5($sitekey . $templatename);
    return $template_file;
}
//
$mokuais = array('main' => '1.0', 'server' => '1.0', 'shop' => '1.0', 'wxq123' => '1.0', 'yqxb' => '1.0', 'cheyouhui' => '1.0');
foreach ($mokuais as $k => $v) {
    if (file_exists(GC($k . '_function'))) {
        require_once GC($k . '_function');
    }
}
Beispiel #5
0
$admin_menu = array();
$menus_admincp = getadmincpmenus(2);
$menuk = 0;
foreach ($menus_admincp as $mk => $row) {
    $sub_menu = $row['submenu'];
    list($mm, $mt, $mn) = explode("_", $subrow['modfile']);
    $menukk = 0;
    $submenus = array();
    $cursubtitle = $curmokuai = '';
    foreach ($sub_menu as $kk => $subrow) {
        if ($menuk == 0 && $menukk == 0 && empty($submod)) {
            $submod = $mk . '_' . $kk;
        }
        if ($submod == $mk . '_' . $kk) {
            $curtitle = $row['title'];
            $cursubtitle = $subrow['title'];
            $curmokuai = $mk;
            $mod_file = $subrow['modfile'];
        }
        $submenus[] = array($subrow['title'], 'plugins&identifier=yiqixueba&pmod=admincp&submod=' . $mk . '_' . $kk, $mod_file == $subrow['modfile']);
        $menukk++;
    }
    $admin_menu[] = array(array('menu' => $cursubtitle ? $cursubtitle : $row['title'], 'submenu' => $submenus), $curmokuai == $mk);
    $menuk++;
}
echo '<style>.floattopempty { height: 15px !important; height: auto; } </style>';
showsubmenu($plugin['name'] . ' ' . $plugin['version'] . ' (' . $curtitle . ')', $admin_menu, '<span style="float:right;padding-right:40px;"><a href="plugin.php?id=' . $plugin['identifier'] . '&submod=main_mokuai" target="_blank" class="bold" >' . $plugin['name'] . '</a>&nbsp;&nbsp;<a href="plugin.php?id=' . $plugin['identifier'] . ':member"  target="_blank" class="bold" >' . lang('plugin/yiqixueba', 'member') . '</a></span>');
$this_page = substr($_SERVER['QUERY_STRING'], 7, strlen($_SERVER['QUERY_STRING']) - 7);
stripos($this_page, 'subop=') ? $this_page = substr($this_page, 0, stripos($this_page, 'subop=') - 1) : $this_page;
require_once GC($mod_file);
Beispiel #6
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$submod = getgpc('submod');
$subop = getgpc('subop');
$this_page = str_replace('id=yiqixueba:yiqixueba', 'id=yiqixueba', $_SERVER['QUERY_STRING']);
$this_page = substr($_SERVER['QUERY_STRING'], 12, strlen($_SERVER['QUERY_STRING']) - 12);
stripos($this_page, 'subop=') ? $this_page = substr($this_page, 0, stripos($this_page, 'subop=') - 1) : $this_page;
$submod = $submod ? $submod : 'main_index';
list($m, $n) = explode("_", $submod);
$submod_file = $m . '_yiqixueba_' . $n;
require_once GC($submod_file);
if ($submod == 'shop_baidumap') {
    include template(GV('shop_yiqixueba_baidumap'));
}
Beispiel #7
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$base_page = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . C::t('common_setting')->fetch('yiqixueba_basepage');
if (file_exists($base_page) && is_file($base_page)) {
    require_once $base_page;
    require_once GC('main_yiqixueba');
}
Beispiel #8
0
    include template(GV('main_member'));
    exit;
} else {
    dsetcookie('yiqixueba_login', 'yes', 900);
}
$this_page = 'plugin.php?' . $_SERVER['QUERY_STRING'];
stripos($this_page, 'subop=') ? $this_page = substr($this_page, 0, stripos($this_page, 'subop=') - 1) : $this_page;
$navs = getmembernav(2);
$menuk = 0;
foreach ($navs as $mk => $row) {
    $menukk = 0;
    foreach ($row['submenu'] as $kk => $subrow) {
        if ($menuk == 0 && $menukk == 0 && empty($submod)) {
            $submod = $mk . '_' . $kk;
        }
        list($m, $p) = explode("_", $submod);
        if ($m == $mk && !$p && $menukk == 0) {
            $submod = $m . '_' . $kk;
            $p = $kk;
        }
        if ($m == $mk) {
            $subnavs[$kk] = $subrow;
        }
        if ($submod == $mk . '_' . $kk) {
            require_once GC($subrow['modfile']);
        }
        $menukk++;
    }
    $menuk++;
}
include template(GV('main_member'));
Beispiel #9
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$base_page = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . C::t('common_setting')->fetch('yiqixueba_basepage');
if (file_exists($base_page) && is_file($base_page)) {
    require_once $base_page;
}
require_once GC('main_api');
Beispiel #10
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$base_page = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . C::t('common_setting')->fetch('yiqixueba_basepage');
if (file_exists($base_page) && is_file($base_page)) {
    require_once $base_page;
}
require_once GC('main_member');
Beispiel #11
0
<?php

if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
$base_page = DISCUZ_ROOT . 'source/plugin/yiqixueba/runtime/~' . C::t('common_setting')->fetch('yiqixueba_basepage');
if (file_exists($base_page) && is_file($base_page)) {
    require_once $base_page;
}
$ajaxtype = trim(getgpc('ajaxtype'));
foreach ($mokuais as $k => $v) {
    if (file_exists(GC($k . '_ajax'))) {
        require_once GC($k . '_ajax');
    }
}
if ($win) {
    include template(GV('main_winajax'));
} else {
    include template(GV('main_ajax'));
}