Location: PHPKode > scripts > HIOX Unique Visitor Counter > HUC/code.php
include "authheader.php";
if($block == "false"){

include "header.php";

$file = "count.txt";
$size = filesize($file);
$open = fopen($file, "r");
$count = fread($open, $size);

$expval = explode("*-*",$count);


<td align=center><br>

Copy the below code in to the pages where you want HBS (HIOX Web Browsers Statistics)
	<table width=400 height=100 align=center class=maintext>
	<form name="select_all">
	<textarea style="color: green; font-size: 13px;" name="text_area" rows="8" cols="80" border=0px>
        	$url = $_SERVER['SCRIPT_FILENAME'];
                $pp = strrpos($url,"/");
                $url = substr($url,0,$pp);
                $ura = $_SERVER['SCRIPT_NAME'];
                $host = $_SERVER['SERVER_NAME'];
                $ser = "http://$host";
                $ura= $ser.$ura; 
                $pp1 = strrpos($ura,"/");
                $ura = substr($ura,0,$pp1);
		$url1=explode('/', $url);
		$url1=implode('/', $url1);
		$ura1=explode('/', $ura);
		$ura1=implode('/', $ura1);
echo "
  $"."hm = \"$url1\"; 
  $"."hm2 = \"$ura1\"; 
  include \"$"."hm/HUC/huc.php\";
	<input type="button" value="Select All" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">
	<table align=center valign=center bgcolor=c5d7ff align=center width=40% style="border: 1px #CE03FF solid; font-family: verdana, 
	arial, sans-serif; font-size: 13px;">
	$starte = $_POST["starter"];
	$val = $_POST["strt"];

	if($starte == "startfrom" && $val != ""){
	$open2 = fopen($file,"w");
	elseif($starte == "startfrom" && $val==""){
		echo "<div align=center>Empty values Not allowed</div>";
	$fsize = file($file);
	$exp = explode("*-*",$fsize[0]);
	$count = $exp[0];
	$count1 = $exp[1];

        <form name=setf method=POST action=<?php echo $PHP_SELF;?>>
	       	<tr><td>Actual Count</td><td width=5></td><td><?php echo "$count"; ?></td></tr><tr height=5></tr>
		<tr><td>Increase Count By</td><td width=5></td>
		    <td><input name="strt" size="5" maxlength=20 type=text value=<?php echo "$count1"; ?> ></td>
		<td><input name="starter" type=hidden value="startfrom"></td><td width=5></td>
		<td><input type=submit value="  OK  "></td></tr><tr height=5></tr>
		<tr><td>Total Count</td><td width=5></td><td><?php 
						$hm = $url1;
						include "$hm/HUC/huc.php"; ?>

	include "footer.php";

Return current item: HIOX Unique Visitor Counter