PSM are totally contained into one directory that you must to copy into your htdocs directory.
this is the actual tree:
+---psm/ :directory of psm module
+---datastore/ :contains the content and file upload data
¦ +---contents/ :contains the content data
¦ +---files/ :contains the file uploaded (for example images)
- copy the psm directory into your htdocs directory
- configure the file psm/config.php with your preferred values
PSM is very simple to integrate in any php site. You can build a site from scrach,
using PSM or you can integrate PSM into an existing php site.
For do this you must import psm_lib.php in every page where you want to use PSM.
For displaying the admin bar you must call the admin_bar() function like this:
This code doesn't display anything for every user, and the admin bar if you are logged as administrator.
For displaying a content you must call the content(name) function with a name for the content
passed as parameter like this:
This code display the content for every user, and the editor bar if you are logged as administrator.
The index.php in the root directory of psm is an example: