HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: 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
Upload Files
File: /home/wbwebdes/domains/appointment.nailsbyrianne.nl/public_html/application/controllers/Backend.php
<?php defined('BASEPATH') or exit('No direct script access allowed');

/* ----------------------------------------------------------------------------
 * Easy!Appointments - Online Appointment Scheduler
 *
 * @package     EasyAppointments
 * @author      A.Tselegidis <[email protected]>
 * @copyright   Copyright (c) Alex Tselegidis
 * @license     https://opensource.org/licenses/GPL-3.0 - GPLv3
 * @link        https://easyappointments.org
 * @since       v1.0.0
 * ---------------------------------------------------------------------------- */

/*
|------------------------------------------------------------------------------
| Deprecation Notice
|------------------------------------------------------------------------------
|
| This file is still in the project for backwards compatibility reasons and for 
| providing additional information on how to migrate your code to the latest   
| codebase state. 
|
| Visit the Easy!Appointments Developers website for more information:  
|
|   https://developers.easyappointments.org
|
| Since v1.5, the methods of this controller were ported to standalone controller 
| classes, that can both handle the page rendering and all asynchronous HTTP  
| requests. 
|
*/

/**
 * Backend controller.
 *
 * Handles the backend related operations.
 *
 * @package Controllers
 *
 * @deprecated Since 1.5
 */
class Backend extends EA_Controller
{
    /**
     * Display the calendar page.
     *
     * @param string $appointment_hash Appointment edit dialog will appear when the page loads (default '').
     */
    public function index(string $appointment_hash = ''): void
    {
        if (empty($appointment_hash)) {
            redirect('calendar');
        } else {
            redirect('calendar/reschedule/' . $appointment_hash);
        }
    }

    /**
     * Display the customers page.
     */
    public function customers(): void
    {
        redirect('customers');
    }

    /**
     * Display the services page.
     */
    public function services(): void
    {
        redirect('services');
    }

    /**
     * Display the users page.
     *
     * Notice: Since the "users" page is split into multiple pages (providers, secretaries, admins), this method will
     * redirect to "providers" page by default
     */
    public function users(): void
    {
        redirect('providers');
    }

    /**
     * Display settings page.
     *
     * Notice: Since the "settings" page is split into multiple pages (general, business, booking etc.), this method will
     * redirect to "general" page by default.
     */
    public function settings(): void
    {
        redirect('general_settings');
    }

    /**
     * Display the update page.
     */
    public function update(): void
    {
        redirect('update');
    }
}