function verificaAutenticacao() { if (!isLogado()) { header("Location: index.php"); die; } }
<table class="table table-bordered" id="ingadd"> <thead> <tr> <th class="col-md-4">Ingrediente</th> <th class="col-md-1">Imagem</th> <th class="col-md-1">Remover</th> </tr> </thead> <tbody> </tbody> </table> </div> <div> <?php if (isLogado()) { ?> <button type="submit" class="btn btn-primary btn-lg pull-right" style="margin-top:10px"><span class="glyphicon glyphicon-ok" ></span> Fechar pedido</button> <?php } else { ?> <div id="msgnaologado" class="alert alert-info" role="alert"><strong>É necessário estar logado para fechar o pedido!</strong></div> <?php } ?> </div> </form> </div> </div>
<label class="sr-only" for="telefone">Telefone</label> <input type="text" name="telefone" placeholder="Telefone" class="form-email form-control" id="idtelefone"></input> </div> <button type="submit" name="cadastrar" class="btn btn-info">Cadastrar</button> </form> </div> </div> </div> <!-- FIM MODAL REGISTRO --> </div> <?php if (!isLogado()) { ?> <!-- INICIO MODAL LOGIN --> <div class="modal fade" id="login-modal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" align="center"> <img class="" id="img_logo" src="lib/img/logofundo.png"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> </button> </div>