403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/dumpchup.ca/behaviour-taco-bell/app/controller/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/dumpchup.ca/behaviour-taco-bell/app/controller/c-preview.php
<?php

header("Location: " . $cfg['url'] . $lang . '/signature');
exit();

// Required CSS and JS
$required_css = array('preview');
$required_js = array('preview' => 1);
$required_modal = array();

if (!$register_form2->hasBeenValidated()) {
    header("Location: " . $cfg['url'] . $lang . '/signature');
    exit();
}

$noteID = filter_var($_SESSION['selection'], FILTER_SANITIZE_NUMBER_INT);

if (isset($_GET['save'])) {
 
    $register_form->validateFormToSession();
    $register_form2->validateFormToSession();
    
    $data = array_merge($register_form->getValidValues(), $register_form2->getValidValues());
    $data['datetime'] = time();
    $data['noteID'] = $noteID;
    
    try {

        $sql = "INSERT INTO participants (`email_address`, `liability_release`, `opt_in`, `note_id`, `signature`, `datetime`) 
            VALUES (:email_address, :liability_release, :opt_in, :noteID, :signature, :datetime)";				
        $insert = $db->prepare($sql);
        $insert->execute($data);
        
        $id = $db->lastInsertId();
        
    } catch (exception $e) {
        if ($cfg['stage'] == 'development')
            exit($e->getMessage());
    }
    
    session_unset();
    $_SESSION['last_id'] = $id;
    header("Location: " . $cfg['url'] . $lang . '/thank-you');
    exit();
    
} else {
    
    $data = $register_form2->getValidValues();
    $signature = filter_var($data['signature'], FILTER_UNSAFE_RAW);

    try {

        $sql = "SELECT * FROM `notes` WHERE id = :note_id";				
        $get_notes = $db->prepare($sql);
        $get_notes->execute(array("note_id"=> $noteID));

        $note = $get_notes->fetch(PDO::FETCH_ASSOC);

    } catch (exception $e) {
        if ($cfg['stage'] == 'development')
            exit($e->getMessage());
    }
    
}

// Load the view
require ($cfg['server_path'] . '/view/v-preview.php');

?>

Youez - 2016 - github.com/yon3zu
LinuXploit