9 Function DefaultDebugFunction($message)
11 global $bugs_project_debug;
13 if($bugs_project_debug)
15 Header("Content-Type: text/plain");
21 $bugs_report_destination = "";
22 $bugs_shared_include_file="bugs_shared.php";
23 $bugs_project_debug=0;
24 $bugs_debug=DefaultDebugFunction
;
25 $bugs_default_locale="en";
26 $bugs_current_locale="en";
27 $bugs_locale_text=array();
28 $bugs_password_file="";
30 $bugs_database_name="bugs";
31 $bugs_database_host="localhost";
32 $bugs_read_only_user="";
33 $bugs_report_access_failures="";
34 $bugs_database_user_name="";
35 $bugs_allow_bug_deletion=0;
36 $bugs_modify_graphic="";
37 $bugs_form_submit_method="POST";
39 if(file_exists("bugs_local_config.php"))
40 include("bugs_local_config.php");
42 if($bugs_report_destination=="")
43 $bugs_debug("It was not defined the bug report mail message destination address!\n");
45 if($bugs_shared_include_file=="")
46 $bugs_debug("It was not defined the shared code include file!\n");
48 if($bugs_default_locale==""
49 && $bugs_current_locale=="")
50 $bugs_debug("It was not defined the current locale!\n");
52 if(file_exists("bugs_app_config.php"))
53 include("bugs_app_config.php");
55 if(!IsSet($bugs_problem_types)
56 ||
GetType($bugs_problem_types)!="array")
57 $bugs_debug("It was not defined the array of problem types!\n");
59 if($bugs_password_file=="")
60 $bugs_debug("It was not defined the password file name!\n");
62 if($bugs_database_name=="")
63 $bugs_debug("It was not defined the bugs database name!\n");
65 if($bugs_database_host=="")
66 $bugs_debug("It was not defined the bugs database host address!\n");
68 if(!IsSet($bugs_versions)
69 ||
GetType($bugs_versions)!="array"
70 ||
count($bugs_versions)==0)
71 $bugs_debug("It was not defined the array of application versions listed in the bug submit form!\n");
73 if(!IsSet($bugs_submit_information)
74 ||
GetType($bugs_submit_information)!="array"
75 ||
count($bugs_submit_information)==0)
76 $bugs_debug("It was not defined the array of types of information to submit with bug reports!\n");