Beispiel #1
0
}
//--通知信件資料
$mail_data = $conn->GetArray("select * from " . PREFIX . "data_list where type='paymail' and status=1");
if ($mail_data) {
    foreach ($mail_data as $k => $v) {
        $shopping_car->order_mail_msg_top[$v['new_type']] = dequotes($v["detail"], -1);
        //-上板
        $shopping_car->order_mail_msg_foot[$v['new_type']] = dequotes($v["memo"], -1);
        //-下版
        $shopping_car->order_mail_title[$v['new_type']] = dequotes($v["name"], -1);
        //-下版
    }
}
///▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
//--會員判斷是否登入
if (!$member->status() && 0) {
    //---沒登入暫存到session 購物車
    if ($_GET["addpro"]) {
        if (!$_GET["count"]) {
            $_GET["count"] = 1;
        }
        $_SESSION["temp_shopping_car"][] = $_GET["addpro"] . '|__|' . $_GET["count"] . '|__|' . $_GET["size"];
        if ($_GET["ajax"]) {
            echo 'ok';
            exit;
        } else {
            alert('您未登入已將您購買的商品暫存,登入後才會正式加入購物車', -1);
            exit;
        }
    }
    //--其他類的產品暫存
Beispiel #2
0
$member2->clone_of($member,'member2');
*/
//--設定認證信功能
$member->check_mail = 1;
//--信箱title設定 (不使用SMTP也要設定)
$member->set_mail($web_set['title'], $web_set["send_email"]);
//smtp設定
$smtp_set = $console->conn->GetRow("select * from " . PREFIX . "data_list where type='smtp_mail' and status=1");
if ($smtp_set) {
    $smtp_set["detail"] = explode('|__|', $smtp_set["detail"]);
    $member->smtp_setting($smtp_set["detail"][1], $smtp_set["detail"][3], $smtp_set["detail"][4], $smtp_set["detail"][2] * 1, $smtp_set["detail"][0]);
}
//## 購物車
$shopping_car = new order($console->conn, PREFIX . "shopping_car", PREFIX . "shopping_car_list", PREFIX . "products");
$no_check = array('login', 'fotgot', 'join', 'open', 'net_login');
if (!$member->status() && !in_array($act, $no_check)) {
    //linkto($console->_j_web_set['main_path']."/member/login");
    exit;
}
//--社群按鈕
$data["twitterurl"] = '//' . $_SERVER['HTTP_HOST'] . '/includes/twitter/twitterapi.php?callback=' . urlencode('//' . $_SERVER['HTTP_HOST'] . '/member/net_login');
$data["yahoourl"] = '//' . $_SERVER['HTTP_HOST'] . '/includes/openid/yahooapi.php?callback=' . urlencode('//' . $_SERVER['HTTP_HOST'] . '/member/net_login');
$data["fburl"] = '//' . $_SERVER['HTTP_HOST'] . '/includes/openid/fbapi.php?callback=' . urlencode('//' . $_SERVER['HTTP_HOST'] . '/member/net_login');
$data["googleurl"] = '//' . $_SERVER['HTTP_HOST'] . '/includes/googleapi/googleapi.php?callback=' . urlencode('//' . $_SERVER['HTTP_HOST'] . '/member/net_login');
switch ($act) {
    case "detail":
        $_SESSION["member_info"]["member"] = $member->getinfo();
        //--級別
        $temp = $console->conn->GetRow("select * from " . PREFIX . "data_list where type='memberdesh' and new_type='" . $_SESSION["member_info"]["member"]["type"] . "'");
        $_SESSION["member_info"]["member"]["type_html"] = $temp["name"];
        if ($_POST) {