T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/hdinvoice3/includes/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/hdinvoice3/includes/templates/edit-customer.php
<?php
/* edit customer */

$hdv_customer_id = intval($_POST['hdv_customer_id']);
$hdv_customer = hdv_get_customer($hdv_customer_id);
// make sure the customer ID exists
if ($hdv_customer_id != "" && $hdv_customer_id != null) {
    // get customer info
    // if customer info exists, continue
    if ($hdv_customer->name != "" && $hdv_customer->name != null) {
        hdv_show_customer($hdv_customer);
    } else {
        echo 'Customer does not exist or is invalid';
    }
} else {
    echo 'no cutomer ID found';
}

function hdv_show_customer($hdv_customer)
{
    ?>

	<div id="save_current_customer" class="hd_button2" style="display: block;">SAVE</div>

	<div class = "one_half">
		<div class = "hdv_row">
			<label for = "hdv_customer_name">Customer Name</label>
			<input type = "text" id = "hdv_customer_name" class = "hdv_input" value = "<?php echo $hdv_customer->name; ?>" placeholder = "enter customer name" required/>
		</div>
		<div class = "hdv_row">
			<label for = "hdv_customer_email">Customer Email <span class="hdv_tooltip">?<span class="hdv_tooltip_content"><span>Needed to automatically send the invoice to the customer.</span></span></span></label>
			<input type = "email" id = "hdv_customer_email" class = "hdv_input" value = "<?php echo $hdv_customer->email; ?>" placeholder = "enter customer email"/>
		</div>
		<div class = "hdv_row">
			<label for = "hdv_customer_website">Customer Website</label>
			<input type = "text" id = "hdv_customer_website" class = "hdv_input" value = "<?php echo $hdv_customer->website; ?>" placeholder = "website" pattern="https?://.+"/>
		</div>
	</div>
	<div class = "one_half last">
		<div class = "hdv_row">
			<label>Customer Logo</label>
			<div class="hd_inv_settings_option">
				<div id = "hdv_customer_logo_wrap">
						<img src = "<?php echo $hdv_customer->logo; ?>" id="hdv_company_logo_img" data-attachment-id = "" class="hdv_upload" alt = "Company Logo"/>
				</div>
			</div>
		</div>
	</div>
	<div class = "clear"></div>

	<hr/>

	<div class = "hdv_row">
		<label for = "hdv_customer_phone">Phone Number</label>
		<input type = "tel" id = "hdv_customer_phone" class = "hdv_input hdv_required" value = "<?php echo $hdv_customer->phone; ?>" placeholder = "enter phone number"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_address">Address</label>
		<input type = "text" id = "hdv_customer_address" class = "hdv_input" value = "<?php echo $hdv_customer->address; ?>" placeholder = "enter address"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_address2">Address Line 2</label>
		<input type = "text" id = "hdv_customer_address2" class = "hdv_input" value = "<?php echo $hdv_customer->address2; ?>" placeholder = "enter address 2"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_city">City</label>
		<input type = "text" id = "hdv_customer_city" class = "hdv_input" value = "<?php echo $hdv_customer->city; ?>" placeholder = "enter city"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_state">Province/State</label>
		<input type = "text" id = "hdv_customer_state" class = "hdv_input" value = "<?php echo $hdv_customer->state; ?>" placeholder = "enter state or province"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_country">Country</label>
		<input type = "text" id = "hdv_customer_country" class = "hdv_input" value = "<?php echo $hdv_customer->country; ?>" placeholder = "enter country"/>
	</div>

	<div class = "hdv_row">
		<label for = "hdv_customer_zip">Postal/ZIP code</label>
		<input type = "text" id = "hdv_customer_zip" class = "hdv_input" value = "<?php echo $hdv_customer->zip; ?>" placeholder = "enter postal/ZIP code"/>
	</div>

	<hr/>

	<div class = "hdv_row">
		<label for = "hdv_customer_tax">Custom Tax Rate <span class="hdv_tooltip">?<span class="hdv_tooltip_content"><span>Enter a tax percent if you need to charge this customer a custom tax rate. Leave blank to use the global tax settings</span></span></span></label>
		<input type = "email" id = "hdv_customer_tax" class = "hdv_input" value = "<?php echo $hdv_customer->tax; ?>" placeholder = "enter custom tax rate"/>
	</div>
	<div class = "hdv_row">
		<label for = "hdv_customer_info">Customer Extra Info <span class="hdv_tooltip">?<span class="hdv_tooltip_content"><span>Enter any personal notes or information on the customer here. These notes are for your use only and are not visible to the customer</span></span></span></label>
		<textarea id = "hdv_customer_info" class = "hdv_visual_editor"><?php echo $hdv_customer->info; ?></textarea>
	</div>

<?php
}
?>

CasperSecurity Mini