edycja konfguracji
pull/1/head
Tomasz Salwach 2018-03-27 01:01:29 +02:00
rodzic fd976b2251
commit d3f85f18b5
3 zmienionych plików z 18 dodań i 1 usunięć

13
www-sq7br/conf.php 100644
Wyświetl plik

@ -0,0 +1,13 @@
<?php
if (array_key_exists("config",$_POST)){
file_put_contents("conf/dxl_config.sh",str_replace("\r\n","\n",$_POST["config"]));
}
print("<form method='POST'>");
print("<textarea name='config' cols='80' rows='20'>");
print(file_get_contents("conf/dxl_config.sh"));
print("</textarea>");
print("<input type='submit' name='save_config' value='SAVE'>");
print("</form>");
?>

Wyświetl plik

@ -17,6 +17,7 @@ print("<title>spdxl ".$realIP."</title>");
if($p=='s') echo "var page='sondy.php';";
if($p=='A') echo "var page='wf.php';";
if($p=='PS') echo "var page='processes.php';";
?>
function getData(){
@ -58,11 +59,13 @@ function getData(){
<br><br>
<input style="width:100px" type="button" onClick="location.href='index.php?p=s';" value="SONDY">
<br>
<input style="width:100px" type="button" onClick="location.href='index.php?p=PS';" value="PROCESY">
<br>
<input style="width:100px" type="button" onClick="location.href='index.php?p=A';" value="SDR WF">
<br><br>
<input style="width:100px" type="button" onClick="location.href='index.php?p=C';" value="CONFIG">
<input style="width:100px" type="button" onClick="location.href='index.php?p=SDRTST1';" value="SDR #1 freq.">
<input style="width:100px" type="button" onClick="location.href='index.php?p=SDRTST2';" value="SDR #2 freq.">
<input style="width:100px" type="button" onClick="location.href='index.php?p=SDRTST3';" value="SDR #3 freq.">
@ -74,6 +77,7 @@ function getData(){
<td width="704" bgcolor="#CCCCFF">
<?php
if ($p=="C") require("conf.php");
if($p=='0' || $p=='' || $p=='s' ) echo "<p id=\"switch_txt\"></p>";
if( substr($p,0,6)=="SDRTST" ) include 'sdr.php';

Wyświetl plik

@ -99,7 +99,7 @@ if (($handle = @fopen($fil, "r")) !== FALSE) {
$enf=" checked ";
else
$enf="";
echo '<tr><td>'.$row.'</td><td><input type="checkbox" name="e[]" value="'.$row.'"'.$enf.'><br></td><td>FM</td><td><input type="text" name="f[]" maxlength=7 size=4 value="'.$data[1].'"></td>';
echo '<tr><td>'.$row.'</td><td><input type="checkbox" name="e[]" value="'.$row.'"'.$enf.'><br></td><td>FM</td><td><input type="text" name="f[]" maxlength=7 size=6 value="'.$data[1].'"></td>';
echo '<td><input type="text" name="afc[]" maxlength="2" size="1" value='.$data[2].'></td><td><input type="text" name="afo[]" maxlength="6" size="4" value='.$data[3].'></td>';
echo '<td><input type="text" name="sq[]" maxlength="3" size="2" value='.$data[4].'></td><td><input type="text" name="lp[]" maxlength="3" size="3" value='.$data[5].'></td>';
echo '<td><input type="text" name="ifw[]" maxlength="6" size="4" value='.$data[6].'></td><td><input type="text" name="com[]" maxlength="25" size="10" value='.substr($data[7],1).'></td></tr>';