Example #1
0
function UserEdit()
{
    $username = $_POST["username"];
    $mobile = $_POST["mobile"];
    $openid = $_POST["openid"];
    $ext1 = "";
    $ext2 = "";
    $flag = 0;
    $ticket = array();
    $ticket = kerry::TicketUnused();
    if (count($ticket) > 0) {
        if ($ticket["begintime"] < date("Y-m-d H:m:s") && $ticket["endtime"] > date("Y-m-d H:m:s")) {
            $ext1 = $ticket['brand'];
            $ext2 = $ticket["mid"];
            $flag = 1;
        } else {
            $ext1 = "";
            $ext2 = $ticket["mid"];
            $flag = 1;
        }
    }
    $userlog = kerry::Userlogin($openid);
    if ($userlog == null) {
        kerry::UserEdit($openid, $username, $mobile, $ext1, $ext2);
        kerry::TicketEdit($ext2);
    }
    header("Location:../discount.php?flag=" . $ext1);
    exit;
}
Example #2
0
<?php

require "code/kerry.php";
header("Content-type: text/html;charset=utf-8");
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
$aa = array();
$aa = kerry::ActiveGroup($openid);
$i = count($aa);
if ($i == 0) {
    kerry::ActiveAdd($openid, "南北玄廊");
    header("Location: index.html");
    exit;
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
Example #3
0
<?php

require "code/kerry.php";
if (!isset($_COOKIE["user"])) {
    setcookie(user, time() + mt_rand(), time() + 60 * 60 * 24 * 30);
}
$openid = $_COOKIE["user"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/swiper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/swiper.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

Example #4
0
 * Time: 11:35
 */
require "code/kerry.php";
header("Content-type: text/html;charset=utf-8");
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
$aa = array();
$aa = kerry::ActiveGroup($openid);
$i = count($aa);
if ($i == 0) {
    kerry::ActiveAdd($openid, "厨师帽");
    header("Location: index.html");
    exit;
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
Example #5
0
<?php

require "code/kerry.php";
header("Content-type: text/html;charset=utf-8");
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
$aa = array();
$aa = kerry::ActiveGroup($openid);
$i = count($aa);
if ($i == 0) {
    kerry::ActiveAdd($openid, "剪刀");
    header("Location: index.html");
    exit;
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
Example #6
0
<?php

require "code/kerry.php";
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
$userlog = kerry::Userlogin($openid);
if (!is_null($userlog)) {
    header("Location:../discount.php?flag=" . $userlog);
    exit;
}
$aa = array();
$aa = kerry::ActiveGroup($openid);
$i = count($aa);
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/swiper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
Example #7
0
<?php

require "code/kerry.php";
header("Content-type: text/html;charset=utf-8");
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
$aa = array();
$aa = kerry::ActiveGroup($openid);
$i = count($aa);
if ($i == 0) {
    kerry::ActiveAdd($openid, "咖啡杯");
    header("Location: index.html");
    exit;
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
Example #8
0
<?php

require "code/kerry.php";
if (!isset($_COOKIE["user1"])) {
    setcookie(user1, time() + mt_rand(), time() + 24 * 60 * 60 - (date('H') * 60 * 60 + date('m') * 60));
}
$openid = $_COOKIE["user1"];
if (kerry::UserCheck($openid) == 0) {
    kerry::UserAdd($openid);
}
kerry::ActiveAdd($openid, "门口");
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>静安嘉里中心</title>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
    </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/swiper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/swiper.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">