예제 #1
0
<?php

include_once "../aws/s3filemanage.php";
include_once 'function.php';
include_once "../include/lib.php";
/*
 * 801 验证码错误!
 */
$action = post("Action");
$vcode = post("VCode");
coreUserAction($vcode == session("SessionRoundCode"));
if ($action == "GetData") {
    $year = post("Year") + 1911;
    $month = post("Month");
    $timeFilter = "";
    $timeFilterBy = post("TimeFilterBy");
    if ($month == 0) {
        $timeFilter = " AND year({$timeFilterBy}) = '{$year}'";
    } else {
        $timeFilter = " AND year({$timeFilterBy}) = '{$year}' AND month({$timeFilterBy}) = '{$month}'";
    }
    $result = post("SqlBase") . $timeFilter . post("SqlGroupBy");
    printResultByMessage("", 0, getData($result));
} else {
    if ($action == "GetUserMerchantNumber") {
        $year = post("Year") + 1911;
        $month = post("Month");
        $sqlBase = "Select CustomerType,month(SignUpDate) as Month, count(*) as UserCount FROM Gas.Customer";
        $sqlGroupBy = " GROUP BY month(SignUpDate)";
        $timeFilter = "";
        if ($month == 0) {
예제 #2
0
<?php

include_once "function.php";
include_once "../include/lib.php";
include_once "sms.php";
$action = post("Action");
if ($action == "SignUp") {
    coreUserAction(session("CheckCode") == post("CheckCode"));
} else {
    coreUserAction();
}
include_once "action/registerAction.php";
include_once "action/mapAction.php";
include_once "action/orderAction.php";