[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: user-info.php
<?php echo '<div class="booked-scrollable">'; echo '<p class="booked-title-bar"><small>'.esc_html__('Edit Appointment','booked').'</small></p>'; $appt_id = ( isset($_POST['appt_id']) ? esc_html( $_POST['appt_id'] ) : false ); ?><form action="" method="post" class="booked-form" id="editAppointmentForm" data-appt-id="<?php echo $appt_id; ?>"<?php if ($calendar_id): echo ' data-calendar-id="'.$calendar_id.'"'; endif; ?>><?php $calendars = get_the_terms( $appt_id, 'booked_custom_calendars' ); if ( !empty($calendars) ): foreach( $calendars as $calendar ): $calendar_id = $calendar->term_id; endforeach; else: $calendar_id = false; endif; $_appt = get_post( $appt_id ); $user_id = ( isset($_POST['user_id']) ? esc_html( $_POST['user_id'] ) : false ); if ( $appt_id ): ?><p class="booked-calendar-name"><?php esc_html_e( 'Appointment Date/Time', 'booked' ); ?></p><?php // Appointment Information $time_format = get_option('time_format'); $date_format = get_option('date_format'); $timestamp = get_post_meta($appt_id, '_appointment_timestamp',true); $timeslot = get_post_meta($appt_id, '_appointment_timeslot',true); $cf_meta_value = get_post_meta($appt_id, '_cf_meta_value',true); $date_display = date_i18n($date_format,$timestamp); $day_name = date_i18n('l',$timestamp); $timeslots = explode('-',$timeslot); $time_start = date_i18n($time_format,strtotime($timeslots[0])); $time_end = date_i18n($time_format,strtotime($timeslots[1])); if ($timeslots[0] == '0000' && $timeslots[1] == '2400'): $timeslotText = esc_html__('All day','booked'); else : $timeslotText = $time_start.' '.esc_html__('to','booked').' '.$time_end; endif; $year = date_i18n( 'Y', $timestamp ); $month = date_i18n( 'm', $timestamp ); $day = date_i18n( 'd', $timestamp ); $full_date = date_i18n( 'Y-m-d', $timestamp ); echo '<div class="field">'; echo '<i class="booked-icon booked-icon-calendar" style="font-size:1.2em; position:relative; top:-1px;"></i> <span class="booked_appt_date-formatted">' . date_i18n( $date_format, $timestamp ) . '</span>'; echo '<input type="hidden" placeholder="Date..." class="large textfield booked_appt_date" name="appt_date" value="' . date_i18n( 'Y-m-d', $timestamp ) . '">'; echo '</div>'; echo '<div class="field timeslots-select-field">'; booked_timeslots_select( $appt_id, $year, $month, $day ); echo '</div>'; echo '<hr>'; ?><p class="booked-calendar-name"><?php esc_html_e( 'Customer Information', 'booked' ); ?></p><?php if ( !$user_id ): $first_name = get_post_meta($appt_id, '_appointment_guest_name',true); $last_name = get_post_meta($appt_id, '_appointment_guest_surname',true); $customer_email = get_post_meta($appt_id, '_appointment_guest_email',true); else : // Customer Information $user_info = get_userdata($user_id); $first_name = booked_get_name($user_id,'first'); $last_name = booked_get_name($user_id,'last'); $customer_email = $user_info->user_email; $customer_phone = get_user_meta($user_id, 'booked_phone', true); endif; $name_requirements = get_option('booked_registration_name_requirements',array('require_name')); if (isset($name_requirements[0]) && $name_requirements[0] == 'require_surname'): ?> <div class="field"> <input value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e('First Name','booked'); ?>..." type="text" class="textfield" name="name" /> <input value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e('Last Name','booked'); ?>..." type="text" class="textfield" name="surname" /> </div> <?php else: ?> <div class="field"> <input value="<?php echo $first_name . ( $last_name ? ' ' . $last_name : '' ); ?>" placeholder="<?php esc_html_e('Name','booked'); ?>..." type="text" class="large textfield" name="name" /> </div> <?php endif; if ($customer_email): ?><div class="field"> <input value="<?php echo $customer_email; ?>" placeholder="<?php esc_html_e('Email Address','booked'); ?>..." type="email" class="large textfield" name="email" /> </div><?php endif; if ($customer_phone): ?><div class="field"> <input value="<?php echo $customer_phone; ?>" placeholder="<?php esc_html_e('Phone Number','booked'); ?>..." type="tel" class="large textfield" name="phone" /> </div><?php endif; echo '<hr>'; ?><p class="booked-calendar-name"><?php esc_html_e( 'Appointment Information', 'booked' ); ?></p><?php do_action('booked_before_appointment_information_admin'); echo ($cf_meta_value ? '<div class="cf-meta-values">'.$cf_meta_value.'</div>' : ''); do_action('booked_after_appointment_information_admin'); echo '<hr>'; ?><input type="hidden" name="action" value="booked_admin_edit_appt" /> <input type="hidden" name="user_id" value="<?php echo $user_id; ?>" /> <input type="hidden" name="appt_id" value="<?php echo $appt_id; ?>" /> <input type="hidden" name="calendar_id" value="<?php echo $calendar_id; ?>" /><?php ?><div class="field"> <input type="submit" class="button button-primary" value="<?php esc_html_e('Update Appointment','booked'); ?>"> </div><?php endif; ?></form><?php echo '</div>'; // Close button echo '<a href="#" class="close"><i class="booked-icon booked-icon-close"></i></a>';
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154