当前位置: 首页>>代码示例>>PHP>>正文


PHP Check::UserLogin方法代码示例

本文整理汇总了PHP中Check::UserLogin方法的典型用法代码示例。如果您正苦于以下问题:PHP Check::UserLogin方法的具体用法?PHP Check::UserLogin怎么用?PHP Check::UserLogin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Check的用法示例。


在下文中一共展示了Check::UserLogin方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: strtolower

                </li>
                <li class="username">
                    <span class="item">Olá, <?php 
    echo $user_name;
    ?>
 <?php 
    echo $user_lastname;
    ?>
</span>
                    <span class="item">Setor: <?php 
    echo strtolower($area_trabalho->area_title);
    ?>
</span>
                </li>
                <?php 
    if (Check::UserLogin(2)) {
        ?>
                    <li><a class="icon profile radius" title="Perfil" href="<?php 
        echo HOME;
        ?>
/admin/painel.php?exe=users/profile">Perfíl</a></li>
                    <li><a class="icon admin radius" title="Painel Admin" href="<?php 
        echo HOME;
        ?>
/admin/painel.php">Admin</a></li>
                <?php 
    } else {
        ?>
                    <li><a class="icon profile radius" title="Perfil" href="<?php 
        echo HOME;
        ?>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:header.inc.php

示例2:

    Register::addRegister("<script src='" . AGENDADIR . "/config/config.value.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/controller/home.ctrl.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/controller/setor.ctrl.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/controller/contato.ctrl.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/services/contatoAPI.services.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/services/setorAPI.services.js'></script>");
    Register::addRegister("<script src='" . AGENDADIR . "/controller/user.ctrl.js'></script>");
}
?>

<div ng-app="agenda">
    <?php 
if (Check::UserLogin(3)) {
    ?>
        <a href="<?php 
    echo HOME;
    ?>
/plugin/agenda/admin" title="Admin" class="btn btn-primary glyphicon glyphicon-cog" style="float: right;"></a>
        <a href="<?php 
    echo HOME;
    ?>
/plugin/agenda/" title="Lista telefonica" class="btn btn-danger glyphicon glyphicon-th" style="float: right;"></a>
        <?php 
}
if (!empty($Link->getLocal()[2]) && $Link->getLocal()[2] == "admin" && Check::UserLogin(3)) {
    include 'admin.php';
} else {
    include 'user.php';
}
?>
</div>
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:index.php

示例3: filter_input_array

<h1 id="form">Criar Solicitação de exames</h1>
<?php 
if (file_exists('include/fast-exames/_models/AdminExames.class.php')) {
    include_once 'include/fast-exames/_models/AdminExames.class.php';
}
$Dados = filter_input_array(INPUT_POST, FILTER_DEFAULT);
$AdminExames = new AdminExames();
$FeAcoes = new FeAcoes();
$WsSetor = new WsSetor();
$FeMaterial = new FeMaterial();
if (!empty($Dados)) {
    $Dados['ws_users_soli'] = Check::UserLogin()['user_id'];
    $Dados['ex_data_abertura'] = date('Y-m-d H:i:s');
    if ($AdminExames->ExeCreate($Dados)) {
        WSErro("Solicitação cadastrada com sucesso!", WS_ACCEPT);
        header("Location: " . FAST_INCLUDE . "admin/&exe=exames/update&examesId=" . $AdminExames->getResult() . "&create=true");
    } else {
        WSErro("Erro ao cadastrar solicitação!", WS_ERROR);
    }
}
?>
<form method="post" class="form">

    <div class="row bg-info">

        <div class="form-group col-md-8">
            <label>Descrição:</label>
            <input required="true" class="form-control" title="Descrição" type="text" name="ex_descricao" placeholder="Descrição" value="<?php 
echo $Dados['ex_descricao'];
?>
">
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:31,代码来源:create.php

示例4: elseif

<?php

if (!Check::UserLogin(2) || !isset($Link->getLocal()[2])) {
    include_once 'lista.php';
} else {
    if ($Link->getLocal()[2] === "upload") {
        include_once 'upload.php';
    } elseif ($Link->getLocal()[2] === "save") {
        include_once 'save.php';
    } else {
        header("Location: " . HOME . "/plugin/aniversarios&error=opcao");
    }
}
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:13,代码来源:index.php

示例5: Create

 private function Create()
 {
     $userlogin = Check::UserLogin() ? (object) Check::UserLogin() : null;
     $this->Data['faturista_id'] = $userlogin->user_id;
     $this->Data['glosa_date'] = date('Y-m-d');
     $this->Read->setThis((object) $this->Data);
     $this->Data['glosa_id'] = $this->Read->Execute()->insert() ? (int) $this->Read->Execute()->MaxFild("glosa_id") : null;
     echo json_encode((object) $this->Data);
 }
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:9,代码来源:AdminGlosa.class.php

示例6: Login

<?php

//Check::Manutencao($Link->getLocal());
include_once 'config.inc.php';
$Login = new Login(4);
?>
<header>
    <h1>Fast Exames</h1>
</header>

<?php 
if (Check::UserLogin(2) && !empty($Link->getLocal()[2]) && $Link->getLocal()[2] == "admin") {
    include __DIR__ . '/admin/index.php';
} elseif (Check::UserLogin(4)) {
    include __DIR__ . '/inc/user.php';
} elseif (Check::UserLogin(5)) {
    WSErro("<b>Área Restrita!</b> Você não tem permissão para acessar esta área.", WS_INFOR);
} else {
    $Login->CheckLogin();
    echo "<a class=\"btn btn-primary\" style=\"width: 200px; margin: 10px 0;\" href=\"/intranet/admin\" title=\"Login\" alt=\"admin\" >Login</a>";
    WSErro("<b>Área Restrita!</b> Efetue login para acessar.", WS_INFOR);
}
开发者ID:adrianosilvareis,项目名称:intranet,代码行数:22,代码来源:index.php


注:本文中的Check::UserLogin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。