<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE object PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object>
<left_navigation />
<body>&lt;strong&gt;&lt;!--StartFragment--&gt;Viewing &amp;quot;home.config&amp;quot;&lt;/strong&gt;&#13;
&lt;p class="bodyText"&gt;The samples on this page refer to the file &amp;quot;home.config,&amp;quot; which is located in your &amp;quot;public_html/counter&amp;quot; directory.&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;To view and edit &amp;quot;home.config,&amp;quot; move to your &amp;quot;public_html/counter&amp;quot; directory and open the file with pico:&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;frank $ pico home.config&lt;/code&gt;&lt;/p&gt;&#13;
&lt;h4 class="bodyText"&gt;Basic Setup&lt;/h4&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;CountFile = /users/&lt;/code&gt;&lt;var&gt;yourgroup/username/&lt;/var&gt;&lt;code&gt;public_html/counter/home.count&lt;/code&gt;&lt;/p&gt;&#13;
&lt;h4 class="bodyText"&gt;Using One of the Alternate Digit Sets&lt;/h4&gt;&#13;
&lt;p class="bodyText"&gt;&lt;a href="http://www.mtsu.edu/Counter/DigitSets.html"&gt;&amp;gt;&amp;gt;&amp;gt; View alternate digit sets&lt;/a&gt;&lt;/p&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;CountFile = /users/&lt;/code&gt;&lt;var&gt;yourgroup/username&lt;/var&gt;&lt;code&gt;/public_html/counter/home.count&lt;br /&gt; DigitSet = 3&lt;/code&gt;&lt;/p&gt;&#13;
&lt;h4 class="bodyText"&gt;Using the Access Logging Feature&lt;/h4&gt;&#13;
&lt;p class="bodyText"&gt;&lt;code&gt;CountFile = /users/&lt;/code&gt;&lt;var&gt;yourgroup/username&lt;/var&gt;&lt;code&gt;/public_html/counter/home.count&lt;br /&gt; AccessLog = /users/&lt;/code&gt;&lt;var&gt;yourgroup/username&lt;/var&gt;&lt;code&gt;/public_html/counter/access.log&lt;br /&gt; ErrorLog = /users/&lt;/code&gt;&lt;var&gt;yourgroup/username&lt;/var&gt;&lt;code&gt;/public_html/counter/error.log&lt;br /&gt; UseLogging = 1&lt;br /&gt; Title =&lt;/code&gt; &lt;var&gt;Stats/For/My/Page&lt;/var&gt;&lt;br clear="all" /&gt;&lt;br clear="all" /&gt;&lt;/p&gt;&#13;
&lt;table border="1" cellpadding="4" cellspacing="0" align="left"&gt;&#13;
    &lt;tbody&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;th bgcolor="#ffffcc" colspan="2" align="center"&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;Configuration Options&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;CountFile&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Path to the data file that stores the number of hits&lt;/em&gt;&lt;br /&gt; &lt;small&gt;This file must be world-writeable. See &lt;a href="#note"&gt;note&lt;/a&gt; on world-writeable files.&lt;/small&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;DigitPath&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Location of an &lt;a href="http://www.mtsu.edu/Counter/DigitSets.html"&gt;alternative set&lt;/a&gt; of digits&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;SizeX&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Width in pixels of one of the alternative digits&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;SizeY&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Height in pixels of one of the alternative digits&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;AccessLog&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Path to the data file that stores the stats&lt;/em&gt;&lt;br /&gt; &lt;small&gt;This file must be world-writeable.&lt;/small&gt;&lt;br /&gt; Use the command &lt;code&gt;touch access.log&lt;/code&gt; to create the file.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;ErrorLog&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Path to the data file that stores error messages that may be generated&lt;/em&gt;&lt;br /&gt; &lt;small&gt;This file must be world writeable.&lt;/small&gt;&lt;br /&gt; Use the command &lt;code&gt;touch error.log&lt;/code&gt; to create the file.&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;UseLogging&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Either 1 to use the logging feature or 0 to not&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;TransColor&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;The RGB Value of a color you want to make transparent&lt;/em&gt;&lt;br /&gt; &lt;small&gt;Use a / to separate the numbers&lt;/small&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;FrameColor&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;The RGB value you want the frame to be&lt;/em&gt;&lt;br /&gt; &lt;small&gt;Use a / to separate the numbers&lt;/small&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;FrameWidth&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Size in pixels you want the frame to be&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;&lt;a href="http://www.mtsu.edu/Counter/DigitSets.html"&gt;DigitSet&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Specifies which of the character sets you wish to use for the generated image.&lt;/em&gt;&lt;br /&gt; &lt;small&gt;Valid sets are 1-10&lt;/small&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;th bgcolor="#ffffcc" colspan="2" align="center"&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;span style="color:#000000;"&gt;Access Logging Configuration Options&lt;/span&gt;&lt;/p&gt;&#13;
            &lt;/th&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;Title&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;The title you want to appear in the stats page&lt;/em&gt;&lt;br /&gt; &lt;small&gt;Use a / instead of a space to separate words&lt;/small&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;MinRef&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Sets the number of times a web page must access the counter to make it into the stats display&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;MinRemote&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Sets the number of times a remote machine must access the counter to make it into the stats display&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
        &lt;tr&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;strong&gt;MinAgent&lt;/strong&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
            &lt;td&gt;&#13;
                &lt;p class="bodyText"&gt;&lt;em&gt;Sets the number of times a browser must access the counter to make it into the stats display&lt;/em&gt;&lt;/p&gt;&#13;
            &lt;/td&gt;&#13;
        &lt;/tr&gt;&#13;
    &lt;/tbody&gt;&#13;
&lt;/table&gt;&#13;
&lt;br clear="all" /&gt;&#13;
&lt;h3 class="bodyText" align="left"&gt;&lt;br /&gt; &lt;a name="note" id="note"&gt;&lt;/a&gt;World-Writeable Files&lt;/h3&gt;&#13;
&lt;p class="bodyText" align="left"&gt;There is some degree of risk in having a world writeable file.&lt;/p&gt;&#13;
&lt;p class="bodyText" align="left"&gt;A world-writeable file is one that ANYONE, ANYWHERE has the ability to change. And we all know that there are people out there who can and will do mean things. The fact that you have a world-writeable file could allow someone to deposit a large amount of data in one of your files, alter the count on your page, or mess up your stats file.&lt;/p&gt;&#13;
&lt;p class="bodyText" align="left"&gt;The counter requires one world-writeable file; using the logging feature requires a total of three (03) world-writeable files.&lt;/p&gt;&#13;
&lt;h4 class="bodyText" align="left"&gt;How can you protect yourself?&lt;/h4&gt;&#13;
&lt;div align="left"&gt;&#13;
    &lt;ul class="list"&gt;&#13;
        &lt;li&gt;&lt;em&gt;Have as few of these world-writeable files as possible.&lt;/em&gt;&lt;/li&gt;&#13;
        &lt;li&gt;&lt;em&gt;Consider how much you want to use the logging feature.&lt;/em&gt;&lt;/li&gt;&#13;
        &lt;li&gt;&lt;em&gt;Examine your data files periodically.&lt;br clear="all" /&gt;&lt;/em&gt; The &amp;quot;count.dat&amp;quot; file size should &lt;strong&gt;never&lt;/strong&gt; exceed 10 bytes or so. If someone tampers with the &amp;quot;access_log&amp;quot; file, your stats&lt;br clear="all" /&gt; page would contain unfamiliar or odd entries.&lt;/li&gt;&#13;
        &lt;li&gt;&lt;em&gt;Read the &amp;quot;error_log&amp;quot; file&lt;/em&gt;.&lt;br clear="all" /&gt; This file keeps track of any error messages generated by the counter; it can tell you if something was misconfigured or&lt;br clear="all" /&gt; tampered with.&lt;/li&gt;&#13;
    &lt;/ul&gt;&#13;
&lt;/div&gt;&#13;
</body>
<Dept_Branding />
<Sub_Right_Col1 />
<MTSU_AccessabilityTabs />
<MTSU_MainTabs />
<Sub_Right_Col3 />
<header>Sample Configuration Files</header>
<title />
<MTSU_MainFooter />
<Sub_Right_Col2 />
<search />
</object>

