WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • eregi function
  • Print
Pages: [1]   Go Down

Author Topic: eregi function  (Read 7484 times)

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
eregi function
« on: July 22, 2010, 07: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
Web developer

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: eregi function
« Reply #1 on: July 22, 2010, 09:51:42 PM »
You have an old Version, it's not Revision 1442

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

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: eregi function
« Reply #2 on: July 22, 2010, 10:25:48 PM »
Yes you are right, I download from wrong project link..

sorry for my mistake..

Ivan
Logged
Web developer

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: eregi function
« Reply #3 on: July 22, 2010, 10: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
Web developer

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: eregi function
« Reply #4 on: July 22, 2010, 10: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.. ;) )
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[&#39;statusflags&#39;] & USERS_ACTIVE )
{
    echo &
#39;the user is activated&#39;;
}else
{
    echo &
#39;the user is NOT activated&#39;;
}
?>
« Last Edit: July 22, 2010, 10:59:11 PM by DarkViper »
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: eregi function
« Reply #5 on: July 22, 2010, 11:11:38 PM »
great, thanks for info mate!
Logged
Web developer

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: eregi function
« Reply #6 on: July 24, 2010, 08: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
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • eregi function
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2