示例#1
0
<?php

/*
 * Created on 2012-6-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require '../include/common.inc.php';
include ROOT . '/include/init.inc.php';
include ROOT . '/include/member.inc.php';
require ROOT . '/classes/datamgr/order.cls.php';
require ROOT . '/classes/paymentmgr/payment.interface.php';
require ROOT . '/classes/paymentmgr/alipay.cls.php';
$id = $_REQUEST["id"];
$info = $orderMgr->getOrder($id);
if ($info["status"] != "T") {
    WindowRedirect("success.php?id=" . $info["id"]);
}
$url = $CONFIG['URL'] . "/Order/payment.php?id=" . $info["id"];
$alipay = new AlipayMgr();
$price = $info["price"];
$price = 0.01;
$alipay->submit($url, $info["order_no"], "视频会诊" . $info["order_no"], $price, $info["id"]);
示例#2
0
文件: logout.php 项目: iwarsong/NCMI
<?php

require '../include/common.inc.php';
//$lang=$_SESSION[SESSIONNAME]["SysLang"];
$_SESSION[SESSIONNAME] = null;
empty($_SESSION[SESSIONNAME]);
WindowRedirect("../index.php");
示例#3
0
文件: index.php 项目: iwarsong/NCMI
    if (trim($_REQUEST["login_id"]) == "") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["logincannotbenull"]);
    } else {
        $smarty->assign("login_id", $_REQUEST["login_id"]);
    }
    if (trim($_REQUEST["password"]) == "") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["pswcannotbenull"]);
    } else {
        $smarty->assign("password", $_REQUEST["password"]);
    }
    require ROOT . '/classes/datamgr/user.cls.php';
    $login_id = $_REQUEST["login_id"];
    $password = $_REQUEST["password"];
    $userRows = $userMgr->getUserByName($login_id);
    if (count($userRows) == 0 || $userRows[0]["status"] != "A") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["invaliduser"]);
    } else {
        $user = $userRows[0];
        if (md5($password) != $user["password"]) {
            $smarty->assign("ErrorMsg", $SysLang["index"]["incorrectpsw"]);
        } else {
            $_SESSION[SESSIONNAME]["SysUser"] = $user;
            if ($_REQUEST["language"] != "") {
                $_SESSION[SESSIONNAME]["LangCode"] = $_REQUEST["language"];
            }
            WindowRedirect($CONFIG['smarty']['rootpath'] . "/Admin/about.php");
            exit;
        }
    }
}
$smarty->display(ROOT . '/templates/index.html');
示例#4
0
<?php

$user = $_SESSION[SESSIONNAME]["user"];
if ($user == null || $user["id"] == "") {
    $_SESSION[SESSIONNAME]["url_request"] = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    WindowRedirect($CONFIG['URL'] . "/User/login.php");
}
if (isset($_SESSION[SESSIONNAME]["url_request"])) {
    $url_request = $_SESSION[SESSIONNAME]["url_request"];
    unset($_SESSION[SESSIONNAME]["url_request"]);
    WindowRedirect($url_request);
}
示例#5
0
<?php

/*
 * Created on 2012-6-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require '../include/common.inc.php';
include ROOT . '/include/init.inc.php';
require ROOT . '/classes/datamgr/member.cls.php';
require ROOT . '/classes/mgr/mail.cls.php';
$email = $_REQUEST["email"];
if ($memberMgr->checkEmailUsed($email)) {
    $smarty->assign("email", $email);
    $verifycode = $memberMgr->sentRegVerifyCode($email);
    //故意的
    if ($verifycode != "") {
        $mailMgr->sentVerifyEmail($email, $CONFIG['URL'] . "/Member/reg_verify.php?email={$email}&verifycode={$verifycode}");
    }
    $smarty->display(ROOT . '/templates/Member/reg_sent.html');
} else {
    WindowRedirect("reg.php");
}
示例#6
0
文件: logout.php 项目: iwarsong/NCMI
<?php

require 'include/common.inc.php';
//$lang=$_SESSION[SESSIONNAME]["SysLang"];
$_SESSION[SESSIONNAME] = null;
empty($_SESSION[SESSIONNAME]);
WindowRedirect("index.php");
示例#7
0
<?php

require '../include/common.inc.php';
require ROOT . '/classes/datamgr/order.cls.php';
require ROOT . '/classes/paymentmgr/xbt.cls.php';
$payment = new XBTMgr();
$order_no = $_REQUEST["order_no"];
$info = $orderMgr->getOrderByOrderNo($order_no);
WindowRedirect($payment->submit($info));
示例#8
0
<?php

require ROOT . '/classes/datamgr/website.cls.php';
$siteinfo = $websiteMgr->getWebsiteInfo();
$smarty->assign("SITEINFO", $siteinfo);
$member = $_SESSION[SESSIONNAME]["member"];
if ($member != null && $member["id"] != "") {
    $smarty->assign("MEMBER", $member);
    $smarty->assign("LOGINED", "Y");
    if ($member["is_verify"] != "Y") {
        $email = $member["email"];
        WindowRedirect($CONFIG['URL'] . "/Member/reg_sent.php?email={$email}");
    }
}
示例#9
0
require 'include/common.inc.php';
if ($_REQUEST["action"] == "login") {
    if (trim($_REQUEST["login_id"]) == "") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["logincannotbenull"]);
    } else {
        $smarty->assign("login_id", $_REQUEST["login_id"]);
    }
    if (trim($_REQUEST["password"]) == "") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["pswcannotbenull"]);
    } else {
        $smarty->assign("password", $_REQUEST["password"]);
    }
    require ROOT . '/classes/datamgr/doctor.cls.php';
    $login_id = $_REQUEST["login_id"];
    $password = $_REQUEST["password"];
    $doctorRows = $doctorMgr->getDoctorByLoginName($login_id);
    if (count($doctorRows) == 0 || $doctorRows[0]["status"] != "A") {
        $smarty->assign("ErrorMsg", $SysLang["index"]["invaliduser"]);
    } else {
        $doctor = $doctorRows[0];
        if (md5($password) != $doctor["password"]) {
            $smarty->assign("ErrorMsg", $SysLang["index"]["incorrectpsw"]);
        } else {
            $doctor["user_name"] = $doctor["name"];
            $_SESSION[SESSIONNAME]["SysUser"] = $doctor;
            WindowRedirect($CONFIG['smarty']['rootpath'] . "/Admin/dashboard.php");
            exit;
        }
    }
}
$smarty->display(ROOT . '/templates/index.html');
示例#10
0
<?php

/*
 * Created on 2012-6-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require '../include/common.inc.php';
include ROOT . '/include/init.inc.php';
require ROOT . '/classes/datamgr/member.cls.php';
$email = $_REQUEST["email"];
$verifycode = $_REQUEST["verifycode"];
$member = $memberMgr->verifyMember($email, $verifycode);
if ($member != null) {
    $member["is_verify"] = 'Y';
    $_SESSION[SESSIONNAME]["member"] = $member;
    WindowRedirect("info.php");
} else {
    WindowRedirect("login.php");
}