#
# Plugins preferences
#
# written by Renaud Deraison <deraison@worldnet.fr>
#
# Revisions : 09/03/98 : first public release
#

The plugins preferences idea comes from Thomas B. Bigalke <bigalke@bigfoot.de>


  Some 'advanced' plugins will need their own preferences (ie : BruteForce
attack plugins will need the path to a wordlist).


This paper assumes that you are familiar with the NTP/1.0 and NTP/1.1 protocols.



The preferences of the plugins are sent by the server in the 
PREFERENCES message, among the preferences of the server, and have the 
following format :

Plugin Name[preference_type]:name <|> default value


Where :

o 'Plugin name' is the name of the plugin which needs the preferences
o 'preference_type' is the type of the widget used by the preference
o 'name' is the name of the preference
o 'default_value' is the default value of the preference.


+ preference_type :

preference_type is one of the following string :
"checkbox" : means that the plugin will have two values : 'yes'
             or no. The client should show this preference by
             a checkbox.
             
"entry"    : means that the preference will have an infinity of values,
	     since it will be shown by the client as a text entry.
             
"radio"    : means that the preference will have a restricted set of
	     values, shown by the client as a set of radio buttons.
             If selected, the 'default_value' string will have the
             following format : 'value1;value2;value3...;valueN', and
             the client will select the first value by default
             
 
+ default value :

Depends on the value of 'preference_type' :

       
         --------------------++----------------------
         preference_type     ||        default_value
         ====================||======================
         	             ||
          checkbox           ||       'yes' or 'no'
         ____________________||______________________
                             ||
           entry             ||         anything
         ____________________||______________________
                             ||
           radio             ||   value1;value2;....
         ____________________||______________________
         
        
        
comments : mailto:deraison@worldnet.fr
