Recently a friend bought XenForo, and he is very skillful! I really like the software
I only have one question, however, I want forum users to be able to log into my [PHP] site? With the credentials of the forum as well.? ? Because it would be strange if you asked users to create 2 accounts. Since a forum account is needed, I thought it is easier to just use this account for other things also is not website. ? I want (Allow access only to logged in users [PHP] This is my current code (example) Form Login
Code:
<div class = "member-login">
<form class = "login" action = "login / login" method = "post"> // "login/login" é o action do (forum/xenforo)
<div class = "formtitle"> Acesso para membros </ div>
<div class = "input">
<input type = "text" placeholder = "User Name" name = "login" value = "" id = "ctrl_pageLogin_login" é necessário />
<span> <img src = "images / select.png" /> </ span>
</ div>
<div class = "input">
<input type = "senha" placeholder = "Senha" nome = "senha" id = "ctrl_pageLogin_password" requerido />
<span> <img src = "images / close.png" /> </ span>
</ div>
<div class = "formtitle" class = "ctrlUnit submitUnit">
<input type = "submit" class = "bluebutton" value = "Log in" data-loginPhrase = "Log-in" data-signupPhrase = "Inscrever-se" tabindex = "4" />
<label class = "rememberPassword"> <input type = "checkbox" name = "remember" value = "1" id = "ctrl_pageLogin_remember" tabindex = "3" /> Mantenha-se conectado </ label>
</ div>
<input type = "hidden" name = "cookie_check" value = "1" />
<input type = "hidden" name = "_ xfToken" value = "" />
<input type = "hidden" name = "redirect" value = "https: //meusite/painel.php" />
</ form>
Okay, once the login is done it will be redirected to the "pane.php" for all those who have access to "pane.php" by typing a url in the browser bar I want to prevent this, I am more access to log in to effected. I'm breaking my heart to try to solve this problem, can you help me? this page authentication?
GRATEFUL!