Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
how can you access this variable
y2kbg
New
how can you access this variable:
$Context->Session->User->Name
from a seperate .php file in the same directory as vanilla when someone is logged in?
0
This discussion has been closed.
Comments
include("/path/to/appg/settings.php"); include("/path/to/appg/init_ajax.php"); echo $Context->Session->User->Name;
require_once("/path/to/appg/settings.php"); require_once("/path/to/appg/init_ajax.php"); echo $Context->Session->User->Name;
?
I don't see why it should'nt work as local but give a try at a global include.
Then in your function
global $Context; $ip = $Context->Session->User->Name;
Not sure though, just a clue.