Branch: Tag:

2000-09-16

2000-09-16 20:23:49 by Per Hedbor <ph@opera.com>

Fixes for [Bug 275 (#275)]. This rather large patch makes it impossible (well, not really, but way harder) to reload modules in the configuration interface. It also hides most module settings of the configuration interface modules, since they are not, generally speaking, useful. All security and priority related settings are always hidden, and a new flag, VAR_NOT_CFIF can be added to configuration settings that should not be changed in the configuration interface

Rev: server/config_interface/standard/sites/config_left_item.pike:1.37
Rev: server/config_interface/standard/sites/drop_module.pike:1.8
Rev: server/config_interface/standard/sites/site_content.pike:1.86
Rev: server/etc/include/module.h:1.41
Rev: server/etc/modules/Variable.pmod/module.pmod:1.15
Rev: server/modules/configuration/config_filesystem.pike:1.54
Rev: server/modules/configuration/config_tags.pike:1.114
Rev: server/modules/directories/indexfiles.pike:1.16
Rev: server/modules/graphics/graphic_text.pike:1.241
Rev: server/modules/graphics/wiretap.pike:1.21
Rev: server/modules/misc/contenttypes.pike:1.22
Rev: server/modules/scripting/pikescript.pike:1.69
Rev: server/modules/tags/rxmlparse.pike:1.51

1: - // $Id: module.pmod,v 1.14 2000/09/12 21:27:50 per Exp $ + // $Id: module.pmod,v 1.15 2000/09/16 20:23:46 per Exp $      #include <module.h>   #include <roxen.h>
94:    int more_mode,    int expert_mode,    int devel_mode, -  int initial ) +  int initial, +  int|void variable_in_cfif )    //! Return 1 if this variable should be visible in the    //! configuration interface. The default implementation check the    //! 'flags' field, and the invisibility callback, if any. See    //! get_flags, set_flags and set_invisibibility_check_callback -  +  //! +  //! If variable_in_cfif is true, the variable is in a module +  //! that is added to the configuration interface itself.    {    int flags = get_flags();    function cb; -  if( initial && !(flags & VAR_INITIAL) ) return 0; -  if( (flags & VAR_EXPERT) && !expert_mode ) return 0; -  if( (flags & VAR_MORE) && !more_mode ) return 0; -  if( (flags & VAR_DEVELOPER) && !devel_mode ) return 0; +  if( initial && !(flags & VAR_INITIAL) ) return 0; +  if( (flags & VAR_EXPERT) && !expert_mode ) return 0; +  if( (flags & VAR_MORE) && !more_mode ) return 0; +  if( (flags & VAR_DEVELOPER) && !devel_mode ) return 0; +  if( (flags & VAR_NOT_CFIF) && variable_in_cfif ) return 0;    if( (cb = get_invisibility_check_callback() ) &&    cb( id, this_object() ) )    return 0;