<?php /** * Preview script for html markup generator * * @package tutor-droip-elements */ namespace TutorLMSDroip; use TutorLMSDroip\ElementGenerator\ElementGenerator; 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() { //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $action = sanitize_text_field( isset( $_GET['action'] ) ? $_GET['action'] : null ); if ( 'droip' === $action ) { $load_for = sanitize_text_field( isset( $_GET['load_for'] ) ? wp_unslash( $_GET['load_for'] ) : null ); if ( 'droip-iframe' === $load_for ) { new Iframe(); } else { new Editor(); } } new ElementGenerator(); new Pages(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ElementGenerator | Folder | 0755 |
|
|
Ajax.php | File | 5.41 KB | 0644 |
|
Backend.php | File | 1.03 KB | 0644 |
|
Editor.php | File | 832 B | 0644 |
|
Frontend.php | File | 321 B | 0644 |
|
Helper.php | File | 4.7 KB | 0644 |
|
Iframe.php | File | 1.36 KB | 0644 |
|
Pages.php | File | 3.62 KB | 0644 |
|