2020-07-10 13:36:29 +02:00
|
|
|
<?php ob_start() ?>
|
|
|
|
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
|
|
|
<input type="submit" class="btn btn-outline btn-primary" name="SaveHostAPDSettings" value="<?php echo _("Save settings"); ?>" />
|
|
|
|
<?php if ($hostapdstatus[0] == 0) : ?>
|
2020-12-24 21:52:18 +01:00
|
|
|
<input type="submit" class="btn btn-success" name="StartHotspot" value="<?php echo _("Start hotspot"); $msg=_("Starting hotspot"); ?>" data-toggle="modal" data-target="#hostapdModal"/>
|
2020-07-10 13:36:29 +02:00
|
|
|
<?php else : ?>
|
|
|
|
<input type="submit" class="btn btn-warning" name="StopHotspot" value="<?php echo _("Stop hotspot") ?>"/>
|
2020-12-24 21:52:18 +01:00
|
|
|
<input type ="submit" class="btn btn-warning" name="RestartHotspot" value="<?php echo _("Restart hotspot"); $msg=_("Restarting hotspot"); ?>" data-toggle="modal" data-target="#hostapdModal"/>
|
2020-07-10 13:36:29 +02:00
|
|
|
<?php endif ?>
|
2020-12-24 21:52:18 +01:00
|
|
|
<!-- Modal -->
|
|
|
|
<div class="modal fade" id="hostapdModal" tabindex="-1" role="dialog" aria-labelledby="ModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<div class="modal-title" id="ModalLabel"><i class="fas fa-sync-alt mr-2"></i><?php echo $msg ?></div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2020-12-26 09:51:45 +01:00
|
|
|
<div class="col-md-12 mb-3 mt-1"><?php echo _("Executing RaspAP service start") ?>...</div>
|
2020-12-24 21:52:18 +01:00
|
|
|
<div class="progress" style="height: 20px;">
|
|
|
|
<div class="progress-bar bg-info" role="progressbar" id="progressBar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="9"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-outline btn-primary" data-dismiss="modal"><?php echo _("Close"); ?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-10 13:36:29 +02:00
|
|
|
<?php endif ?>
|
|
|
|
<?php $buttons = ob_get_clean(); ob_end_clean() ?>
|
2019-08-19 01:35:39 +02:00
|
|
|
|
2020-07-10 13:36:29 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card">
|
2020-05-19 18:28:48 +02:00
|
|
|
|
2020-07-10 13:36:29 +02:00
|
|
|
<div class="card-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<i class="far fa-dot-circle mr-2"></i><?php echo _("Hotspot"); ?>
|
2019-08-19 01:35:39 +02:00
|
|
|
</div>
|
2020-07-10 13:36:29 +02:00
|
|
|
<div class="col">
|
|
|
|
<button class="btn btn-light btn-icon-split btn-sm service-status float-right">
|
|
|
|
<span class="icon text-gray-600"><i class="fas fa-circle service-status-<?php echo $serviceStatus ?>"></i></span>
|
|
|
|
<span class="text service-status">hostapd <?php echo _($serviceStatus) ?></span>
|
|
|
|
</button>
|
2019-08-19 01:35:39 +02:00
|
|
|
</div>
|
2020-07-10 13:36:29 +02:00
|
|
|
</div><!-- /.row -->
|
|
|
|
</div><!-- /.card-header -->
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<?php $status->showMessages(); ?>
|
|
|
|
<form role="form" action="?page=hostapd_conf" method="POST">
|
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
|
|
|
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="nav-item"><a class="nav-link active" id="basictab" href="#basic" aria-controls="basic" data-toggle="tab"><?php echo _("Basic"); ?></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" id="securitytab" href="#security" data-toggle="tab"><?php echo _("Security"); ?></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link" id="advancedtab" href="#advanced" data-toggle="tab"><?php echo _("Advanced"); ?></a></li>
|
2020-07-11 10:04:07 +02:00
|
|
|
<li class="nav-item"><a class="nav-link" id="logoutputtab" href="#logoutput" data-toggle="tab"><?php echo _("Logging"); ?></a></li>
|
2020-07-10 13:36:29 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Tab panes -->
|
|
|
|
<div class="tab-content">
|
|
|
|
<?php echo renderTemplate("hostapd/basic", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("hostapd/security", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("hostapd/advanced", $__template_data) ?>
|
|
|
|
<?php echo renderTemplate("hostapd/logging", $__template_data) ?>
|
|
|
|
</div><!-- /.tab-content -->
|
|
|
|
|
|
|
|
<?php echo $buttons ?>
|
|
|
|
</form>
|
|
|
|
</div><!-- /.card-body -->
|
|
|
|
|
|
|
|
<div class="card-footer"> <?php echo _("Information provided by hostapd"); ?></div>
|
|
|
|
|
|
|
|
</div><!-- /.card -->
|
|
|
|
</div><!-- /.col-lg-12 -->
|
2019-08-19 01:35:39 +02:00
|
|
|
</div><!-- /.row -->
|
2020-07-10 13:36:29 +02:00
|
|
|
|