$gamehandset = new Gamehandsets(); $game = new Games(); $payment = new Payments(); $product = new Products(); $transection = new Transections(); $page = new Pages(); $page->pagetpl_dir = $theme_name; if (isset($_GET['t'])) { $token = $_GET['t']; } if (isset($_GET['pid'])) { $pid = $_GET['pid']; } if (!empty($token)) { //Get status $traninfo = $transection->getTransectionByToken($token); if (empty($traninfo)) { flash("Không tồn tại giao dịch!", "index.php", 10); } $pid = $traninfo['product_id']; $status = $traninfo['status']; if ($status == 254) { $status = $payment->getPaymentStatus($token); } if ($status != 1) { flash("Giao dịch này chưa được thực hiện thành công!", "content.php?id=" . $pid, 10); } } $info = $product->getProductById($pid); if (empty($info)) { flash("Không có game nào thoả mãn yêu cầu!", 'index.php', 10);