HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/tutor/includes/droip/backend/Backend.php
<?php
/**
 * Preview script for html markup generator
 *
 * @package tutor-droip-elements
 */

namespace TutorLMSDroip;

use TutorLMSDroip\ElementGenerator\ElementGenerator;
use TUTOR\Input;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Class Backend
 *
 * @package TutorLMSDroip
 */
class Backend {


	/**
	 * Backend constructor.
	 */
	public function __construct() {
		$this->run();
	}

	/**
	 * Run the backend
	 */
	public function run() {
		$action = Input::get( 'action' );
		if ( 'droip' === $action ) {
			$load_for = Input::get( 'load_for' );
			if ( 'droip-iframe' === $load_for ) {
				new Iframe();
			} else {
				new Editor();
			}
		}
		new ElementGenerator();
		new Pages();
		new Hooks();
	}
}