Esempio n. 1
0
<?php

/**
 * @file forumnav.php
 * @Brief 
 * @author youzu
 * @version 1
 * @date 2015-04-03
 */
if (!defined('IN_MOBILE_API')) {
    exit('Access Denied');
}
require_once dirname(dirname(dirname(__FILE__))) . '/bigappjson.class.php';
$_GET['mod'] = 'logging';
$_GET['action'] = !empty($_GET['action']) ? $_GET['action'] : 'login';
$params = BigAppAPI::parseParam();
$state = time();
if ($params['is_first']) {
    $_GET['code'] = BigAppAPI::getOauthCode($params['user_name'], $params['password'], $state);
    $_GET['state'] = $state;
    $_GET['t'] = 'yz';
} else {
    $_GET['nickname'] = $params['nickname'];
    $_GET['code'] = $params['code'];
    $_GET['t'] = 'yz';
}
require_once 'member.php';
class BigAppAPI
{
    function common()
    {