PHP User::checkIfAuth Examples

PHP User::checkIfAuth - 3 examples found. These are the top rated real world PHP examples of User::checkIfAuth extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
 public function actionIndex()
 {
     $uri = trim($_SERVER['REQUEST_URI'], '/');
     if (User::checkIfAuth()) {
         $userId = User::checkLogged()['id'];
         $userInfo = User::getUserById($userId);
     }
     require_once ROOT . '/views/index.php';
 }
Example #2
0
<?php

require_once ROOT . '/views/partials/head.php';
?>

<?php 
if (User::checkIfAuth()) {
    ?>
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 70px;">
            <div id="avatar_on_index" class="col-lg-3 col-md-4 col-sm-5 hidden-xs">
                <img src="<?php 
    echo User::getAvatar($_SESSION['user']['id']);
    ?>
"
                     class="img-rounded img-responsive" alt="Avatar">
            </div>
            <div class="col-lg-5 col-md-8 col-sm-7 col-xs-12">
                <h2 style="margin-top: 0">
                    <?php 
    echo $userInfo['last_name'] . ' ' . $userInfo['first_name'];
    ?>
                </h2>

                <div class="row">
                    <div class="user_info_block col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-5">
                            <h3>
                                <small>Ваш логин:</small>
                            </h3>
                        </div>
Example #3
0
<div class="col-lg-12 col-md-12 col-sm-12 col-lg-12">
    <div class="navbar-fixed-bottom  navbar-inverse container <?php 
if ($uri == '' && !User::checkIfAuth()) {
    echo 'animated slideInUp';
}
?>
" style="min-height: 50px;padding: 0;">
        <div class="text-center" style="margin: 20px;">
            <a class="navbar-brand" href="#" style="float: none;">footer</a>
        </div>
    </div>
</div>

<!-- End of container -->
</div>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="/public/js/myAngular.js"></script>
<!-- <script src="/public/js/bootstrap-datepicker.min.js"></script> -->
<script src="/public/js/jquery.imgareaselect.pack.js"></script>
<script src="/public/js/jquery.mask.js"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<!--
<script>
    $('.datepicker').datepicker({
        format: 'yyyy/mm/dd',
        startDate: '-3d'
    })