-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
url_parts
Description
Returns the path and domain to set the cookie on.
Syntax
array url_parts (bool $local, bool $global)
Parameter $local
Expected type: Boolean
Description: Whether or not the "enable local storage of cookies" setting is enabled
Parameter $global
Expected type: Boolean
Description: Whether or not the "global cookies" setting is enabled
Return value
Expected type: Array
Description:
Array Elements Key Optional Expected type Description host no String The domain path no String The path (from the domain root to the forum directory; includes trailing "/")
Notes
- Depends on the localCookies and globalCookies settings.
- Uses boardurl to determine these two things (url and path).
- Returns an array with domain and path in it, in that order.
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.036 seconds with 13 queries.
- Forum Search