Exemplo n.º 1
0
<?php

namespace HRNParis\siteauth;

require_once 'controllers/siteauth.php';
if (!isset($_SESSION['user'])) {
    if (isset($_POST['userlogin']) && $_REQUEST['UserName'] && $_REQUEST['UserPassword']) {
        $auth = new siteauth();
        $output = $auth->login($_REQUEST['UserName'], $_REQUEST['UserPassword']);
    }
    //Bejelentkezés
    if (!isset($output)) {
        $output = '';
    }
    $content = '
	<title>HRN - HR Tech Congress</title>
	<!--Include Admin styles-->
	  <link href="css/admin_general.css" rel="stylesheet">
	  <link href="css/admin_login.css" rel="stylesheet">
	<!--Include Font Awesome -->
      <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
	</head>
	<body>
	
	<!--Main Wrapper-->
	<div class="wrapper">
	  <h1 class="WrapperMainH1">HRN - World Congress Site <br/ > Log in</h1>
	  
	  <p class="WelcomeTexT">Welcome to the World Congress Admin site of <br> HRN</p>
	<!--Form container-->
	 <div id="container">
Exemplo n.º 2
0
<?php

namespace HRNParis\siteauth;

require_once 'controllers/siteauth.php';
if (isset($_SESSION['user'])) {
    $auth = new siteauth();
    $output = $auth->logout();
}
?>
 <?php