def configFileProxy(section, option, boolean=False, integer=False):
 global config
 if config.has_option(section, option):
  try:
   if boolean:
    value = (config.getboolean(section, option) if config.get(section, option) else False)
   elif integer:
    value = (config.getint(section, option) if config.get(section, option) else 0)
   else:
    value = config.get(section, option)
  except ValueError as ex:
   errMsg = 'error occurred while processing the option '
   errMsg += ("'%s' in provided configuration file ('%s')" % (option, getUnicode(ex)))
   raise SqlmapSyntaxException(errMsg)
  if value:
   conf[option] = value
  else:
   conf[option] = None
 else:
  debugMsg = ("missing requested option '%s' (section " % option)
  debugMsg += ("'%s') into the configuration file, " % section)
  debugMsg += 'ignoring. Skipping to next.'
  logger.debug(debugMsg)

def configFileProxy ( section , option , boolean = False , integer = False ) : global config if config . has_option ( section , option ) : try : if boolean : value = ( config . getboolean ( section , option ) if config . get ( section , option ) else False ) elif integer : value = ( config . getint ( section , option ) if config . get ( section , option ) else 0 ) else : value = config . get ( section , option ) except ValueError as ex : errMsg = 'error occurred while processing the option ' errMsg += ( "'%s' in provided configuration file ('%s')" % ( option , getUnicode ( ex ) ) ) raise SqlmapSyntaxException ( errMsg ) if value : conf [ option ] = value else : conf [ option ] = None else : debugMsg = ( "missing requested option '%s' (section " % option ) debugMsg += ( "'%s') into the configuration file, " % section ) debugMsg += 'ignoring. Skipping to next.' logger . debug ( debugMsg )
parse configuration file and save settings into the configuration advanced dictionary .