%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/logodowntown.com/pay/make-payment/
Upload File :
Create Path :
Current File : //home/eirtvhdf/logodowntown.com/pay/make-payment/getLink.php

<?php
//echo isset($_POST['q']);

if(isset($_POST['q']) && $_POST['q']=='generate'){
    $whitelist = array(
        '127.0.0.1',
        '::1'
    );
    if(!in_array($_SERVER['REMOTE_ADDR'], $whitelist)){
        $serverName = 'https://'.$_SERVER['SERVER_NAME']."/";
    } else {
        $serverName = "http://localhost/alogodaddy/";
    }

    $package = $_POST['package'];
    $amount = $_POST['amount'];

    /*Encodeing*/
    function base64_url_encode($input){return strtr(base64_encode($input), "+/=", "-_,");}
    $encoded=urlencode($serverName.'pay/?pay='.$amount);
    $encoded=base64_url_encode($encoded);
//    echo $encoded.'<br>';
    /*Encodeing*/

    echo $serverName.'pay/?q=pay&pay='.$encoded;
}
if(isset($_GET['q']) && $_GET['q']=='pay') {

    /*Decoding*/
    function base64_url_decode($input){return base64_decode(strtr($input, "-_,", "+/="));}
    $decode = base64_url_decode($payItem);
    $decode = urldecode($decode);
//    echo $decode.'<br>';
    /*Decoding*/
    $parts = parse_url($decode);
    parse_str($parts['query'], $query);
    $amount = $query['pay'];
}







Zerion Mini Shell 1.0