eregi function

crnogorac081

I noticed in latest (1443) svn that you can signup (open new account) when you are loged in.

Dont you thing that access to signup page shuld be forbiden for loged users.

Possible solution is to add few lines at the top of signup.php like if session[username] != "" {header redirect to index.php}

cheers
Web developer

crnogorac081

great, thanks for info mate!
Web developer

DarkViper

#5
there is a description in file CANGES_IN 2.8.2
'statusflags' is a replacement for the deprecated field 'active'

now up to 32 different Flags can be stored in a single Integer-field (lot of place for future extensions.. ;) )
the 'old' active-flag can be found now in BIT_1 of 'statusflags'
other already defined flags can be explored in /framework/sys.constants.php

Code ( how to use) Select
<?php

if( $rec_user['statusflags'] & USERS_ACTIVE )
{
    echo 
'the user is activated';
}else
{
    echo 
'the user is NOT activated';
}
?>
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

crnogorac081

I dont want to open a new topic, I am curious what does statusflag = 6 by default means in users table ?
Web developer

crnogorac081

Yes you are right, I download from wrong project link..

sorry for my mistake..

Ivan
Web developer

Luisehahne

You have an old Version, it's not Revision 1442

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

crnogorac081

Hi,

I downloaded latest 1442 svn from project page. When I installed it says revision 1287???

However the reason to post here is that I found eregi function in admin/settings/save.php on line 42, and it is deprecated..

Could someone please replace that on project page..

cheers
Web developer