function checklogin() { $login = new login(); if (isset($_SESSION['user']) and isset($_SESSION['loged']) and isset($_SESSION['session']) and $_SESSION['loged'] == true) { include "body.php"; } else { $login->logwindow(); } if (isset($_GET['login']) and $_GET['login'] == "logout" and $_SESSION['loged'] == true) { $login->logout(); } if (isset($_POST['usuario']) and isset($_POST['senha']) and $_POST['usuario'] != "" and $_POST['senha'] != "" and isset($_SESSION['cod_usuario']) == false) { $login->login(); } }
public function login_interface() { parent::login(); }
</div> </div> </div> <div class="module-foot"> <div class="control-group"> <div class="controls clearfix"> <input type="submit" class="btn btn-primary pull-right" value="Login" name="login"> </div> </div> </div> </form> <?php if (@$_POST['login']) { include "controller/login.php"; $main = new login(); $main->login(); } ?> </div> </div> </div> </div> <div class="footer"> <div class="container"> <b class="copyright">© 2014 Danis Yogaswara </b> All rights reserved. </div> </div> </body> <?php } else {