--------------------------------------------------------------------------------
Please maintain the integrity of the article
Bytes --------------------------------------------------------------------------------------
<?
// Counter. php All rights reserved http://sports98.126.com
// You can apply for a counter similar to 163 to activate the multi-user service. The [Image counter] v1.00 code is free of charge. If you use this code, please ensure that your code is fully published.
$ Counterfile = "./counter country name1_.txt"; // define the data file;
$ Fp = fopen ("$ counterfile", "rw"); // open a data file
$ Usernumber = fgets ($ fp, 8); // retrieve the data file
$ Usernumber + = 1; // calculate data
$ Int_counter = $ usernumber; // separate an operation variable.
$ Int_pan = 10000000; // defines the Divisor
For ($ int_b1 = 0; $ int_b1 <= 7; $ int_b1 ++) // This cycle changes the data to the image location for the judgment data
{
$ Int_a [$ int_b1] = $ usernumber/$ int_pan;
$ Int_a [$ int_b1] = intval ($ int_a [$ int_b1]);
$ Int_a_a [$ int_b1] = selectpic ($ int_a [$ int_b1], $ xxxx);/* Note that the function can be omitted for multiple users, use Data Encryption */
$ Usernumber = $ usernumber % $ int_pan;
$ Int_pan = $ int_pan/10;
}
Echo "<div style =" border: dotted; width: xxx; border-color :$ {rgb}; height: xxx; cursor: hand; "> "; // output data image framework
For ($ int_la = 0; $ int_la <= 7; $ int_la ++)
{
Echo "$ int_a_a [$ int_la]"; // output data image
}
Echo "</div> ";
Exec ("del $ counterfile"); // delete a data file to prevent appending
// Use exec ("rm-vf $ counterfile") in unix ");
Exec ("echo $ int_counter> $ counterfile"); // Add the latest data to the file.
Function selectpic ($ int_tmp, $ path) // determines the image position function
{
$ Int_pic = " ";
Return ($ int_pic );
}
?>
Bytes ------------------------------------------------------------------------------------
<?
// Jsq. php
// When applying, it is best to use the database to save the Application List so that hackers can be found later. Here, I did not consider user verification.
// You can directly generate this file.
If ($ submit ){
$ Db = mysql_connect ("host", "name", "password") or die ("connect faild! ");
Mysql_select_db ("table", $ db );
$ Query = "insert into table value ('','')";
$ Result = mysql_query ($ query, $ db );
Exec ("echo 0>./counter/TER {username=.txt ");
Print "Print "Use the following code <script language = javascript src =" http: // host/cccc. php? Name = xxxx & xxxx = 1 & rgb = color "> </script> ";
?>
Bytes -----------------------------------------------------------------------------------
// Cccc. php
Document. write ("<? Include "./counter. php"?> ");
// Note that this counter can be used with mysql before you can apply for a service by adding verification.
// The debugging is successful on oso and passes smoothly on 51, and passes smoothly on 2000 + iis5.0 + php4.0.5