Pay.inc.php

来自通约智库
跳转至: 导航搜索

<?php /**

* Created by PhpStorm.
* User: yzg
* Date: 2016/1/28
* Time: 16:24
*/

if (!defined('IN_DISCUZ')) {

   exit('Access Denied');

}

//ini_set('display_errors', 1); //error_reporting(E_ALL ^ E_NOTICE);

include_once DISCUZ_ROOT.'./source/plugin/xigua_re/common.php';

$config = $_G['cache']['plugin']['xigua_re']; $color = $config['linkcolor'] ? $config['linkcolor'] : '#D75847'; $config['jin'] = explode(',', trim($config['jin'])); foreach ($config['jin'] as $item) {

   if ($item > 0) {
       $configary[] = $item;
   }

}

$touid = intval($_GET['uid']); $touser = getuserbyuid($touid); $toavatar = avatar($touid, 'big', true); $navtitle = $config['linkword'] . $touser['username'];

$user = C::t('#xigua_re#xgre_user')->fetch_user($touid); $toopenid = $user['openid']; if(!$toopenid){

   if($config['needopenid']) {
       dheader('Location:'.dreferer());
       exit;
   }

}

$subject = $_GET['subject']; $postid = $_GET['postid']; $url = $_GET['url'];

include_once template('xigua_re:pay');

//showWindow('sh1', 'http://www.wxigua.com/plugin.php?id=xigua_re:pay', 'get', 0);