Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:50:09 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155534 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: eregi function  (Read 740 times)
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« on: July 22, 2010, 06:36:19 PM »

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
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #1 on: July 22, 2010, 08:51:42 PM »

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

Dietmar
Logged

We are human beings - and nobody is perfect at all.
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #2 on: July 22, 2010, 09:25:48 PM »

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

sorry for my mistake..

Ivan
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #3 on: July 22, 2010, 09:33:11 PM »

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

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
DarkViper
Development Team
*****
Offline Offline

Posts: 1252


« Reply #4 on: July 22, 2010, 09:55:58 PM »

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.. Wink )
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)
<?php

if( $rec_user['statusflags'] & USERS_ACTIVE )
{
    echo 
'the user is activated';
}else
{
    echo 
'the user is NOT activated';
}
?>
« Last Edit: July 22, 2010, 09:59:11 PM by DarkViper » Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #5 on: July 22, 2010, 10:11:38 PM »

great, thanks for info mate!
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #6 on: July 24, 2010, 07:01:39 PM »

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
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!