From: fidian Date: Thu, 26 Apr 2001 17:35:01 +0000 (+0000) Subject: * Added the section about validate.php X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=57945c53724f25ce79d960beea3f76976c4da524 * Added the section about validate.php git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1312 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/doc/plugin.txt b/doc/plugin.txt index c3244660..f367a97b 100644 --- a/doc/plugin.txt +++ b/doc/plugin.txt @@ -173,10 +173,11 @@ three hooks you will need to use. 1. options_link_and_description This creates the link and has a description that are shown on the options - page. This should output HTML that looks like this: + page. This should output HTML that looks like this. Make sure to read + the section on outputting your own pages. -----cut here----- - function my_function() { + function my_plugin_name_my_function() { global $color ?> @@ -236,3 +237,37 @@ To set up links for actions, you assign them like this: $Args[1]['your_plugin_name']['href'] = 'URL to link to'; $Args[1]['your_plugin_name']['text'] = 'What to display'; + +Outputting Your Own Pages +------------------------- + +Often, when you want to provide your own customized options screen or create +another web page instead of just using standard hooks, you will be creating +your own .php files. An example of this is the attachment_common plugin's +image.php file. + +To make sure that security is maintained and standards are followed, the top +of your PHP script should look very similar to this: + +