請保持文章的完整性
--------------------------------------------------------------------------------------
<?
/ " /> 欧美一级理论片,怡红院av一区二区三区,丝袜美腿av在线

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

綜合圖片計數(shù)器

--------------------------------------------------------------------------------  
請保持文章的完整性  
--------------------------------------------------------------------------------------  
<?  
//counter.php All rights reserved http://sports98.126.com  
//類似163的計數(shù)器,可以申請使用,開通多用戶服務(wù),[圖片計數(shù)器]v1.00 代碼免費,如果您使用本代碼請保證您的代碼也要完全公布  

$counterfile="./counter/${name}.txt"; //定義數(shù)據(jù)文件;  
$fp=fopen("$counterfile","rw"); //打開數(shù)據(jù)文件  
$usernumber=fgets($fp,8); //取出數(shù)據(jù)文件數(shù)據(jù)  
$usernumber+=1; //將數(shù)據(jù)計算  
$int_counter=$usernumber; //分出一個操作變量  
$int_pan=10000000; //定義被除數(shù)  
for($int_b1=0;$int_b1<=7;$int_b1++) //此循環(huán)為判定數(shù)據(jù)將數(shù)據(jù)更改為圖象位置  
{  
$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); /* 注意這里如果是單用戶可以省略使用函數(shù),使用函數(shù)是為了多用戶使用,將數(shù)據(jù)加密使用 */  
$usernumber=$usernumber % $int_pan;  
$int_pan=$int_pan /10;  
}  
echo "<div style="border:dotted;width:xxx;border-color:${rgb};height:xxx;cursor:hand;">"; //輸出數(shù)據(jù)圖象框架  
for($int_la=0;$int_la<=7;$int_la++)  
{  
echo "$int_a_a[$int_la]"; //輸出數(shù)據(jù)圖象  
}  
echo "</div>";  
exec("del $counterfile"); //刪除數(shù)據(jù)文件防止追加  
//unix 下使用 exec("rm -vf $counterfile");  
exec("echo $int_counter > $counterfile"); //添加最新數(shù)據(jù)到文件內(nèi)  
function selectpic($int_tmp,$path) //判定圖片位置函數(shù)  
{  
$int_pic="<img src='./pic/${path}/${int_tmp}.gif'>";  
return($int_pic);  
}  
?>  
------------------------------------------------------------------------------------  
<?  
//jsq.php  
//申請的時候,最好使用數(shù)據(jù)庫將申請名單保存,以便以后發(fā)現(xiàn)盜用者,在這里我沒考慮用戶驗證  
//可以直接生成這個文件就可以了  
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/${username}.txt");  
print "<h1>恭喜!您已經(jīng)成功的申請到服務(wù)了</h1>";  
print "請使用以下代碼<script language=Javascript src="http://host/cccc.php?name=xxxx&xxxx=1&rgb=color"></script>";  
?>  
-----------------------------------------------------------------------------------  
//cccc.php  
document.write("<? include "./counter.php" ?>");  

//注意本計數(shù)器 結(jié)合mysql后添加驗證就可以進行申請服務(wù)了。  
//調(diào)試在oso通過,在51順利通過,在2000+iis5.0+php4.0.5順利通過 

php技術(shù)綜合圖片計數(shù)器,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 天水市| 门头沟区| 巴东县| 涟水县| 漳州市| 石门县| 乳山市| 呼玛县| 奉化市| 都江堰市| 高陵县| 滨海县| 无极县| 农安县| 虎林市| 平昌县| 周宁县| 白水县| 会昌县| 奎屯市| 华安县| 新化县| 舟山市| 崇仁县| 武宁县| 辽阳县| 通山县| 江华| 正镶白旗| 神木县| 康乐县| 于田县| 岳池县| 高碑店市| 灵台县| 泰来县| 永胜县| 武汉市| 桃园县| 青冈县| 蕉岭县|