skogen
03-08-2005, 05:45 AM
I've found that it's possible to check if a user logged in with this code
if ($bbuserinfo[userid])
{
// CODE TO EXECUTE IF USER IS LOGGED IN
}
On my (currently Snitz) board we have a function that allow users to download files (not from the forum but from the site)
I need help how to change this pice of ASP code into PHP so I can put it on the above posted code.
<%
strFile2Show = Request.QueryString("asset")
Response.Redirect "../DOWNLOADS/" & strFile2Show
%>
Thanks
/Fredrik
if ($bbuserinfo[userid])
{
// CODE TO EXECUTE IF USER IS LOGGED IN
}
On my (currently Snitz) board we have a function that allow users to download files (not from the forum but from the site)
I need help how to change this pice of ASP code into PHP so I can put it on the above posted code.
<%
strFile2Show = Request.QueryString("asset")
Response.Redirect "../DOWNLOADS/" & strFile2Show
%>
Thanks
/Fredrik