1 | ###############################################################################
|
---|
2 | ## Fancy Speed Test - Easily measure your upload and download speeds
|
---|
3 | ## Home Page: http://www.brandonchecketts.com/speedtest/
|
---|
4 | ## Author: Brandon Checketts
|
---|
5 | ## File: speedtest.cfg
|
---|
6 | ## Version: 1.1
|
---|
7 | ## Date: 2006-02-06
|
---|
8 | ## Purpose: configuration file
|
---|
9 | ##
|
---|
10 | ## SECURITY WARNING: Your .htaccess file should deny access to this file.
|
---|
11 | ## Otherwise visitors will be able to read your database username and password
|
---|
12 | ## by just retrieving this file
|
---|
13 | ## You should include the following in your .htaccess file
|
---|
14 | ## <Files *.cfg>
|
---|
15 | ## Deny From All
|
---|
16 | ## </files>
|
---|
17 | ##
|
---|
18 | ###############################################################################
|
---|
19 |
|
---|
20 |
|
---|
21 | ###############################################################################
|
---|
22 | ## GENERAL SETTINGS
|
---|
23 | ###############################################################################
|
---|
24 | [general]
|
---|
25 |
|
---|
26 | ## The web-accessible directory where the program is installed
|
---|
27 | base_url = http://www.brandonchecketts.com/speedtest/
|
---|
28 |
|
---|
29 | ## The full path to the upload.cgi Note: This may not be under
|
---|
30 | ## the base_url because it needs to be somewhere that perl
|
---|
31 | ## scripts can run (ie: cgi-bin)
|
---|
32 | upload_url = http://www.brandonchecketts.com/speedtest/upload.cgi
|
---|
33 |
|
---|
34 | ## Set the directory where images are saved (end with the closing /)
|
---|
35 | image_path = /speedtest/
|
---|
36 |
|
---|
37 | ## Log file to write events to. Make sure your web server can write to
|
---|
38 | ## this file. Leave blank for no logging
|
---|
39 | logfile =
|
---|
40 |
|
---|
41 | ## Set debug to 1 to write detailed notes to the log file
|
---|
42 | debug =
|
---|
43 |
|
---|
44 | ## when auto_size is enabled, it will do a quick test (of file sizes
|
---|
45 | ## specified by initial_kbytes). The initial test will help it to decide an
|
---|
46 | ## appropriate file size to download for the real test.
|
---|
47 | auto_size = 1
|
---|
48 |
|
---|
49 | ## pretty_version enables some javascript to make the graph progress
|
---|
50 | ## as it's being downloaded. Its possible that on slow machines
|
---|
51 | ## this may skew the results, so you can set this to 0 to disable
|
---|
52 | pretty_version = 1
|
---|
53 |
|
---|
54 | ## Page Title displayed on your pages
|
---|
55 | page_title =
|
---|
56 |
|
---|
57 | ## auto_start will go directly from the index page to the download
|
---|
58 | ## meter. Set to 0 if you want to display a welcome message of
|
---|
59 | ## some sort. Write your content to welcome.html
|
---|
60 | auto_start = 0
|
---|
61 |
|
---|
62 | ## A Regular expression applied to the visitors IP address to
|
---|
63 | ## specifically allow certian hosts
|
---|
64 | allow =
|
---|
65 |
|
---|
66 | ## A Regular expression applied to the visitors IP address to
|
---|
67 | ## deny certian hosts from using the speed test. The contents of
|
---|
68 | ## "unallowed.html" will be displayed if the visitor is not allowed
|
---|
69 | ## to use the test
|
---|
70 | disallow =
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|
74 | ###############################################################################
|
---|
75 | ## UPLOAD SETTINGS
|
---|
76 | ###############################################################################
|
---|
77 | [upload]
|
---|
78 | ## Maximum number of bytes for upload test
|
---|
79 | max_kbytes = 5000
|
---|
80 | ## Disable the upload test (for example if you cant run a CGI
|
---|
81 | skip_upload = 0
|
---|
82 | ## Number of bytes to upload if not using auto_size
|
---|
83 | default_kbytes = 2000
|
---|
84 | ## Initial number of kbytes to upload if using auto_size
|
---|
85 | initial_kbytes = 10
|
---|
86 |
|
---|
87 | ###############################################################################
|
---|
88 | ## DOWNLOAD SETTINGS
|
---|
89 | ###############################################################################
|
---|
90 | [download]
|
---|
91 | ## Maximum number of kbytes for download test
|
---|
92 | max_kbytes = 4000
|
---|
93 | ## Number of kbytes to download if not using auto_size
|
---|
94 | default_kbytes = 4000
|
---|
95 | ## Initial number of kbytes to download if using auto_size
|
---|
96 | initial_kbytes = 50
|
---|
97 |
|
---|
98 |
|
---|
99 | ###############################################################################
|
---|
100 | ## DATABASE SETTINGS
|
---|
101 | ###############################################################################
|
---|
102 | [database]
|
---|
103 | ## Set to 1 to enable saving settings to a database
|
---|
104 | enable = 0
|
---|
105 | ## Database Host name (usually localhost)
|
---|
106 | host = localhost
|
---|
107 | ## Database name
|
---|
108 | database = dbname
|
---|
109 | ## Database user name
|
---|
110 | user = dbuser
|
---|
111 | ## Database password
|
---|
112 | password = dbpasswd
|
---|
113 | ## Database table
|
---|
114 | table = speedtest
|
---|
115 | ## Regular expression to match to save results to the database
|
---|
116 | ip_matches =
|
---|
117 |
|
---|
118 | ###############################################################################
|
---|
119 | ## SPEED COMPARISONS SECTION
|
---|
120 | ## Rates that you want displayed on the comparison's page
|
---|
121 | ## (all values in kbps)
|
---|
122 | ###############################################################################
|
---|
123 | [comparisons-download]
|
---|
124 | Typical Dialup = 28
|
---|
125 | Best-case Dialup = 56
|
---|
126 | Standard DSL = 256
|
---|
127 | T1 = 1581
|
---|
128 | Cable = 3072
|
---|
129 | Ethernet = 10240
|
---|
130 |
|
---|
131 | [comparisons-upload]
|
---|
132 | Typical Dialup = 28
|
---|
133 | Best-case Dialup = 38
|
---|
134 | Standard DSL = 256
|
---|
135 | Cable = 384
|
---|
136 | T1 = 1581
|
---|
137 |
|
---|