Update config.php
This commit is contained in:
+21
-1
@@ -24,6 +24,7 @@ if(isset($_GET["latitude"])){
|
|||||||
$flickr_api_key = $_GET['flickr_api_key'];
|
$flickr_api_key = $_GET['flickr_api_key'];
|
||||||
$flickr_filter_email = $_GET["flickr_filter_email"];
|
$flickr_filter_email = $_GET["flickr_filter_email"];
|
||||||
$language = $_GET["language"];
|
$language = $_GET["language"];
|
||||||
|
$timezone = $_GET["timezone"];
|
||||||
|
|
||||||
if(isset($_GET['apprise_notify_each_detection'])) {
|
if(isset($_GET['apprise_notify_each_detection'])) {
|
||||||
$apprise_notify_each_detection = 1;
|
$apprise_notify_each_detection = 1;
|
||||||
@@ -36,6 +37,10 @@ if(isset($_GET["latitude"])){
|
|||||||
$apprise_notify_new_species = 0;
|
$apprise_notify_new_species = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($timezone)) {
|
||||||
|
shell_exec("sudo timedatectl set-timezone ".$timezone);
|
||||||
|
}
|
||||||
|
|
||||||
// logic for setting the date and time based on user inputs from the form below
|
// logic for setting the date and time based on user inputs from the form below
|
||||||
if(isset($_GET['date']) && isset($_GET['time'])) {
|
if(isset($_GET['date']) && isset($_GET['time'])) {
|
||||||
// can't set the date manually if it's getting it from the internet, disable ntp
|
// can't set the date manually if it's getting it from the internet, disable ntp
|
||||||
@@ -272,7 +277,22 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
|
|||||||
<span>If connected to the internet, retrieve time automatically?</span>
|
<span>If connected to the internet, retrieve time automatically?</span>
|
||||||
<input type="checkbox" onchange='handleChange(this)' <?php echo $checkedvalue; ?> ><br>
|
<input type="checkbox" onchange='handleChange(this)' <?php echo $checkedvalue; ?> ><br>
|
||||||
<input onclick="this.showPicker()" type="date" id="date" name="date" value="<?php echo date('Y-m-d') ?>" <?php echo $disabledvalue; ?>>
|
<input onclick="this.showPicker()" type="date" id="date" name="date" value="<?php echo date('Y-m-d') ?>" <?php echo $disabledvalue; ?>>
|
||||||
<input onclick="this.showPicker()" type="time" id="time" name="time" value="<?php echo date('H:i') ?>" <?php echo $disabledvalue; ?>>
|
<input onclick="this.showPicker()" type="time" id="time" name="time" value="<?php echo date('H:i') ?>" <?php echo $disabledvalue; ?>><br>
|
||||||
|
<label for="timezone">Select a Timezone: </label>
|
||||||
|
<select name="timezone">
|
||||||
|
<option disabled selected>
|
||||||
|
Select a timezone
|
||||||
|
</option>
|
||||||
|
<?php
|
||||||
|
$timezone_identifiers = DateTimeZone::listIdentifiers(DateTimeZone::ALL);
|
||||||
|
|
||||||
|
$n = 425;
|
||||||
|
for($i = 0; $i < $n; $i++) {
|
||||||
|
echo "<option value='".$timezone_identifiers[$i]."'>".$timezone_identifiers[$i]."</option>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
|
|
||||||
<input type="hidden" name="status" value="success">
|
<input type="hidden" name="status" value="success">
|
||||||
|
|||||||
Reference in New Issue
Block a user