更新
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
3
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
require ('../../need.php');//引用封装好的函数文件
|
require ('../../need.php');//引用封装好的函数文件
|
||||||
$n = @$_REQUEST["n"];
|
$n = @$_REQUEST["n"];
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
10
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
|
// 读取并自增
|
||||||
|
$counter = (int)@file_get_contents($file);
|
||||||
$counter++;
|
$counter++;
|
||||||
$fp = fopen("counter.dat", "w");
|
|
||||||
fwrite($fp, $counter);
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
fclose($fp);
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
// 设置响应头为JSON格式
|
// 设置响应头为JSON格式
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
4
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
header('Access-Control-Allow-Origin:*');
|
header('Access-Control-Allow-Origin:*');
|
||||||
$str = file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
|
$str = file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx=0&n=1');
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
4
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
3
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
header('Content-Type: image/x-icon');
|
header('Content-Type: image/x-icon');
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
7
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
// IP Geolocation API
|
// IP Geolocation API
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
5
|
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
$file = 'counter.dat';
|
||||||
|
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
// 读取并自增
|
||||||
$_SESSION['#'] = true;
|
$counter = (int)@file_get_contents($file);
|
||||||
$counter++;
|
$counter++;
|
||||||
$fp = fopen("counter.dat","w");
|
|
||||||
fwrite($fp, $counter);
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
fclose($fp);
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
class App
|
class App
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@@ -3325,11 +3325,13 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
1
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
header('Content-type:text/json');
|
header('Content-type:text/json');
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
3
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
7
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
$counter++;
|
// 读取并自增
|
||||||
$fp = fopen("counter.dat","w");
|
$counter = (int)@file_get_contents($file);
|
||||||
fwrite($fp, $counter);
|
$counter++;
|
||||||
fclose($fp);
|
|
||||||
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
2
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$counter = intval(file_get_contents("counter.dat"));
|
$file = 'counter.dat';
|
||||||
$_SESSION['#'] = true;
|
|
||||||
|
// 读取并自增
|
||||||
|
$counter = (int)@file_get_contents($file);
|
||||||
$counter++;
|
$counter++;
|
||||||
$fp = fopen("counter.dat", "w");
|
|
||||||
fwrite($fp, $counter);
|
// 使用 LOCK_EX 防止并发写入冲突
|
||||||
fclose($fp);
|
file_put_contents($file, $counter, LOCK_EX);
|
||||||
|
|
||||||
// 设置响应头为JSON格式
|
// 设置响应头为JSON格式
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|||||||
Reference in New Issue
Block a user