Exemplo n.º 1
0
$checkcode = $_POST['checkcode'];
$orgCheckcode = GetCkVdValue();
if ($checkcode != $orgCheckcode || empty($checkcode)) {
    ShowMsg('验证码错误', -1, 1);
    exit;
}
$_SESSION['total_value'] = '';
$dest = Helper_Archive::pregReplace($dest, 5);
$starttime = Helper_Archive::pregReplace($starttime, 5);
$startplace = Helper_Archive::pregReplace($startplace, 5);
$days = Helper_Archive::pregReplace($days, 2);
$adultnum = Helper_Archive::pregReplace($adultnum, 2);
$childnum = Helper_Archive::pregReplace($childnum, 2);
$planerank = Helper_Archive::pregReplace($planerank, 3);
$hotelrank = Helper_Archive::pregReplace($hotelrank, 3);
$room = Helper_Archive::pregReplace($room, 3);
$food = Helper_Archive::pregReplace($food, 3);
$sex = Helper_Archive::pregReplace($sex, 3);
$address = Helper_Archive::pregReplace($address, 5);
$phone = Helper_Archive::pregReplace($phone, 5);
$email = Helper_Archive::pregReplace($email, 5);
$contacttime = Helper_Archive::pregReplace($contacttime, 5);
$content = Helper_Archive::pregReplace($content, 5);
$contactname = Helper_Archive::pregReplace($contactname, 5);
$sql = "insert into #@__customize(dest,starttime,startplace,days,adultnum,\n childnum,planerank,hotelrank,room,food,sex,address,phone,email,contacttime,addtime,content,contactname) values(\n '{$dest}','{$starttime}','{$startplace}','{$days}','{$adultnum}','{$childnum}','{$planerank}','{$hotelrank}',\n '{$room}','{$food}','{$sex}','{$address}','{$phone}','{$email}','{$contacttime}','{$addtime}','{$content}','{$contactname}')";
$result = $dsql->ExecuteNoneQuery($sql);
if ($result) {
    Helper_Archive::showMsg('提交成功', '/customize/index.php', 1, 2);
} else {
    Helper_Archive::showMsg('提交失败', '/customize/index.php', 0, 2);
}
Exemplo n.º 2
0
            } else {
                $fromurl = $GLOBALS['cfg_basehost'];
            }
        }
        $emailInfo = Helper_Archive::getEmailMsgConfig('reg');
        if (!empty($emailInfo) && $emailInfo['isopen'] == 1) {
            $title = '邮箱注册成功';
            $content = $emailInfo['msg'];
            $content = str_replace('{#PASSWORD#}', $password, $content);
            $content = str_replace('{#EMAIL#}', $email, $content);
            $content = str_replace('{#WEBNAME#}', $GLOBALS['cfg_webname'], $content);
            ordermaill($email, $title, $content);
        }
        Helper_Archive::showMsg('注册成功!' . $ucsynlogin, $fromurl, 1);
    } else {
        Helper_Archive::showMsg('注册失败!请重试', 'reg.php?dopost=reg', 0);
        return;
    }
}
//用户名检测
if ($dopost == 'checkusername') {
    $sql = "select count(*) as num from #@__member where uname='{$username}'";
    $row = $dsql->GetOne($sql);
    if ($row['num'] == 0) {
        echo 'succeed';
    } else {
        echo '用户名重复,换一个用户名试试';
    }
} else {
    if ($dopost == 'checkmobile') {
        $sql = "select count(*) as num from #@__member where mobile='{$mobile}'";
Exemplo n.º 3
0
    exit;
}
//在线支付
if ($dopost == 'payonline') {
    $order = Helper_Archive::getOrderInfo($id);
    $price = !empty($order['dingjin']) ? $order['dingjin'] * $order['dingnum'] : intval($order['dingnum']) * $order['price'];
    if (empty($price)) {
        $url = "{$GLOBALS['cfg_basehost']}/cars/show_{$order['productaid']}.html";
        header("location:{$url}");
        exit;
    }
    echo Helper_Archive::payOnline($order['ordersn'], $order['productname'], $price, $paytype);
}
$pv = new View($typeid);
if (empty($suitid)) {
    Helper_Archive::showMsg("请选择套餐", -1, 0);
}
$row = $dsql->GetOne("select a.*,a.id as suitid,a.unit as suitunit, b.* from #@__car_suit a left join #@__car b on a.carid=b.id where a.id='{$suitid}'");
$userinfo = $User->getInfoByMid($User->uid);
$row['carkind'] = getCarKind($row['carkindid'], 0);
$row['carbrand'] = getCarBrand($row['carbrandid'], 0);
$row['carnumber'] = getSeries($row['id'], '03');
//编号
$row['typename'] = GetTypeName($typeid);
$price = getSuitPriceByDay($suitid, $usedate);
$row['singleprice'] = $price;
$row['usedate'] = $usedate;
$row['title'] = $row['title'] . $row['suitname'];
if (!empty($price)) {
    $row['price'] = $price;
    if (!empty($row['suitunit'])) {
Exemplo n.º 4
0
$memberid = $niming == 1 ? 0 : $User->uid;
$addtime = time();
$content = htmlspecialchars($content);
if (!get_magic_quotes_gpc()) {
    $content = addslashes($content);
}
switch ($typeid) {
    case 1:
        $table = '#@__line';
        $urlpath = 'lines';
        break;
    case 4:
        $table = '#@__article';
        $urlpath = 'raiders';
        break;
    case 6:
        $table = '#@__photo';
        $urlpath = 'photos';
        break;
    default:
        break;
}
$temp_aid = $dsql->GetOne("select aid from {$table} where id=" . $articleid);
$url = "/{$urlpath}/show_{$temp_aid['aid']}.html";
$sql = "insert into #@__comment(typeid,articleid,memberid,content,pid,dockid,addtime) values({$typeid},{$articleid},'{$memberid}','{$content}','{$pid}','{$dockid}','{$addtime}')";
$result = $dsql->ExecuteNoneQuery($sql);
if ($result) {
    Helper_Archive::showMsg("评论成功", $url, 1, 3);
} else {
    Helper_Archive::showMsg("评论错误", $url, 0, 3);
}