Location: PHPKode > scripts > InstaCounter > Christophe/Scripts/InstaCounter/release candidate/admin_modifysettings.php
<?php  // admin_modifysettings.php       -> Admin Panel options for general settings.

include("access.php"); 

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@																			 @@
// @@		++++++++++++++++++		 											 @@
// @@		++ InstaCounter ++			Version:	 1.0						 @@
// @@		++++++++++++++++++													 @@
// @@																			 @@
// @@		InstaCounter was developed by Christophe Johanns. Therefore			 @@
// @@		he owns the copyright to all files of this script. Feel free		 @@
// @@		to modify the code for PERSONAL use.								 @@
// @@																			 @@
// @@	    Copyright © 2001 Christophe Johanns. All rights reserved.			 @@
// @@																			 @@
// @@		Support: http://www.freesources.net/instacounter.php				 @@
// @@		Comments: hide@address.com										 @@
// @@																			 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@	LEFT MENU																 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

if($public!="1") {

	if($action!="modifysettings") {
		
		$otherfile="1";
		$action2="firsthtml";
		include("./admin.php");
	
	}

}


// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@	MODIFY SETTINGS															 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

if ($action=="modifysettings") {

	// Check form.
	if($usern=="") {  $error=$error . "<br>You did not fill in a valid User name.";  }
	if($pw1=="") {  $error=$error . "<br>You did not fill in a valid Password.";  }
	if($pw1<>$pw2) {  $error=$error . "<br>Passwords did not match.";  }
	if($email=="") {  $error=$error . "<br>You did not fill in a valid email address.";  }
	if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",$email)) {  $error=$error . "<br>You did not fill in a valid email address.";  }
	if($installdir=="") {  $error=$error . "<br>You did not fill in a valid install directory.";  }
	
	// Process form.
	if($error<>"") {  echo("<FONT face=Verdana size=3><B>Error:</B><BR><FONT size=2>$error</FONT></FONT>");  } else {   
		
		if (!$db) { print "There was an error connecting to the database."; } else { 
			
		mysql_query("UPDATE InstaCounter_Config set UserName='$usern',Password='$pw1',eMail='$email',CheckMethod='$checkmethod',ignoreIP='$ignoreip',InstallDir='$installdir',public_info='$public_info',public_stats='$public_stats',public_styles='$public_styles'");
		
		header("Location: admin_modifysettings.php?action=modifysettingsok");
		
		}
	
	}
	
}


// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@	FORM TO MODIFY SETTINGS													 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

if($action=="modifysettingsok") { 

	echo" <p align=\"left\" style=\"margin-left: 70; margin-right: 70\"><br><font face=verdana size=2 color=#006D8A>Changes made succesfully.</font><br><br>";

}

if ($action=="modifysettingsform" || $action=="modifysettingsok") {
	
	if (!$db) { print "There was an error connecting to the database."; } else { 
		
	$query = mysql_query("SELECT * FROM InstaCounter_Config WHERE cid='1'"); $handle = mysql_fetch_array($query);	
	
	}

	if($handle[CheckMethod]=="0"){ $check1="checked"; } 
	if($handle[CheckMethod]=="1"){ $check2="checked"; } 
	if($handle[CheckMethod]=="2"){ $check3="checked"; } 
	if($handle[public_info]=="1"){ $check4="checked"; }
	if($handle[public_info]=="0"){ $check5="checked"; }
	if($handle[public_stats]=="1"){ $check6="checked"; }
	if($handle[public_stats]=="0"){ $check7="checked"; }
	if($handle[public_styles]=="1"){ $check8="checked"; }
	if($handle[public_styles]=="0"){ $check9="checked"; }

	echo "<FORM method=\"post\" action=\"admin_modifysettings.php?action=modifysettings\"><DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\"> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><B><FONT face=\"Verdana\" size=\"2\" color=\"#FFFFFF\">&nbsp;Modify user settings</FONT></B></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Username</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Your username: (max. 10 char.)<BR> </FONT><INPUT type=\"text\" name=\"usern\" size=\"25\" style=\"font-family: Verdana; font-size: 10pt\" maxLength=\"10\" value=\"$handle[UserName]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Your username is used to log in the Admin Panel.</FONT><FONT size=\"1\" face=\"Verdana\"><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\" valign=\"top\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Password</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Your password: (max. 10 char.)<BR> </FONT><INPUT type=\"password\" name=\"pw1\" size=\"25\" style=\"font-family: Verdana; font-size: 10pt\" maxLength=\"10\" value=\"$handle[Password]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Your password is used to log in the Admin Panel.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Retype your password: (max. 10 char.)<BR> </FONT><INPUT type=\"password\" name=\"pw2\" size=\"25\" style=\"font-family: Verdana; font-size: 10pt\" maxLength=\"10\" value=\"$handle[Password]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Retype your password for verification.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\" valign=\"top\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Email address</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Your email address:<BR> </FONT><INPUT type=\"text\" name=\"email\" size=\"25\" style=\"font-family: Verdana; font-size: 10pt\"  maxLength=\"80\" value=\"$handle[eMail]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Email address is used for username and password retrieval. It is essential that you fill in a valid email address.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"2\"><B>&nbsp;Modify system settings</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Install directory</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Path to InstaScript directory:<BR> </FONT><INPUT type=\"text\" name=\"installdir\" size=\"25\" style=\"font-family: Verdana; font-size: 10pt\" maxLength=\"100\" value=\"$handle[InstallDir]\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">You need to enter the path to the install directory of this script.<BR> <BR> <FONT color=\"#006D8A\">Use the same address you would type in your webbrowser. (http://mysite.com/dir/dir/)</FONT><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Repetitive count verification</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Choose a method: <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"0\" name=\"checkmethod\" $check1></FONT></TD> <TD width=\"86%\"><FONT size=\"1\" face=\"Verdana\">Do <B>not</B> check for repetitive visits within 5 minutes.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"1\" name=\"checkmethod\" $check2></FONT></TD> <TD width=\"86%\"><FONT size=\"1\" face=\"Verdana\">Use <B>cookies</B> to check for repetitive visits within 5 minutes. <FONT color=\"#006D8A\">(recommended)<BR> </FONT></FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"2\" name=\"checkmethod\" $check3></FONT></TD> <TD width=\"86%\"><FONT size=\"1\" face=\"Verdana\">Use <B>IP tracking</B> to check for repetitive visits within 5 minutes.</FONT></TD> </TR> </TABLE> </DIV> <P style=\"margin-left: 10; margin-right: 10\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">InstaCounter can check whether or not a certain visitor has already visited the page within 5 minutes. This protects against constantly reloading the counter, making it reflect a wrong number of the amount of visitors the page has got.<BR> <BR> Use of cookies is recommended, because IP tracking will disable correct counting with users in a public area, where more than one user uses the same IP.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Ignore IP addresses</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT face=\"Verdana\" size=\"1\">IP addresses to ignore: (max. 200 char.)<BR> </FONT><TEXTAREA rows=\"5\" name=\"ignoreip\" cols=\"25\" style=\"font-family: Verdana; font-size: 10pt\">$handle[ignoreIP]</TEXTAREA><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">You can enter some IP addresses, which InstaCounter will ignore. This was added to protect the counter from counting the visits of the webmaster of the page. It is not required though.<BR> <BR> <FONT color=\"#006D8A\">Put the IP addresses under eachother.</FONT><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"2\"><B>&nbsp;Modify public settings</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Individual counter information</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Choose an option: <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"1\" name=\"public_info\" $check4></FONT></TD> </FONT> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>Yes</B>, enable everyone to see information of individual counters.</FONT><FONT size=\"1\" face=\"Verdana\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"0\" name=\"public_info\" $check5></FONT></TD> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>No</B>, keep the individual counter information private.</FONT><FONT color=\"#006D8A\" face=\"Verdana\" size=\"1\"><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">You can choose to make the individual counter information page available to other people, without giving them access to the Admin Panel. You will need to provide the url with the id of their counter. You can find the url format <A href=\"admin_modifysettings.php?action=publicurl\" target=\"_blank\">here</A>.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;Individual counter statistics</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Choose an option: <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"1\" name=\"public_stats\" $check6></FONT></TD> </FONT> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>Yes</B>, enable everyone to see statistics of individual counters.</FONT><FONT size=\"1\" face=\"Verdana\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"0\" name=\"public_stats\" $check7></FONT></TD> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>No</B>, keep the individual counter statistics private.</FONT><FONT color=\"#006D8A\" face=\"Verdana\" size=\"1\"><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">You can choose to make the individual counter statistics page available to other people, without giving them access to the Admin Panel. You will need to provide the url with the id of their counter. You can find the url format <A href=\"admin_modifysettings.php?action=publicurl\" target=\"_blank\">here</A>.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#000000\"><FONT face=\"Verdana\" color=\"#FFFFFF\" size=\"1\"><B>&nbsp;List of styles</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"> <TR> <TD width=\"50%\" valign=\"top\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">Choose an option: <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"1\" name=\"public_styles\" $check8></FONT></TD> </FONT> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>Yes</B>, enable everyone to see the list of styles.</FONT><FONT size=\"1\" face=\"Verdana\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> <TR> <TD width=\"14%\" valign=\"top\"><FONT size=\"1\" face=\"Verdana\"><INPUT type=\"radio\" value=\"0\" name=\"public_styles\" $check9></FONT></TD> <TD width=\"86%\"><FONT face=\"Verdana\" size=\"1\"><B>No</B>, keep the styles list private.</FONT><FONT color=\"#006D8A\" face=\"Verdana\" size=\"1\"><BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> <TD width=\"50%\" valign=\"top\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"90%\"> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#EAEAEA\"> <P style=\"margin-left: 10; margin-right: 10\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <FONT size=\"1\" face=\"Verdana\">You can choose to make the list of styles available to other people, without giving them access to the Admin Panel. You can find the url <A href=\"admin_modifysettings.php?action=publicurl\" target=\"_blank\">here</A>.<BR> </FONT><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> <TR> <TD width=\"100%\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </DIV> </TD> </TR> <TR> <TD width=\"100%\">&nbsp;</TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#FFFFFF\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <P align=\"center\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR> <INPUT type=\"submit\" value=\"Submit Modifications\" name=\"submit\" style=\"font-family: Verdana; font-size: 10pt; font-weight: bold\"><BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></P> </TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </CENTER> </DIV></FORM>";

}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@	SHOW PUBLIC URLS														 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

if ($action=="publicurl") {

	$indi_info=$InstallDir . "counter.php?action=counterinfo&public=1&id=<B>cid</B>";
	$indi_stats=$InstallDir . "statistics.php?action=counterstats&public=1&id=<B>cid</B>";
	$liststyles=$InstallDir . "styles.php?action=liststyles&start=0&public=1";

	echo "<DIV align=\"center\"> <CENTER> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"80%\" bgcolor=\"#FFFFFF\"> <TR> <TD width=\"100%\"> <DIV align=\"center\"> <TABLE border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"> <TR> <TD width=\"100%\" bgcolor=\"#006D8A\"><FONT face=\"Verdana\" size=\"2\" color=\"#FFFFFF\">&nbsp;<B>Public URLs</B></FONT></TD> </TR> <TR> <TD width=\"100%\" bgcolor=\"#CCCCCC\"> <P style=\"margin-left: 10; margin-right: 10\"><FONT size=\"2\" face=\"Verdana\"><IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"><BR>You can include the following urls in your pages so everyone can see them. This feature was added for persons who want to start a counter-service. Remember however that sign-up scripts have to be written by yourself. If you need support with this please contact the programmer. (info on Admin Panel Home)<BR><BR><B>Individual counter information:</B> <BR>$indi_info<BR><FONT size=1>Instructions: Change <B>cid</B> to the id of the counter that has to be displayed.</FONT><BR><BR><B>Individual counter stats:</B> <BR>$indi_stats<BR><FONT size=1>Instructions: Change <B>cid</B> to the id of the counter that has to be displayed.</FONT><BR><BR><B>List of styles:</B> <BR>$liststyles<BR> <IMG border=\"0\" src=\"pixel.gif\" width=\"5\" height=\"5\"></FONT></TD> </TR> </TABLE> </DIV> </TD> </TR> </TABLE> </CENTER> </DIV>";

}

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@	FOOTER																	 @@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

if($public!="1") {
	
	$otherfile="1";
	$action2="lasthtml";
	include("./admin.php");

}

?>
Return current item: InstaCounter