--------------------------------------------------------------------------------
Please keep Article Integrity
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. [Image counter] v1.00 Code Free of charge. If you use this code, make sure 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 on 2000 + iis5.0 + php4.0.5