How todisable user/login and user/register ?

Author Message

Paulo Almeida

Saturday 29 March 2003 5:04:26 pm

Even if in templates doesn't use login and register buttons, the user can always write the address in browser.
I can disable it creating an empty template in user module of design, or even redirecting with mod_rewrite, but is there anything like CanRegister=False and CanLogin=False or RedirectLogin=/content..... RedirectRegister=/content.....

Regards
Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Jan Borsodi

Monday 31 March 2003 12:23:34 am

You can use the SiteAccessRules group in site.ini. It's not in the standard site.ini but you can find an example in settings/siteaccess/demo/site.ini.append or settings/siteaccess/sdk/site.ini.append.
Here you can specify which modules are allowed to run and which aren't, you can then disable the user module.

Module/view enabling/disabling is not supported yet.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Paulo Almeida

Monday 31 March 2003 3:52:37 am

Thank you, it worked.
SiteAccess is something that i still have some problems. Like URIMatch.... and so on.
In sdk, is there [SitePrecheckRule], I didn't found anything about that in documentation, can you explain me what it is? Or documentation will shortly include that information.

Best Regards
Paulo Almeida

PACPI.COM Internet Consulting
http://pacpi.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:20:31
Script start
Timing: Jan 18 2025 05:20:31
Module start 'layout'
Timing: Jan 18 2025 05:20:31
Module start 'content'
Timing: Jan 18 2025 05:20:33
Module end 'content'
Timing: Jan 18 2025 05:20:33
Script end

Main resources:

Total runtime1.4199 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.0469152.6406
Module start 'layout' 0.00460.0039 740.687539.4766
Module start 'content' 0.00851.4095 780.1641540.5313
Module end 'content' 1.41800.0019 1,320.695312.1250
Script end 1.4199  1,332.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2099160.0002
Check MTime0.00130.0920160.0001
Mysql Total
Database connection0.00060.042410.0006
Mysqli_queries1.375596.8730570.0241
Looping result0.00050.0329550.0000
Template Total1.390897.920.6954
Template load0.00200.141720.0010
Template processing1.388797.805820.6944
Template load and register function0.00010.006410.0001
states
state_id_array0.00070.049310.0007
state_identifier_array0.00170.121920.0009
Override
Cache load0.00170.1163200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043520.0003
Fetch class attribute name0.00090.065250.0002
XML
Image XML parsing0.00100.067520.0005
class_abstraction
Instantiating content class attribute0.00000.000760.0000
General
dbfile0.00090.0649230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs