deleting old versions of config.php
This commit is contained in:
@@ -1,84 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Configure `birdnet.conf`</title>
|
||||
<style>
|
||||
* {
|
||||
font-family: 'Arial', 'Gill Sans', 'Gill Sans MT',
|
||||
' Calibri', 'Trebuchet MS', 'sans-serif';
|
||||
}
|
||||
|
||||
h1,h2,h3 {
|
||||
text-align:center;
|
||||
}
|
||||
input {
|
||||
font-size:large;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<h1>Configure BirdNET-Pi</h1>
|
||||
<body style="background-color: rgb(119, 196, 135);">
|
||||
<form style="text-align:center;" action="write_config.php" method="POST">
|
||||
<h3>Required</h3>
|
||||
<input name="field1" type="text" value="LATITUDE" />
|
||||
<input name="field2" type="text" /><br>
|
||||
<input name="field3" type="text" value="LONGITUDE" />
|
||||
<input name="field4" type="text" /><br>
|
||||
<input name="field5" type="text" value="CADDY_PWD" />
|
||||
<input name="field6" type="text" value="changeme" /><br>
|
||||
<input name="field7" type="text" value="DB_PWD" />
|
||||
<input name="field8" type="text" value="changeme" /><br>
|
||||
<input name="field9" type="text" value="ICE_PWD" />
|
||||
<input name="field10" type="text" value="changeme" /><br>
|
||||
<input type="submit" name="submit" value="Save Settings">
|
||||
</form>
|
||||
<form style="text-align:center;" action="write_config.php" method="POST">
|
||||
<h3>Optional Services</h3>
|
||||
<input name="field11" type="text" value="BIRDWEATHER_ID" />
|
||||
<input name="field12" type="text" /><br>
|
||||
<input name="field13" type="text" value="PUSHED_APP_KEY" />
|
||||
<input name="field14" type="text" /><br>
|
||||
<input name="field15" type="text" value="PUSHED_APP_SECRET" />
|
||||
<input name="field16" type="text" /><br>
|
||||
<input type="submit" name="submit" value="Save Settings">
|
||||
</form>
|
||||
<form style="text-align:center;" action="write_config.php" method="POST">
|
||||
<h3>Custom URLs</h3>
|
||||
<input name="field17" type="text" value="BIRDNETPI_URL" />
|
||||
<input name="field18" type="text" /><br>
|
||||
<input name="field19" type="text" value="EXTRACTIONLOG_URL" />
|
||||
<input name="field20" type="text" /><br>
|
||||
<input name="field21" type="text" value="BIRDNETLOG_URL" />
|
||||
<input name="field22" type="text" /><br>
|
||||
<input type="submit" name="submit" value="Save Settings">
|
||||
</form>
|
||||
<form style="text-align:center;" action="write_config.php" method="POST">
|
||||
<h3>Default Services</h3>
|
||||
<input name="field23" type="text" value="INSTALL_NOMACHINE" />
|
||||
<input name="field24" type="text" value="y" /><br>
|
||||
<input name="field25" type="text" value="DO_EXTRACTIONS" />
|
||||
<input name="field26" type="text" value="y" /><br>
|
||||
<input name="field27" type="text" value="DO_RECORDING" />
|
||||
<input name="field28" type="text" value="y" /><br>
|
||||
<input type="submit" name="submit" value="Save Settings">
|
||||
</form>
|
||||
<form style="text-align:center;" action="write_config.php" method="POST">
|
||||
<h3>Advanced Configuration</h3>
|
||||
<input name="field29" type="text" value="REC_CARD" />
|
||||
<input name="field30" type="text" value="default" /><br>
|
||||
<input name="field31" type="text" value="OVERLAP" />
|
||||
<input name="field32" type="text" value="0.0" /><br>
|
||||
<input name="field33" type="text" value="CONFIDENCE" />
|
||||
<input name="field34" type="text" value="0.7" /><br>
|
||||
<input name="field35" type="text" value="SENSITIVITY" />
|
||||
<input name="field36" type="text" value="1.25" /><br>
|
||||
<input name="field37" type="text" value="CHANNELS" />
|
||||
<input name="field38" type="text" value="2" /><br>
|
||||
<input name="field39" type="text" value="RECORDING_LENGTH" />
|
||||
<input name="field40" type="text" value="15" /><br>
|
||||
<input name="field41" type="text" value="EXTRACTION_LENGTH" />
|
||||
<input name="field42" type="text" value="6" /><br>
|
||||
<input type="submit" name="submit" value="Save Settings">
|
||||
</form>
|
||||
<a style="font-weight:bold;color:black;" href='phpconfig.txt'>View Current Config</a>
|
||||
</body>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<?php
|
||||
if($_POST['Submit']){
|
||||
$open = fopen("scripts/birdnet.conf","w+");
|
||||
$text = $_POST['update'];
|
||||
fwrite($open, $text);
|
||||
fclose($open);
|
||||
echo "File updated.<br />";
|
||||
echo "File:<br />";
|
||||
$file = file("scripts/birdnet.conf");
|
||||
foreach($file as $text) {
|
||||
echo $text."<br />";
|
||||
}
|
||||
}else{
|
||||
$file = file("scripts/birdnet.conf");
|
||||
echo "<form style=\"text-align:center;\" action=\"".$PHP_SELF."\" method=\"post\">";
|
||||
echo "<textarea Name=\"update\" cols=\"80\" rows=\"100\">";
|
||||
foreach($file as $text) {
|
||||
echo $text;
|
||||
}
|
||||
echo "</textarea>";
|
||||
echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n
|
||||
</form>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user