<?php include("inc.header.php"); ?>
<img src=gfx/ico_info.gif> In order to enable your website pages for PHPSiteStats you need too add some small pieces of codes to your pages<br>
<img src=gfx/ico_notice.gif> For each file referenced as a log you must also create the respective file with read/write permissions (chmod 666) and 0 bytes inside if it is not allready existant
<br><br>
<table width=95%>
<th colspan=2>PHP (codes for adding to php pages)</th>
<tr class=tlight>
<td width='150'>code</td>
<td width='250'>action</td>
</tr>
<tr>
<td align="left"><?php fl_visits_log("index.log"); ?></td>
<td align="left">the file that has this included will log visits details</td>
</tr>
<tr>
<td align="left"><?php fl_visits_show("index.log"); ?></td>
<td align="left">the file that has this included will show a text based count
of visits</td>
</tr>
<tr>
<td align="left"><?php show_avg("index.log"); ?></td>
<td align="left">the file that has this included will show the average users/day
and number of days and visits</td>
</tr>
<tr>
<td align="left"><?php show_avg("index.log"); ?></td>
<td align="left">the file that has this included will show the average users/month
and number of months and visits</td>
</tr>
<tr>
<td align="left"><?php fl_count_log("count.log"); ?></td>
<td align="left">the file that has this included will update a count only
log</td>
</tr>
<tr>
<td align="left"><?php fl_count_show("count.log"); ?></td>
<td align="left">the file that has this included will show a graphic based
count from a count only log</td>
</tr>
<tr>
<td align="left"><b><?php include_once("phpsitestats/inc.func.php"); ?></b></td>
<td align="left"><b>any file that vill contain any of the above codes will
have to have this on first line</b></td>
</tr>
</table>
<br><br>
<table width=95%>
<th colspan=2>HTML (codes for adding to html pages)</th>
<tr class=tlight><td width='150'>code</td><td width='250'>action</td></tr>
<tr>
<td align="left"><img src=inc.func.php?picture=fl&img=gfx/index.gif&name=index.log></td>
<td align="left"><b>acting as a normal picture tag , it will show the picture and log the visits</b></td>
</tr>
<tr>
<td align="left"><img src=inc.func.php?graphic=progress&logfile=index.log&what=fl_30days></td>
<td align="left"><b>acting as a normal picture tag , it will show the graph of the last 30 days</b></td>
</tr>
<tr>
<td align="left"><img src=inc.func.php?graphic=progress&logfile=index.log&what=fl_alldays></td>
<td align="left"><b>acting as a normal picture tag , it will show the graph of the all days</b></td>
</tr>
</table>
<br><br>
<table width=95%>
<th colspan=2>SSI (codes for adding to ssi pages)</th>
<tr class=tlight><td width='150'>code</td><td width='250'>action</td></tr>
<tr>
<td align="left"><!--#include virtual="count.log" --></td>
<td align="left"><b>adding this to a ssi enabled page shows the hits number from a count only log</b></td>
</tr>
</table>
<p> </p>
<img src=gfx/ico_warn.gif> Make sure that the path for the inc.func.php (phpsitestats/) is correct for the page in wich you are adding the code to the value in the example is ok for pages wich are in the root of the site , you have to add a "../" for each directory level of others <br>
</center>
</body>
</html>