At this rime we have two different login practices:
1. The internally frontend login (using the cp "frontend login")
2. The externally Frontend Login workaround {FELOGIN}
===== FELOGIN: Temp. Frontend Login =====
Download und Posting: [[
http://forum.phpwcms.org/viewtopic.php? ... |Temporary Frontend Login workaround]]
Files:
Code: Select all
| path ^ file ^ descpription ^
^ /template/inc_Script/felogin/ | README.txt | Doc |
^ /template/inc_Script/felogin/ | felogin.ini.php | Main proc. |
^ /template/inc_Script/felogin/ | felogin.logout.html | |
^ /template/inc_Script/felogin/ | felogin.login.html | |
^ /template/inc_Script/fronend_init/ | felogin.init.php | Main proc. |
^ /template/inc_Script/fronend_render/ | felogin.render.php | Main proc. |
> For sure I know you are waiting for the new release since long time including long-awaited permissions and so on.
>
> And yes, I am working on it and as I told flip-flop yesterday: I need it myself for coming projects.
>
> But I also know that there are many of you waiting for a fast and simple simple solution to limit access to special sections of your site, e.g. login area for customers or other user groups.
> I have no backend-ready thing for you right now but here is a very generic | frontend_init/frontend_render script package.
>
> Try it, I have it tested in current development release only but it should work in 1.3.3 too. Documentation is included.
>
> Oliver
This **FELOGIN** behaves like a hood, it becomes from the outside putting over that entire process. //(since version ~1.2.5).
There is no connection to the internal users and all the associated functions.
Users, there keywords and the the protecting levels are administered in an external file.
The backenend settings of "frontend menu status" are not used here.
I isnĀ“t possible to register a User in backend from outside.
=== Condition -> conf.inc.php: ===
Code: Select all
$phpwcms['allow_ext_init'] = 1; //allow including of custom external scripts at frontend initializ.
$phpwcms['allow_ext_render'] = 1; //allow including of custom external scripts at frontend rendering
$phpwcms['allow_cntPHP_rt'] = 1; //allow PHP replacement tags and includes in content parts
$phpwcms['SESSION_FEinit'] = 1; // set 1 to enable sessions in frontend, 0 to disable sessions in frontend
=== Copy the files: ===
Code: Select all
- /template/inc_script/froentend_render/disabled/felogin.render.php -> /template/inc_script/froentend_render/felogin.render.php
- /template/inc_script/froentend_init/disabled/felogin.init.php -> /template/inc_script/froentend_init/felogin.init.php
=== Starting position: ===
Code: Select all
.L E V E L
-: : : : : :
-0 1 2 3 4 5 <- LEVEL-No.)
-: : : : : :
-+ root : : : ID=0
-+--+ en : : : ID=01
-+--+--+ category_01 ID=02
-+--+--+ category_02 ID=03 -> parent category (Loginbase)
-+--+--+--+ category_02_01 ID=05 {FELOGIN} (Login)
-+--+--+--+--+ category_02_01_01 ID=07 -> access blocked
-+--+--+--+--+ category_02_01_02 ID=08 -> access blocked
-+--+--+--+ category_02_02 ID=06 {FELOGIN} (Login)
-+--+--+--+--+ category_02_02_01 ID=11 -> access blocked
-+--+--+--+--+ category_02_02_02 ID=12 -> access blocked
-+--+--+--+--+--+ category_02_02_02_01 ID=13 -> access blocked
-+--+--+--+ category_02_03 ID=09 {FELOGIN} (Login)
-+--+--+--+--+ category_02_03_01 ID=14 -> access blocked
-+--+--+--+--+ category_02_03_02 ID=15 -> access blocked
-+--+--+ category_03 ID=04
-+--+--+ category_04 ID=10
-: : : : : :
-0 1 2 3 4 5 <- LEVEL No.
=== Blocked shall/may: ===
Code: Select all
-+--+--+--+--+ category_02_01_01 ID=07
-+--+--+--+--+ category_02_01_02 ID=08
-+--+--+--+--+ category_02_02_01 ID=11
-+--+--+--+--+ category_02_02_02 ID=12
-+--+--+--+--+--+ category_02_02_02_01 ID=13
-+--+--+--+--+ category_02_03_01 ID=14
-+--+--+--+--+ category_02_03_02 ID=15
The login {FELOGIN} is based in:
Code: Select all
-+--+--+--+ category_02_01 ID=05 {FELOGIN}
-+--+--+--+ category_02_02 ID=06 {FELOGIN}
-+--+--+--+ category_02_03 ID=09 {FELOGIN}
The parent level of the login site(s), called "login base" are
**FELOGIN_LEVEL_DEPTH** refers to the login basis, thus the category in **FELOGIN_LEVEL_ID**. The level counting begins at **home=0** (root)
== felogin.ini.php ==
;The parent category login basis of the login level is (category_02)
FELOGIN_LEVEL_ID = 3
;thus is the level depth to indicate also (category_02 = Level 2)
FELOGIN_LEVEL_DEPTH = 2
; -----------------------------------------
; Put in the level depth, root level = 0
; FELOGIN_LEVEL_DEPTH = 2
FELOGIN_LEVEL_DEPTH = 2
; This is the ID of parent's level, root would be 0
; FELOGIN_LEVEL_ID = 3
FELOGIN_LEVEL_ID = 3
; -----------------------------------------
;[Ebene]
;Name = Passwort
;----------------
[5]
hansi = hansi123
toni = toni123
[6]
waldi = waldi123
oki = oki123
andi = andi123
[9]
mini = mini123
moni = momi123
;----------------
Under the **parent login base** we find the **login categories** and below them the **hidden categories**.
All login categories must be placed in the same level.
No multiaccess from one users to several hidden categories available (e.g. the same user at [5] and [9]), unless this user is created for this categories.
However, changing a complete category thread, a login is generated into the new category. The old category is unloged automatically.
Knut