[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/template/inc_script/felogin/ -> README.txt (source)

   1  Frontend Login workaround
   2  =========================
   3  
   4  This is a very basic set of some scripts to setup frontend login for 
   5  multiple users and also multiple users for different site levels.
   6  
   7  Keep the folder structure as is. Check name of your template folder. 
   8  The default is "template" but maybe different for older releases.
   9  
  10  The script might be compatibe with all releases of phpwcms are 
  11  having support for built-in frontend users because hiding
  12  levels is based on same techniques. But it's untested.
  13  
  14  All setup is done in "felogin.ini.php" which is commented very well.
  15  
  16  To enable login/logout form put the replacement tag {FELOGIN} in the
  17  article. Best is to use HTML content part.
  18  
  19  Other replacement tags are:
  20  - {FELOGIN_USER}     - login name of the user currently logged-in
  21  - {FELOGIN_ERROR}    - login form eror messages
  22  - {FELOGOUT_PREFIX}
  23  - {FELOGOUT_SUFFIX}
  24  
  25  If you want to display additional information on a page about login
  26  status (logged in/logged out) use a simple script which checks against
  27  the PHP constant FELOGIN_IS_LOGGED.
  28  
  29  Sample inline PHP script:
  30  [PHP]
  31  if(defined('FELOGIN_IS_LOGGED') && FELOGIN_IS_LOGGED) {
  32      echo 'Hello {FELOGIN_USER}<br />';
  33      echo '<a href="index.php?id='.FELOGIN_LEVEL_ID.'&amp;logout='.FELOGIN_LOGOUT_GET_VALUE.'">Logout</a>';
  34  } else {
  35      echo 'You are not logged in.';
  36  }
  37  [/PHP]
  38  
  39  --
  40  Copyright (c) 2008 Oliver Georgi <oliver@phpwcms.de>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7