Prv8 Shell
Server : Apache
System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User : urbanovitalinoad ( 1001)
PHP Version : 7.3.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/urbanovitalinoad/public_html/enel/administrator/components/com_sppagebuilder/tables/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/urbanovitalinoad/public_html/enel/administrator/components/com_sppagebuilder/tables/page.php
<?php
/**
 * @package SP Page Builder
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2016 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined ('_JEXEC') or die ('restricted aceess');

// import Joomla table library
jimport('joomla.database.table');

class SppagebuilderTablePage extends JTable {

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

	public function bind($array, $ignore = ''){
		if (isset($array['id'])) {
			$date = JFactory::getDate();
			$user = JFactory::getUser();

			if ($array['id']) {
				$array['modified'] = $date->toSql();
				$array['modified_by'] = $user->get('id');
			}else{
				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 JRules($array['rules']);
			$this->setRules($rules);
		}
		return parent::bind($array, $ignore);
	}

	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 JTable::_getAssetParentId()
   */
	protected function _getAssetParentId(JTable $table = NULL, $id = NULL){
		$asset = JTable::getInstance('Asset');
		$asset->loadByName('com_sppagebuilder');
		return $asset->id;
	}

}

haha - 2025