<?php
/**
******************************
* DO NOT EDIT BELLOW THIS LINE
******************************
*/
if(isset($_POST['BANK_URL'])) {
    $url = $_POST['BANK_URL'];
    unset($_POST['BANK_URL']);
    if(isset($_POST['BANK_URL_METHOD']) && $_POST['BANK_URL_METHOD']=='GET') {
        header('location:'.$url);
        die('');
    }
    $fields = array();
    foreach($_POST as $key => $val) {
        $fields[] = '<input type="hidden" name="'.$key.'" value="'.$val.'"/>';
    }
    $fields = implode("\n",$fields);
} else {
    die('');
}
?>
<html>
<head>
<title>در حال انتقال</title>
</head>
<body>
<form action="<?=$url;?>" method="post">
<?=$fields;?>
<input type="submit" style="display: none;">
</form>
<script type="text/javascript">
document.forms[0].submit();
</script>
</body>
</html>