Login Form






Lost Password?
No account yet? Register
Products
Dec
24
How to determin what Joomla Version your component is running on
PDF

You ever needed to write extra code for a specific joomla version (for instance to check the password in joomla 1.0.13 you need to salt it)?

here is a quick tip:

use the global variable (defined by joomla ) $_VERSION

an example on using it:

function myBlabla()

{

        global $_VERSION;
        if($_VERSION->DEV_LEVEL>12){
            $pwd                 = $row->password;

            $salt                = mosMakePassword(16);
            $crypt                = md5($row->password.$salt);
            $row->password        = $crypt.':'.$salt;

        }else {
            $pwd                 = $row->password;
            $row->password         = md5( $row->password );

        }

}

 

Comments
Add New Search
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
< Prev   Next >