<div class="home">
<div class="container">
  <div class="row">

    <div class="main">
    <?php
      switch($_SESSION['error'])
      {
        case 1: echo('<p class="error"><b>'.getLanguage(40, 1).'</b>'.getLanguage(285, 1).'</p>
          <form method="post" action="account/login" id="RestableForm">
          <input type="submit" name="reactive" value="'.getLanguage(106, 1).'" class="btn btn-success">
          </form>'); break;
        case 2: echo('<p class="error"><b>'.getLanguage(40, 1).'</b>'.getLanguage(286, 1).'</p>'); break;
        case 3: echo('<p class="error"><b>'.getLanguage(40, 1).'</b>'.getLanguage(287, 1).'</p>'); break;
        case 10: echo('<p class="error">'.getLanguage(863, 1).'</p>'); break;
      }
        unset($_SESSION['error']);
    ?>

      <h1 class="homeh1"><?php echo SITE_NAME; ?></h1>
        <p><?php getLanguage(2)?></p>
      <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
          <?php
            $client_id = FB_ID; // YOUR Client ID
            $client_secret = FB_SECRET; // YOUR Client secret
            $redirect_uri = 'http://'.SITE_DOMAIN.'/core/modules/auth.php';
            $url = 'https://www.facebook.com/dialog/oauth';
            $params = array(
                'client_id'     => $client_id,
                'redirect_uri'  => $redirect_uri,
                'response_type' => 'code',
                'scope'         => 'email,user_birthday'
            );
            echo $link = '<a class="btn btn-lg btn-primary btn-block" href="' . $url . '?' . urldecode(http_build_query($params)) . '" style="color:#fff">Facebook</a>';
          ?>
        </div>
      </div>
      <div class="login-or">
        <hr class="hr-or">
        <span class="span-or"><?php getLanguage(221)?></span>
      </div>

      <form method="post" action="account/login" id="loginForm" onSubmit="return checkLoginForm()">
        <div class="form-group">
          <label for="inputUsernameEmail"><?php getLanguage(4)?></label>
          <input type="text" class="form-control" id="inputUsernameEmail" name="user_name" maxlength="32">
        </div>
        <div class="form-group">
          <a class="pull-right" href="account/forgotpassword"><?php getLanguage(292)?></a>
          <label for="inputPassword"><?php getLanguage(5)?></label>
          <input type="password" class="form-control" id="inputPassword" name="password">
        </div>
        <button type="submit" class="btn btn btn-primary" name="submit" id="loginSubmit">
          <?php getLanguage(14)?>
        </button>
         or <a href="account/signup"><?php getLanguage(13)?></a>
      </form>
    
    </div>
    
  </div>
</div> 
</div>