Current File : /home/pacjaorg/public_html/km/administrator/components/com_djclassifieds/controllers/userspoint.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 DJClassifiedsControllerUsersPoint extends JControllerForm
{
	public function save($key = null, $urlVar = null)
	{
		$app = JFactory::getApplication();
		$data  = $this->input->post->get('jform', array(), 'array');
		
		if($data['id']==0 && $data['user_id']){
			$points_info = array();
			$points_info['value'] = $data['points'];
			$points_info['description'] = $data['description'];			
			DJClassifiedsNotify::notifyUserPoints($data['user_id'], $points_info);
		}

		return parent::save($key, $urlVar);
	}
}
?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!