WebSite X5Help Center

 
Pasquale L.
Pasquale L.
User

Riconoscimento login utente  it

Author: Pasquale L.
Visited 630, Followers 1, Shared 0  

buon giorno, gentilmente avrei bisogno del codice php che rileva il nome dell' utente che entra in una pagina protetta. quella che ho non funziona su v13 nell'oggetto html

che è questa

Salve,  <?php
$utente = new imPrivateArea();
echo $utente->_decode($_SESSION['im_access_uname'], $imSettings['general']['salt']);
?> 

L'estensione della pagina e PHP

Grazie

Posted on the
4 ANSWERS - 1 CORRECT
Massimo C.
Massimo C.
User

<?php

$pa = Configuration::getPrivateArea();

$user = $pa->whoIsLogged();

echo "Benvenuto".$user['realname'];

?>

Read more
Posted on the from Massimo C.
Pasquale L.
Pasquale L.
User
Author

ho provato, dopo la publicazione la pagina non viene visualizzata dando l'errore

Read more
Posted on the from Pasquale L.
Massimo C.
Massimo C.
User

hai inserito in un oggetto html?

posta lo screenshot dell'errore. A me funziona

Read more
Posted on the from Massimo C.
Pasquale L.
Pasquale L.
User
Author

caso strano, nel riprovare per farti vedere l'errore e adesso funziona non so..

Comunque grazie 1000

Read more
Posted on the from Pasquale L.