Logo Search packages:      
Sourcecode: rapple version File versions  Download package

static void check_config (  )  [static]

Prints configuration information.

Definition at line 155 of file rapple.c.

References rpl_str_list_node::node, rpl_cfg_get_config_filename(), rpl_cfg_get_db_host(), rpl_cfg_get_db_name(), rpl_cfg_get_db_port(), rpl_cfg_get_dg_dir_names(), rpl_cfg_get_linkchecker_html_report(), rpl_cfg_get_linkchecker_xml_report(), rpl_cfg_get_linkchecker_xslt(), rpl_cfg_get_logfile(), rpl_cfg_get_loglevel(), rpl_cfg_get_trf_tidy_config(), rpl_cfg_get_trf_tpl_xslt(), rpl_cfg_parse(), rpl_list_count(), rpl_list_first(), rpl_list_next(), rpl_log_get_level_desc(), and rpl_str_list_node::str.

{
      rpl_list            *dg_names = NULL;
      rpl_str_list_node   *dg_node;

    /* configure rapple (if config is NULL then default file is searched for) */
    rpl_cfg_parse(config);

    printf("\nexamining your configuration.\n\n");
    printf("configuration file is well-formed!\n");
      printf("source dir..................%s\n", srcdir);
      printf("web dir.....................%s\n", webdir);
    printf("config file.................%s\n", rpl_cfg_get_config_filename());
    printf("logfile.....................%s\n", rpl_cfg_get_logfile());
    loglevel = rpl_cfg_get_loglevel();
    printf("loglevel....................%d (%s)\n", loglevel, rpl_log_get_level_desc(loglevel));
    printf("datastore...................%s\n", dsdir);
    printf("tidy conf...................%s\n", (rpl_cfg_get_trf_tidy_config()) ? rpl_cfg_get_trf_tidy_config()
           : "None defined! Using system defaults.");
    printf("domain......................%s\n", host);
    printf("xslt........................%s\n", rpl_cfg_get_trf_tpl_xslt());
      if(rpl_cfg_get_linkchecker_xml_report() != NULL)
      {
            printf("link checker XSLT...........%s\n", rpl_cfg_get_linkchecker_xslt());
            printf("link checker report (XML)...%s\n", rpl_cfg_get_linkchecker_xml_report());
            printf("link checker report (HTML)..%s\n", rpl_cfg_get_linkchecker_html_report());
      }
#if SUPPORT_XSLT_PROC == 2
    printf("catalog.....................%s\n", catalog_loc);
#endif
      dg_names = rpl_cfg_get_dg_dir_names();
      if(rpl_list_count(dg_names) > 0)
      {
            printf("the following directories will be indexed:\n");
            dg_node = rpl_list_first(dg_names);
            while(dg_node != NULL)
            {
                  if(dg_node->str)
                        printf("............................%s\n", dg_node->str);
                  dg_node = rpl_list_next(&dg_node->node);
            }
      }
#ifdef HAVE_MYSQL
      printf("MySQL support...............enabled (ask administrator for credentials)\n");
    printf("name........................%s\n", rpl_cfg_get_db_name());
    printf("host........................%s\n", rpl_cfg_get_db_host());
    printf("port........................%d\n", rpl_cfg_get_db_port());
#else
      printf("MySQL support...............disabled\n");
#endif
    printf("\ndone! please check that the above values are what you expect.\n\n");
    exit(0);
}


Generated by  Doxygen 1.6.0   Back to index