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.
PHP help request
i do have a command that is running from a PHP file, say
echo "this is a test";
but i would like this to be displayed only if user is logged trough an IF statement...
something like
if user is logged in vanilla
{echo "this is a test"; }
any help on how I could perform such thing ?
thanks in advance
0
This discussion has been closed.
Comments
if($Context->Session->UserID > 0) { ... }
If ($Context->Session->UserID > 0) { echo 'this is a test'; }
Edit: Doh!