Repair room creation
This commit is contained in:
parent
c68c051777
commit
599ef47cd9
@ -13,6 +13,11 @@ if (isset($_POST) && !empty($_POST)){
|
|||||||
UserManager::createUser($userName, $password);
|
UserManager::createUser($userName, $password);
|
||||||
header('Location: ' . BASEDIR . 'setting');
|
header('Location: ' . BASEDIR . 'setting');
|
||||||
die();
|
die();
|
||||||
|
} else if (isset($_POST['submitCreateRoom']) && $_POST['submitCreateRoom'] != "") {
|
||||||
|
$roomName = $_POST['roomName'];
|
||||||
|
RoomManager::create($roomName);
|
||||||
|
header('Location: ' . BASEDIR . 'setting');
|
||||||
|
die();
|
||||||
} else if (isset($_POST['submitEnableOta']) && $_POST['submitEnableOta'] != "") {
|
} else if (isset($_POST['submitEnableOta']) && $_POST['submitEnableOta'] != "") {
|
||||||
echo $otaCode = $_POST['otaCode'];
|
echo $otaCode = $_POST['otaCode'];
|
||||||
echo $otaSecret = $_POST['otaSecret'];
|
echo $otaSecret = $_POST['otaSecret'];
|
||||||
|
@ -183,7 +183,7 @@
|
|||||||
<input type="text" class="input" name="roomName" value="">
|
<input type="text" class="input" name="roomName" value="">
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<input type="submit" name="submitCreateUser" class="button" value="<?php $LANGMNG->echo('b_create') ?>">
|
<input type="submit" name="submitCreateRoom" class="button" value="<?php $LANGMNG->echo('b_create') ?>">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user