uawdijnntqw1x1x1
IP : 216.73.216.103
Hostname : dsru51-17647.fornex.org
Kernel : Linux dsru51-17647.fornex.org 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
rustam
/
data
/
www
/
vodolaz16
/
plugins
/
user
/
example.php
/
/
<?php /** * @version $Id: example.php 14401 2010-01-26 14:10:00Z louis $ * @package Joomla * @subpackage JFramework * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die( 'Restricted access' ); jimport('joomla.plugin.plugin'); /** * Example User Plugin * * @package Joomla * @subpackage JFramework * @since 1.5 */ class plgUserExample extends JPlugin { /** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * because func_get_args ( void ) returns a copy of all passed arguments NOT references. * This causes problems with cross-referencing necessary for the observer design pattern. * * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.5 */ function plgUserExample(& $subject, $config) { parent::__construct($subject, $config); } /** * Example store user method * * Method is called before user data is stored in the database * * @param array holds the old user data * @param boolean true if a new user is stored */ function onBeforeStoreUser($user, $isnew) { global $mainframe; } /** * Example store user method * * Method is called after user data is stored in the database * * @param array holds the new user data * @param boolean true if a new user is stored * @param boolean true if user was succesfully stored in the database * @param string message */ function onAfterStoreUser($user, $isnew, $success, $msg) { global $mainframe; // convert the user parameters passed to the event // to a format the external application $args = array(); $args['username'] = $user['username']; $args['email'] = $user['email']; $args['fullname'] = $user['name']; $args['password'] = $user['password']; if ($isnew) { // Call a function in the external app to create the user // ThirdPartyApp::createUser($user['id'], $args); } else { // Call a function in the external app to update the user // ThirdPartyApp::updateUser($user['id'], $args); } } /** * Example store user method * * Method is called before user data is deleted from the database * * @param array holds the user data */ function onBeforeDeleteUser($user) { global $mainframe; } /** * Example store user method * * Method is called after user data is deleted from the database * * @param array holds the user data * @param boolean true if user was succesfully stored in the database * @param string message */ function onAfterDeleteUser($user, $succes, $msg) { global $mainframe; // only the $user['id'] exists and carries valid information // Call a function in the external app to delete the user // ThirdPartyApp::deleteUser($user['id']); } /** * This method should handle any login logic and report back to the subject * * @access public * @param array holds the user data * @param array extra options * @return boolean True on success * @since 1.5 */ function onLoginUser($user, $options) { // Initialize variables $success = false; // Here you would do whatever you need for a login routine with the credentials // // Remember, this is not the authentication routine as that is done separately. // The most common use of this routine would be logging the user into a third party // application. // // In this example the boolean variable $success would be set to true // if the login routine succeeds // ThirdPartyApp::loginUser($user['username'], $user['password']); return $success; } /** * This method should handle any logout logic and report back to the subject * * @access public * @param array holds the user data * @return boolean True on success * @since 1.5 */ function onLogoutUser($user) { // Initialize variables $success = false; // Here you would do whatever you need for a logout routine with the credentials // // In this example the boolean variable $success would be set to true // if the logout routine succeeds // ThirdPartyApp::loginUser($user['username'], $user['password']); return $success; } }
/var/www/rustam/data/www/vodolaz16/plugins/user/example.php