Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/sattvicyug.com/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/sattvicyug.com/checkout_mobile_wise.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

	require_once("lib/functions.php");
	$db = new login_function();
	$current_session = session_id(); 

	$admin_email    =   "contact@gmc.com";
	$email          =   "";
	$total_amount  	= 0;
	$current_session." <br />";
	$total_amount 	= 	$db->fetch_total_price_by_session_id($current_session);
	
	/**********************Charges Calculate*************************************/
	$delivery_charges   =   20;
    $delivery_charges_text   =   "";
    $min_order_amount   =   100;
    $total_of_selling = $total_amount;
    if($total_of_selling >= $min_order_amount)
    {
        if($total_of_selling >= 500)
        {
            $delivery_charges = 0;
        }
        
        //Add delivery charges in selling bill
        $final_total    =   $total_of_selling + $delivery_charges;
        
        $total_amount = $final_total;
    }
    else
    {
        header("Location:cart.php");
    }
    /***********************************************************/

	if($total_amount == 0)
	{
		header("Location:cart.php");
	}
	$_SESSION['show_total_amount']=$total_amount;

	$full_name 			= "";	
	$address 			= "";
	$contact_no 		= "";	
	$user_email 		= "";
	$contact_no_error 	= "";
	$flag 				= 0;
	$success_msg 		= 0;
	$email_id_error 	= ""; 
	$fetch_total_amount = 0;
	
	
	// $details = $db->fetch_user_data_by_email_id($email);
	// if(!empty($details))
	// {
	// 	$id 		= $details[0];
	// 	$full_name	= $details[1];
	// 	$address 	= $details[2];
	// 	$contact_no	= $details[3];
	// 	$user_email	= $details[4];
	// }
	$contact_no_error="";
	
	if(isset($_POST['checkout_btn']))
	{
		$contact_no 	= $_POST['contact_no'];
		if(!is_numeric($contact_no))
		{
			$contact_no_error = "Please enter numeric value";
			$flag = 1;
		}
		else if(strlen($contact_no)<10 OR strlen($contact_no)>10)
		{
			$contact_no_error	=	"Please enter valid 10 digit contact no";
			$flag				=	1;
		}
		
		if($flag == 0)
		{
	        echo "<script>window.location.href='checkout-complete.php?mobile_nu=$contact_no';</script>";
		}

		// $_SESSION['contact_no'] = $contact_no;
	}
?>
<?php
	require_once("header.php");	
?>

<style>
    table tr td
    {
        padding-top:5px;
        padding-bottom:5px;
        font-weight:bold;
        font-size:16px;
    }
    .txt_val
    {
        font-size:18px !important;
        font-weight:bold !important;
        border:1px solid #666;
        border-radius:7px;
    }
    .error_indicator
    {
        color:red !important;
    }

</style>
<body>
<div>
  <div id="wrapper" style="max-width: 600px; margin: 0 auto; padding: 20px;">
    <form action="checkout_mobile_wise.php" method="POST" name="register_mail">
      <center>
        <table class="f14" id="tblcrtac" style="border-spacing: 0; width: 100%; max-width: 500px; border-radius: 8px; padding: 20px !important; background-color: #fff;">
          <tbody>
            <?php if ($success_msg == 1): ?>
              <tr>
                <td colspan="3">
                  <div class="alert alert-success" style="padding: 10px; background-color: #28a745; color: white; text-align: center; border-radius: 5px; ">
                    Order Placed Successfully.
                  </div>
                </td>
              </tr>
            <?php endif; ?>
            <tr><td height="17"></td></tr>
            <tr>
              <td colspan="3" style="padding: 10px 0;">
                <label for="contact_no" style="color: orangered; font-size: 15px; font-weight: bold;"><i class="fa fa-whatsapp"></i> WhatsApp Number - You will receive order notifications on whatsapp.</label>
                <!--<br />-->
                <!--<label for="contact_no" style="color: orangered; font-size: 14px; font-weight: bold;"><i class="fa fa-whatsapp"></i></label>-->
              </td>
            </tr>
            <tr>
              <td colspan="3" style="padding: 5px 0;">
                <input type="number" placeholder="Enter WhatsApp Number" class="txt_val" name="contact_no" value="<?php echo $contact_no; ?>" style="width: 100%; padding: 10px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);" required>
              </td>
            </tr>
            <tr>
              <td colspan="3" style="padding: 5px 0; text-align: center;">
                <span class="error_indicator" style="color: red; font-size: 12px;"><?php echo $contact_no_error; ?></span>
              </td>
            </tr>
            <tr>
              <td colspan="3" style="padding: 20px 0; text-align: center;">
                <input type="submit" id="Register" name="checkout_btn" value="Next" class="btn_new" style="border: none; padding: 10px 20px; background-color: #DB0D58; color: white; font-size: 16px; border-radius: 4px; cursor: pointer; ; transition: all 0.3s ease;">
              </td>
            </tr>
          </tbody>
        </table>
      </center>
    </form>
  </div>
  <br><br>
</div>


<hr style="border-bottom:1px solid #DFDFDF" />

<?php
	require_once("footer.php");
?>
</body></html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4