403Webshell
Server IP : 172.67.191.97  /  Your IP : 104.23.243.196
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/icaoc/administrator/components/com_sppagebuilder/editor/traits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/icaoc/administrator/components/com_sppagebuilder/editor/traits/PageContentById.php
<?php


/**
 * Sample trait for managing API endpoints.
 */
trait PageContentById
{
	public function pageContentById()
	{
		$method = $this->getInputMethod();
		$this->checkNotAllowedMethods(['POST', 'PUT', 'DELETE', 'PATCH'], $method);

		$this->getPageContentById();
	}

	/**
	 * @return void
	 * @since 5.4.0
	 */
	public function getPageContentById()
	{
		$id = $this->getInput('id', null, 'INT');
		

		$model = $this->getModel('Editor');

		if (!$id)
		{
			$response['message'] = 'Missing Page ID';
			$this->sendResponse($response, 400);
		}

		$content = $model->getPageContent($id);

		if (empty($content))
		{
			$this->sendResponse(['message' => 'Requesting page not found!'], 404);
		}

		$content = ApplicationHelper::preparePageData($content);

		$type = '';

		if (!empty($content->extension_view) && $content->extension_view === 'popup') {
			$type = 'popup';
		}

		$isPopup = false;

		if ($type === 'popup') {
			$isPopup = true;
		}

		$easyStoreRouteType = $content->extension === 'com_easystore' ? $content->extension_view : null;

		$content->url = SppagebuilderHelperRoute::getFormRoute($content->id, $content->language, 0, $easyStoreRouteType, $isPopup);

		unset($content->content);

		$this->sendResponse($content);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit