mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 11:49:42 +08:00
修改php 适配了唐超的更新
This commit is contained in:
@ -14,10 +14,11 @@ ob_implicit_flush(1);//将打开或关闭绝对(隐式)刷送。绝对(隐
|
|||||||
echo "application beging<br>";
|
echo "application beging<br>";
|
||||||
//$cmd = 'ping 127.0.0.1';
|
//$cmd = 'ping 127.0.0.1';
|
||||||
$ini=parse_ini_file("/home/data/Setting/DeviceSettings.ini",true);
|
$ini=parse_ini_file("/home/data/Setting/DeviceSettings.ini",true);
|
||||||
|
var_dump($ini);
|
||||||
$numberofsensor=intval($ini['DEVICE INFO']['TotalSpectrometer']);
|
$numberofsensor=intval($ini['DEVICE INFO']['TotalSpectrometer']);
|
||||||
$numberofFS=0;
|
$numberofFS=0;
|
||||||
for($i=0;$i<$numberofsensor;$i++){
|
for($i=0;$i<$numberofsensor;$i++){
|
||||||
$tempsens=$ini['FS'.$i+1]['Model'];
|
$tempsens=$ini['FS'.($i+1)]['Model'];
|
||||||
if ($sensorType=$tempsens)
|
if ($sensorType=$tempsens)
|
||||||
{
|
{
|
||||||
$numberofFS=$i+1;
|
$numberofFS=$i+1;
|
||||||
@ -72,7 +73,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
echo $cmd;
|
||||||
|
|
||||||
while(@ ob_end_flush());
|
while(@ ob_end_flush());
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ while(!feof($proc)){
|
|||||||
echo fread($proc, 4096);
|
echo fread($proc, 4096);
|
||||||
@ flush();
|
@ flush();
|
||||||
}
|
}
|
||||||
echo 'FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!';
|
echo 'FINISH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ';
|
||||||
echo '<a href=/config/position.html>回到首页</a>';
|
echo '<a href=/config/position.html>回到首页</a>';
|
||||||
|
|
||||||
function getonestring(&$bytes,$fenge)
|
function getonestring(&$bytes,$fenge)
|
||||||
|
@ -28,7 +28,7 @@ while(!feof($proc)){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '<form action="/config/calibrate.php?p" method="get">';
|
echo '<form action="/config/calibrate.php" method="get" target="_blank">';
|
||||||
|
|
||||||
echo '设备<input id="sensor" name="sensor" type="text" list="typelist" placeholder="请选择">
|
echo '设备<input id="sensor" name="sensor" type="text" list="typelist" placeholder="请选择">
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
<title>Title</title>
|
<title>Title</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href="/fileup/location.php?p=1">位置1</a>
|
<a href="/config/location.php?p=1">位置1</a>
|
||||||
<a href="/fileup/location.php?p=2">位置2</a>
|
<a href="/config/location.php?p=2">位置2</a>
|
||||||
<a href="/fileup/location.php?p=3">位置3</a>
|
<a href="/config/location.php?p=3">位置3</a>
|
||||||
<a href="/fileup/location.php?p=4">位置4</a>
|
<a href="/config/location.php?p=4">位置4</a>
|
||||||
<a href="/fileup/location.php?p=5">位置5</a>
|
<a href="/config/location.php?p=5">位置5</a>
|
||||||
<a href="/fileup/location.php?p=12">位置try</a>
|
<a href="/config/location.php?p=12">位置try</a>
|
||||||
|
|
||||||
<form action="LocationCali.php" method="get">
|
<form action="LocationCali.php" method="get">
|
||||||
<table>
|
<table>
|
||||||
|
Reference in New Issue
Block a user