コード例 #1
0
function reserve_tmp_remove($user, $enc_pass, $tmp_ids)
{
    $out = "auth_error";
    if (user_class::is_authonticated($enc_pass, $user)) {
        ticket_class::removeTmp($tmp_ids);
        $out = "OK";
    }
    return $out;
}
コード例 #2
0
            }
            $zarib = (100 - $customer->getPoorsant($parvaz->getId())) / 100;
            $jam_ghimat1 += $zarib * $tedad * $parvaz->ghimat + $zarib * $inf * $parvaz->ghimat / 10;
            $index++;
            $p_i++;
        }
        $customer->buyTicket($sanad_record_id, $jam_ghimat1);
        if ($ok) {
            echo "<script>window.location = 'finalticket.php?ticket_type={$ticket_type}&sanad_record_id={$sanad_record_id}&r='+Math.random();</script>";
        } else {
            echo "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"></head><body><script language=\"javascript\">alert('ثبت ناموفق');window.location = 'index.php';</script></body></html>";
        }
    } else {
        if ($_REQUEST["mod"] == "reject") {
            $tmp_id = explode(",", $_REQUEST["tmp_id"]);
            $alaki = ticket_class::removeTmp($tmp_id);
            foreach ($selectedParvaz as $tmp) {
                $tmp->resetZarfiat($tedad);
            }
            die("<html><body><script language=\"javascript\"> window.location='index.php'; </script></body></html>");
        }
    }
}
//-----------------------------------------
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php 
echo lang_fa_class::title;