Skip to content

Commit c3dcbeb

Browse files
committed
Update settings.php
1 parent 92def3e commit c3dcbeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
$key = $server->get_key();
2222
$api = $server->get_api();
2323

24+
$mip = file_get_contents('https://ip.seeip.org');
25+
2426
if (isset($_POST['submit']) && !empty($_POST['submit'])) {
2527
$config = array("api" => $_POST['api'], "key" => $_POST['key'], "secret" => NULL, "recaptcha" => $_POST['recaptcha'], "images" => $_POST['images'], "text" => NULL, "audio" => NULL, "funcaptcha" => NULL);
2628

@@ -161,7 +163,7 @@
161163
<div class="row">
162164
<div class="col-md-5">
163165
<div class="form-group label-floating">
164-
<div class="control-label" style="width: 100%;">Server IP <span class="pull-right"><?=$ips?></span></div>
166+
<div class="control-label" style="width: 100%;">Server IP <span class="pull-right"><?=$mip?></span></div>
165167
<input type="text" name="ip" value="<?=$server->get_server_ip()?>" class="form-control">
166168
</div>
167169
</div>

0 commit comments

Comments
 (0)