# microsummary.rb # # Copyright (c) 2006 elytsllams # Distributed under the GPL # add_header_proc do generator_xml = @conf['generator.xml'] if generator_xml != nil and @mode == 'latest' and !@cgi.valid?( 'date' ) %Q|\t\n| end end def create_xml file_name xml = <<-XML ^#{@conf.base_url.gsub(/\./, '\\.')}$ XML begin File::open( file_name, 'w' ) do |f| f.print to_utf8( xml ) end rescue end end def microsummary_init @conf['generator.xml'] ||= "" create_xml( @conf['generator.xml'] ) unless File::exists? @conf['generator.xml'] end if @mode == 'saveconf' def saveconf_microsummary @conf['generator.xml'] = @cgi.params['generator.xml'][0] end end