?
Path : /home/admin/public_html/old/board/administrator/components/com_kunena/install/system/ |
Current File : /home/admin/public_html/old/board/administrator/components/com_kunena/install/system/kunena.php |
<?php /** * @version $Id: kunena.php 4338 2011-01-31 07:28:46Z fxstein $ * Kunena System Plugin * @package Kunena * * @Copyright (C) 2008 - 2011 www.kunena.org All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ defined ( '_JEXEC' ) or die (); class plgSystemKunena extends JPlugin { function __construct(& $subject, $config) { jimport ( 'joomla.application.component.helper' ); // Check if Kunena component is installed/enabled if (! JComponentHelper::isEnabled ( 'com_kunena', true )) { return false; } // Check if Kunena API exists $kunena_api = JPATH_ADMINISTRATOR . '/components/com_kunena/api.php'; if (! is_file ( $kunena_api )) return false; // Load Kunena API require_once ($kunena_api); parent::__construct ( $subject, $config ); } /* function onAfterStoreUser($user, $isnew, $succes, $msg) { //Don't continue if the user wasn't stored succesfully if (! $succes) { return false; } if (! $isnew) { return true; } // Set the db function $db = JFactory::getDBO (); $db->setQuery ( "INSERT INTO #__kunena_users (userid) VALUES ('" . intval($user ['id']) . "')" ); $db->query (); } */ }