*
* The function requires a writeable copy of the main App structure, and the nickname
* of a registered local account.
*
* The function requires a writeable copy of the main App structure, and the nickname
* of a registered local account.
* the theme is chosen before the _init() function of a theme is run, which will usually
* load a lot of theme-specific content
*
* the theme is chosen before the _init() function of a theme is run, which will usually
* load a lot of theme-specific content
*
if (empty($pdata) && empty($profiledata)) {
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
if (empty($pdata) && empty($profiledata)) {
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
*
* If the viewer is an authenticated remote viewer, the profile displayed is the
* one that has been configured for his/her viewing in the Contact manager.
*
* If the viewer is an authenticated remote viewer, the profile displayed is the
* one that has been configured for his/her viewing in the Contact manager.
*
* Used from within PCSS themes to set theme parameters. If there's a
* puid request variable, that is the "page owner" and normally their theme
*
* Used from within PCSS themes to set theme parameters. If there's a
* puid request variable, that is the "page owner" and normally their theme
* system pconfig, which means they don't want to see anybody else's theme
* settings except their own while on this site.
*
* system pconfig, which means they don't want to see anybody else's theme
* settings except their own while on this site.
*