> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ include_once('head.php'); include_once('db.php'); include_once('rpc.php'); $user=explode('@',$path[2]); $userobj=rpc_get($user[1], 'user/'.$user[0]); if(isset($userobj['error'])) { print('
'.$userobj['error'].'
'); include_once('foot.php'); exit(); } $displayname=htmlentities($userobj['displayname']); $username=htmlentities(implode('@',$user)); include_once('parsedown/Parsedown.php'); $md=new Parsedown(); $profile=$md->text($userobj['profile']); $things=''; if($user[1]==DOMAIN && $user[0]==$_SESSION['name']) { $profile.=''._('Edit').''; $things='
+
'; } if(isset($userobj['banned']) && $userobj['banned']) { $unban=''; if($user[1]==DOMAIN && $privileges&PRIV_MODERATE) { include_once('nonce.php'); $unban='
'.nonce().'
'; } $profile=_('This user has been banned.').$unban.'
'.$profile; } // Iterate through 'things' foreach($userobj['things'] as $thing) { $things.='
'.htmlentities($thing['name']).'
'; } // TODO: Profile picture? ?>