} } include template('user/add'); } else if ($action == 'deposit') { $do = isset($_GET['do']) ? $_GET['do'] : false; if ($do) { switch ($do) { case 'notify': $trade = new Alipay(); $trade->notify(); break; case 'return': $trade = new Alipay(); unset($_GET['action']); unset($_GET['do']); $result = $trade->callback(); include template('user/deposit_return'); break; } exit(); } if (!$sustc->user->islogin()) { dredirect('/user/signin?redirect=/user/deposit'); } if (is_post()) { $err['code'] = -1; $err['success'] = false; $depo = isset($_POST['deposit']) ? $_POST['deposit'] : false; if ($depo && isset($_POST['formhash']) && $sustc->security->check_formhash($_POST['formhash'])) { $price = isset($depo['price']) ? intval($depo['price']) : 0;