home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / options5.tmpl < prev    next >
Text File  |  2009-11-06  |  16KB  |  313 lines

  1. # FILE: options5.tmpl
  2. # DESCRIPTION: Options Manager Screen - For advanced mode, menu=4
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5.  
  6. <!--BEGIN-->
  7.     <#if pro#>
  8.         <div class="surround">
  9.             {#if $browser->{ieX}#}<p class="blbar">Access Control</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Access Control</font></font></td></tr></table>{#endif#}
  10.             <p>
  11.             Control who is permitted to view the topics display on your board.
  12.             </p>
  13.             <ul>
  14.             <input type=radio name=secure_topics_file value=1{#if $GLOBAL_OPTIONS{secure_topics_file} == 1#} checked{#endif#}>
  15.             Restricted access (registered users/moderators only)<br>
  16.             <input type=radio name=secure_topics_file value=0{#if $GLOBAL_OPTIONS{secure_topics_file} == 0#} checked{#endif#}>
  17.             Public access (display topics immediately)<br>
  18.             <input type=radio name=secure_topics_file value=2{#if $GLOBAL_OPTIONS{secure_topics_file} == 2#} checked{#endif#}>
  19.             Display login screen with guest access option
  20.             </ul>
  21.             <input type=hidden name="a" value="secure_topics_file">
  22.             <p>
  23.             Control which topics are displayed to a user on the topics display.
  24.             </p>
  25.             <ul>
  26.             <input type=radio name=topics_to_show value=0{#if $GLOBAL_OPTIONS{topics_to_show} == 0#} checked{#endif#}>
  27.             All topics on board<br>
  28.             <input type=radio name=topics_to_show value=1{#if $GLOBAL_OPTIONS{topics_to_show} == 1#} checked{#endif#}>
  29.             Only those topics that a user is authorized to view<br>
  30.             </ul>
  31.             <input type=hidden name="a" value="topics_to_show">
  32.             <p>
  33.             When you have selected to show only those topics that a user is authorized to view,
  34.             you can also hide categories automatically.  Check this box if you want to use this
  35.             option, and specify access settings for categories using the Access Manager.
  36.             </p>
  37.             <ul>
  38.                 <input type=checkbox name=cats_to_show value=1{#if $GLOBAL_OPTIONS{cats_to_show} == 1#} checked{#endif#}>
  39.                 Hide/show categories based on Access Manager settings
  40.             </ul>
  41.             <input type=hidden name="a" value="cats_to_show">
  42.             <p>
  43.             Display the following message if a user is prompted to log in:
  44.             </p>
  45.             <ul>
  46.                 <textarea name="login_message" rows=5 cols=50 wrap=virtual>\
  47.                 <#form escape "$special->{login_message}"#></textarea>
  48.                 <input type=hidden name="d" value="login_message">
  49.                 <p>
  50.                 <input type=checkbox name="login_message_hide_default" value=1{#if $GLOBAL_OPTIONS{login_message_hide_default} == 1#} checked{#endif#}>\
  51.                     Hide default "<#maxchar 50/... "$L{UILOGIN_LOGIN}"#>" message
  52.                 </p>
  53.                 <input type=hidden name="a" value="login_message_hide_default">
  54.             </ul>
  55.         </div>
  56.         <br><br>
  57.     <#endif#>
  58.  
  59.     <div class="surround">
  60.         <#if $browser->{ieX}#>
  61.             <p class="blbar">{#if pro#}Attachment/{#endif#}Image Uploading</p>
  62.         <#else#>
  63.             <table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>{#if pro#}Attachment/{#endif#}Image Uploading</font></font></td></tr></table>
  64.         <#endif#>
  65.         <p>
  66.         <input type=checkbox name=images value=1{#if $GLOBAL_OPTIONS{images} == 1#} checked{#endif#}>
  67.             {#if pro#}Attachment/{#endif#}Image Uploading Enabled<br>
  68.         <input type=hidden name="a" value="images">
  69.         </p>
  70.         <ul>
  71.             <p>
  72.             A value of "0" or leaving a box blank indicates that there is no restriction.
  73.             A setting of "-1" disables all uploads for the indicated class of poster.
  74.             <#if pro#>If you limit both the size and dimension, the uploaded image will be rejected if it exceeds <i>either</i> the maximum file size or your dimensions.
  75.             </p>
  76.  
  77.             <table bgcolor="#000000" cellpadding=4 cellspacing=1>
  78.             <tr bgcolor="#ffffff">
  79.             <td class="normal" colspan=2>Limit file sizes (in kb):</td>
  80.             <#if pro#><td class="normal">and/or limit dimensions:</td>
  81.             </tr>
  82.             
  83.             <tr bgcolor="#ffffff">
  84.             <td class="normal">Public Posters:</td>
  85.             <td><input type=text name="public_maxsize" value="$GLOBAL_OPTIONS{public_maxsize}" size=3></td>
  86.             <#if pro#><td class="normal" align=center><input type=text value="$GLOBAL_OPTIONS{public_image_maxwidth}" size=4 name="public_image_maxwidth"> x <input type=text value="$GLOBAL_OPTIONS{public_image_maxheight}" size=4 name="public_image_maxheight"></td>
  87.             </tr>
  88.             
  89.             <tr bgcolor="#ffffff">
  90.             <td class="normal">Registered Users:</td>
  91.             <td><input type=text name="registered_maxsize" value="$GLOBAL_OPTIONS{registered_maxsize}" size=3></td>
  92.             <#if pro#><td class="normal" align=center><input type=text value="$GLOBAL_OPTIONS{registered_image_maxwidth}" size=4 name="registered_image_maxwidth"> x <input type=text value="$GLOBAL_OPTIONS{registered_image_maxheight}" size=4 name="registered_image_maxheight"></td>
  93.             </tr>
  94.  
  95.             <tr bgcolor="#ffffff">
  96.             <td class="normal">Board Moderators:</td>
  97.             <td><input type=text name="registered_mod_maxsize" value="$GLOBAL_OPTIONS{registered_mod_maxsize}" size=3></td>
  98.             <#if pro#><td class="normal" align=center><input type=text value="$GLOBAL_OPTIONS{moderator_image_maxwidth}" size=4 name="moderator_image_maxwidth"> x <input type=text value="$GLOBAL_OPTIONS{moderator_image_maxheight}" size=4 name="moderator_image_maxheight"></td>
  99.             </tr>
  100.             
  101.             </table>
  102.             <input type=hidden name="b" value="registered_mod_maxsize,registered_maxsize,public_maxsize">
  103.             <#if pro#><input type=hidden name="b" value="public_image_maxwidth,registered_image_maxwidth,moderator_image_maxwidth,public_image_maxheight,registered_image_maxheight,moderator_image_maxheight">
  104.         </ul>
  105.         <p>
  106.         <input type=checkbox name=images_admin_unlimited value=1{#if $GLOBAL_OPTIONS{images_admin_unlimited} == 1 || $GLOBAL_OPTIONS{images_admin_unlimited} eq ""#} checked{#endif#}> Board Administrator upload size is unlimited<br>
  107.         <input type=hidden name="a" value="images_admin_unlimited">
  108.         <input type=checkbox name=images_require_ip_match value=1{#if $GLOBAL_OPTIONS{images_require_ip_match} == 1#} checked{#endif#}> Require IP match to message post IP for uploaded images<br>
  109.         <input type=checkbox name=unrecognized_attachments value=1{#if $GLOBAL_OPTIONS{unrecognized_attachments} == 1#} checked{#endif#}> Use file's extension for unrecognized MIME types if extension is valid<br>
  110.         </p>
  111.         <input type=hidden name="a" value="unrecognized_attachments,images_require_ip_match">
  112.     </div>
  113.     <br><br>
  114.     <#if pro#>
  115.         <div class="surround">
  116.             {#if $browser->{ieX}#}<p class="blbar">IP Banning</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>IP Banning</font></font></td></tr></table>{#endif#}
  117.             <p>
  118.             <input type=checkbox name="no_banned_user_ban" value="1"{#if $GLOBAL_OPTIONS->{no_banned_user_ban} == 1#} checked{#endif#}> Do <u>not</u> ban IP addresses for "banned" users in User Manager
  119.             <input type=hidden name="a" value="no_banned_user_ban">
  120.             </p>            
  121.             <p>
  122.             Here are the IP addresses that are currently banned.  To stop banning a particular
  123.             address, un-check the box next to that address.
  124.             </p>
  125.             <ul>
  126.                 <#if $#ipban == 0#>
  127.                     (No Addresses Currently Banned)
  128.                 <#else#>
  129.                     <#foreach $ip (@ipban)#>
  130.                         <input type=checkbox name="ip_ban" value="$ip->{id}" checked><b>$ip->{pattern}</b><br>
  131.                         <#if $ip->{comment} ne "" || $ip->{stamp} != 0#>
  132.                             <span class="comment">
  133.                             <#if $ip->{stamp} != 0#>
  134.                                 <#date $ip->{stamp} format "$L{SHORTDATE}"#>
  135.                             <#endif#>
  136.                             <#if $ip->{comment} ne ""#>($ip->{comment})<#endif#>
  137.                             </span>
  138.                             <br>
  139.                         <#endif#>
  140.                     <#endloop#>
  141.                 <#endif#>
  142.             </ul>
  143.             <p>
  144.             To ban a new address, enter the address and an optional comment below:
  145.             </p>
  146.             <ul>
  147.                 <table>
  148.                 <tr>
  149.                 <td class="normal">IP address:</td>
  150.                 <td><input type=text name="new_ip" value="" size=30></td>
  151.                 </tr>
  152.                 <tr>
  153.                 <td class="normal">Optional Comment:</td>
  154.                 <td><input type=text name="new_ip_comment" value="" size=30></td>
  155.                 </tr>
  156.                 </table>
  157.             </ul>
  158.             <input type=hidden name="e" value="ip_ban">
  159.         </div>
  160.         <br><br>
  161.         <div class="surround">
  162.             {#if $browser->{ieX}#}<p class="blbar">IP Limiting</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>IP Limiting</font></font></td></tr></table>{#endif#}
  163.             <p>
  164.             This setting prevents someone from the same IP address from accessing your
  165.             Discus scripts simultaneously.  A setting here reduces the possibility that
  166.             a denial-of-service attack from the same IP address directed at your Discus
  167.             scripts will be successful.            
  168.             </p>
  169.             <p>
  170.             <input type=checkbox name=limit_simultaneous_access_on value=1{#if $GLOBAL_OPTIONS{limit_simultaneous_access_on} == 1#} checked{#endif#}> Limit IP address to
  171.             <input type=text name=limit_simultaneous_access value="$GLOBAL_OPTIONS->{limit_simultaneous_access}" size=3> simultaneous accesses
  172.             </p>
  173.             <input type=hidden name="a" value="limit_simultaneous_access_on,limit_simultaneous_access">
  174.         </div>
  175.         <br><br>
  176.     <#endif#>
  177.     <div class="surround">
  178.         {#if $browser->{ieX}#}<p class="blbar">Message Size Limitations</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Message Size Limitations</font></font></td></tr></table>{#endif#}
  179.         <p>
  180.         For message size limits, a value of "0" indicates that there is no restriction.
  181.         A setting of -1 disables all posting for the indicated class of visitor.
  182.         </p>
  183.         <ul>
  184.             <p>
  185.             Limit message sizes (in kb) -- note that 1 kb is 1000 characters, or about
  186.             150-200 average sized words:
  187.             </p>
  188.             <table>
  189.             <tr>
  190.             <td class="normal">Public Posters:</td>
  191.             <td><input type=text name="public_msgsize" value="$GLOBAL_OPTIONS{public_msgsize}" size=3></td>
  192.             </tr>
  193.             <tr>
  194.             <td class="normal">Registered Users:</td>
  195.             <td><input type=text name="registered_msgsize" value="$GLOBAL_OPTIONS{registered_msgsize}" size=3></td>
  196.             </tr>
  197.             <tr>
  198.             <td class="normal">Board Moderators:</td>
  199.             <td><input type=text name="registered_mod_msgsize" value="$GLOBAL_OPTIONS{registered_mod_msgsize}" size=3></td>
  200.             </tr>
  201.             </table>
  202.         </ul>
  203.         <input type=hidden name="a" value="public_msgsize,registered_msgsize,registered_mod_msgsize">
  204.         <p>
  205.         You can also prevent excessively short posts by requiring a minimum number of words.
  206.         A value of "0" indicates that there is no restriction.
  207.         </p>
  208.         <ul>
  209.             <p>
  210.             Minimum number of words:
  211.             </p>
  212.             <table>
  213.             <tr>
  214.             <td class="normal">Public Posters:</td>
  215.             <td><input type=text name="public_min_msgsize" value="$GLOBAL_OPTIONS{public_min_msgsize}" size=3></td>
  216.             </tr>
  217.             <tr>
  218.             <td class="normal">Registered Users:</td>
  219.             <td><input type=text name="registered_min_msgsize" value="$GLOBAL_OPTIONS{registered_min_msgsize}" size=3></td>
  220.             </tr>
  221.             <tr>
  222.             <td class="normal">Board Moderators:</td>
  223.             <td><input type=text name="registered_mod_min_msgsize" value="$GLOBAL_OPTIONS{registered_mod_min_msgsize}" size=3></td>
  224.             </tr>
  225.             </table>
  226.         </ul>    
  227.         <input type=hidden name="a" value="public_min_msgsize,registered_min_msgsize,registered_mod_min_msgsize">
  228.     </div>
  229.     <br><br>
  230.     <#if pro#>
  231.     <div class="surround">
  232.         {#if $browser->{ieX}#}<p class="blbar">Moderator Logins</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Moderator Logins</font></font></td></tr></table>{#endif#}
  233.         <input type=checkbox name=mod_fails value=1{#if $GLOBAL_OPTIONS{mod_fails} == 1#} checked{#endif#}> Too many failed logins for a moderator bans an IP address:<br>
  234.         <input type=hidden name="a" value="mod_fails">
  235.         <ul>
  236.         <p>
  237.         Ban after <input type=text name=mod_fails_allowed value="{#if $GLOBAL_OPTIONS{mod_fails_allowed} eq ""#}3{#else#}$GLOBAL_OPTIONS{mod_fails_allowed}{#endif#}" size=3> consecutive failures
  238.         <br>
  239.         <input type=checkbox name=mod_fails_allowed_admin value=1{#if $GLOBAL_OPTIONS{mod_fails_allowed_admin}#} checked{#endif#}> Do not do this for the board administrator
  240.         </p>
  241.         </ul>
  242.         <p>
  243.         <input type=hidden name="b" value="mod_fails_allowed">
  244.         <input type=checkbox name=mod_fails_mail value=1{#if $GLOBAL_OPTIONS{mod_fails_mail} == 1#} checked{#endif#}> Too many failed logins for a moderator e-mails the moderator:<br>
  245.         <input type=hidden name="a" value="mod_fails_mail,mod_fails_mail_allowed">
  246.         <ul>
  247.         <p>
  248.         Send message after <input type=text name=mod_fails_mail_allowed value="{#if $GLOBAL_OPTIONS{mod_fails_mail_allowed} eq ""#}3{#else#}$GLOBAL_OPTIONS{mod_fails_mail_allowed}{#endif#}" size=3> consecutive failures
  249.         <br>
  250.         <input type=checkbox name=mod_fails_mail_admin value=1{#if $GLOBAL_OPTIONS{mod_fails_mail_admin}#} checked{#endif#}> E-mail board administrator too
  251.         </p>
  252.         </ul>
  253.         <#if $GLOBAL_OPTIONS{u_last_access_info} == 0#>
  254.             <p>
  255.             <input type=checkbox name=mod_session_expire value=1{#if $GLOBAL_OPTIONS{mod_session_expire} == 1#} checked{#endif#}> Expire administration login after inactivity period:<br>
  256.             <input type=hidden name="a" value="mod_session_expire">
  257.             <input type=hidden name="a" value="mod_session_expire_inactivity">
  258.             </p>
  259.             <ul>
  260.                 <p>
  261.                 Inactivity time: <input type=text name=mod_session_expire_inactivity value="{#if $GLOBAL_OPTIONS{mod_session_expire_inactivity} eq ""#}15{#else#}$GLOBAL_OPTIONS{mod_session_expire_inactivity}{#endif#}" size=3> minutes
  262.                 </p>
  263.                 <input type=hidden name="a" value="mod_fails_mail_admin">
  264.             </ul>
  265.         <#else#>
  266.             <input type=hidden name="mod_session_expire" value="0"><input type=hidden name="a" value="mod_session_expire">
  267.         <#endif#>        
  268.     </div>
  269.     <br><br>
  270.     <#endif#>
  271.     <div class="surround">
  272.         {#if $browser->{ieX}#}<p class="blbar">Poster Names & Identification</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Poster Names & Identification</font></font></td></tr></table>{#endif#}
  273.         <#if pro#>
  274.          Public posters may use:
  275.         <ul>
  276.         <input type=radio name="ppmu" value="0"{#if $GLOBAL_OPTIONS{ppmu} == 0#} checked{#endif#}> Anything at all as the username<br>
  277.         <input type=radio name="ppmu" value="1"{#if $GLOBAL_OPTIONS{ppmu} == 1#} checked{#endif#}> Anything except the exact username of a registered member<br>
  278.         <input type=radio name="ppmu" value="2"{#if $GLOBAL_OPTIONS{ppmu} == 2#} checked{#endif#}> Anything except the exact full name of a registered member<br>
  279.         <input type=radio name="ppmu" value="3"{#if $GLOBAL_OPTIONS{ppmu} == 3#} checked{#endif#}> Anything except the exact username or full name of a registered member<br>
  280.         <input type=radio name="ppmu" value="4"{#if $GLOBAL_OPTIONS{ppmu} == 4#} checked{#endif#}> Anything that does not resemble the username or full name of a registered member
  281.             <ul>
  282.             <p>
  283.             The last option scores an entered name according to its similarity to the
  284.             registered username and full name.  Enter here the threshold for disallowing
  285.             use of a name (see administration instructions for further details of the scoring
  286.             mechanisms).
  287.             </p>
  288.             <p>
  289.             Threshold: <input type=text size=4 name="ppmu_thres" value="<#form escape "$GLOBAL_OPTIONS{ppmu_thres}"#>">
  290.             </p>
  291.             <p>
  292.             <input type=checkbox name="ppmu_nocheck_single_fullnames" value="1"{#if $GLOBAL_OPTIONS{ppmu_nocheck_single_fullnames} == 1#} checked{#endif#}> Do not check against single-word full names<br>
  293.             <input type=checkbox name="ppmu_treat_nonenglish" value="1"{#if $GLOBAL_OPTIONS{ppmu_treat_nonenglish} == 1#} checked{#endif#}> Treat non-English characters as the English letter they resemble<br>
  294.             </p>
  295.             </ul>
  296.         </ul>
  297.         <input type=hidden name="a" value="ppmu,ppmu_thres,ppmu_nocheck_single_fullnames,ppmu_treat_nonenglish">
  298.          Additional options
  299.         <#else#>
  300.          Options
  301.         <#endif#>
  302.         for public posters:
  303.         <p>
  304.         <ul>
  305.         <input type=checkbox value=1 name="public_addparen"\
  306.             {#if $GLOBAL_OPTIONS{public_addparen} == 1#} checked{#endif#}>{||}\
  307.             Add text "(<#if $L{UNREGISTERED_NOTICE} eq ""#>Unregistered Guest<#else#>$L{UNREGISTERED_NOTICE}<#endif#>)" to names on posts by unregistered guests<br>
  308.         <input type=hidden name="a" value="public_addparen">
  309.         </ul>
  310.         </p>    
  311.     </div>
  312. <!--END-->
  313.