Home « Server software «
Documentation: users/describe.php
users/describe.php - User information as meta data
This script uses RDF ans FOAF to describe a user profile.You will find below an example of script result:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<foaf:Person>
<foaf:name>Sam Ruby</foaf:name>
<foaf:firstName>Sam</foaf:firstName>
<foaf:surname>Ruby</foaf:surname>
<foaf:nick>rubys</foaf:nick>
<foaf:mbox_sha1sum>703471c6f39094d88665d24ce72c42fdc5f20585</foaf:mbox_sha1sum>
<foaf:homepage rdf:resource="http://www.intertwingly.net/"/>
<foaf:depiction rdf:resource="http://www.intertwingly.net/images/SamR_small.jpg"/>
<foaf:workplaceHomepage rdf:resource="http://www.ibm.com/"/>
<foaf:schoolHomepage rdf:resource="http://www.cnu.edu/"/>
</foaf:Person>
</rdf:RDF>
If following features are enabled, this script will use them:
- compression - Using gzip, if accepted by user agent
- cache - Cache is supported through ETag and by setting Content-Length; Also, Cache-Control enables caching for some time, even through HTTPS
Restrictions apply on this page:
- associates are allowed to move forward
- this is the page of the authenticated surfer
- access is restricted ('active' field == 'R'), but the surfer is an authenticated member
- public access is allowed ('active' field == 'Y')
- permission denied is the default
If a secret handle has been provided, and if the surfer has not been authenticated, he is automatically logged in as the target user.
Accept following invocations:
- describe.php/12
- describe.php?id=12
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com