Login

Author Message

Jean-François Sénéchal

Thursday 28 September 2006 7:21:18 am

Hello,

In a template or in a script php I get user's login and password

I want to execute the ezpublish's script login with this two variables
How can I execute this ?

for example :

login($user,$password) ??

Thanks a lot for your help

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Claudia Kosny

Saturday 30 September 2006 5:28:46 am

Hi

In a php script you login like this:
eZUser::loginUser( $login, $password );

I don't think you can login from within a template but you can of course write your own operator for this if you really need it.

Greetings from Luxembourg

Claudia

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 31 2025 04:24:52
Script start
Timing: Jan 31 2025 04:24:52
Module start 'layout'
Timing: Jan 31 2025 04:24:52
Module start 'content'
Timing: Jan 31 2025 04:24:52
Module end 'content'
Timing: Jan 31 2025 04:24:52
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 587.8984151.1797
Module start 'layout' 0.00440.0033 739.078136.5781
Module start 'content' 0.00780.0052 775.656389.9531
Module end 'content' 0.01300.0013 865.609429.9922
Script end 0.0143  895.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.6941140.0002
Check MTime0.00106.8623140.0001
Mysql Total
Database connection0.00064.315210.0006
Mysqli_queries0.003221.997130.0011
Looping result0.00000.076610.0000
Template Total0.00107.310.0010
Template load0.00085.622110.0008
Template processing0.00021.599910.0002
Override
Cache load0.00064.142010.0006
General
dbfile0.001610.847980.0002
String conversion0.00000.043340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs