} if (isset($_SESSION['tmp']['deposit_id']) && $_SESSION['tmp']['deposit_id']) { $_SESSION['tmp']['deposit_id'] = 0; } if ($command == 'success' && $depositID) { $depositClass = new deposit(); $info = $depositClass->get($depositID); if ($info && $info['paid'] == 'true') { refresh('http://' . $config['domain'] . '/' . $languageURL . 'deposit/', $langArray['complete_deposit'], 'complete'); } else { refresh('http://' . $config['domain'] . '/' . $languageURL . 'deposit/', $langArray['error_deposit'], 'error'); } } if (isset($_POST['amount'])) { $depositClass = new deposit(); $depositID = $depositClass->add(); if ($depositID !== FALSE) { if (isset($_SESSION['tmp']['order_id'])) { unset($_SESSION['tmp']['order_id']); } $_SESSION['tmp']['deposit_id'] = $depositID; refresh('/' . $languageURL . 'users/payment/'); } } #面包屑 abr('breadcrumb', '<a href="/' . $languageURL . '" title="">' . $langArray['home'] . '</a> \\ <a href="/' . $languageURL . 'users/deposit/" title="">' . $langArray['deposit'] . '</a>'); $discount = array(); if ($meta['prepaid_price_discount']) { if (strpos($meta['prepaid_price_discount'], '%')) { $discount = $meta['prepaid_price_discount']; } else {