• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP isUserAuthenticated函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中isUserAuthenticated函数的典型用法代码示例。如果您正苦于以下问题:PHP isUserAuthenticated函数的具体用法?PHP isUserAuthenticated怎么用?PHP isUserAuthenticated使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: isUserAuthenticated

<?php

/**
 * Script to display switches
 *
 */
/* verify that user is authenticated! */
isUserAuthenticated();
/* get all unique switches */
$settings = getAllSettings();
/* get all selected fields for IP print */
$setFieldsTemp = getSelectedIPaddrFields();
/* format them to array! */
$setFields = explode(";", $setFieldsTemp);
?>



<h4><?php 
print _('Tools');
?>
</h4>
<ul class="nav nav-tabs nav-stacked nav-tools">
	<li <?php 
if ($_REQUEST['toolsId'] == "ipCalc") {
    print "class='active'";
}
?>
>
		<a href="tools/ipCalc/"><i class="icon-chevron-right pull-right icon-gray"></i> <?php 
print _('IP calculator');
开发者ID:krys1976,项目名称:phpipam-1,代码行数:31,代码来源:toolsMenu.php


示例2: _

require_once '../../functions/functions.php';
?>

<!-- header -->
<div class="pHeader"><?php 
print _("Select fields to export");
?>
</div>


<!-- content -->
<div class="pContent">

<?php 
/* verify that user is authenticated! */
isUserAuthenticated(false);
/* get all selected fields for IP print */
$setFieldsTemp = getSelectedIPaddrFields();
/* format them to array! */
$setFields = explode(";", $setFieldsTemp);
/* get all site settings */
$settings = getAllSettings();
# permissions
$permission = checkSubnetPermission($_POST['subnetId']);
if ($permission < 1) {
    die("<div class='alert alert-danger'>" . _('You cannot access this subnet') . "!</div>");
}
# print
print '<form id="selectExportFields">';
# table
print "\t<table class='table table-striped table-condensed'>";
开发者ID:kinhvan017,项目名称:phpipam,代码行数:31,代码来源:exportSelectFields.php


示例3: isUserAuthenticated

<?php

/*
 * Discover new hosts with ping
 *******************************/
/* required functions */
require_once '../../../functions/functions.php';
/* verify that user is logged in */
isUserAuthenticated(true);
/* filter input */
$_POST = filter_user_input($_POST, true, true, false);
/* subnet Id must be a integer */
if (!is_numeric($_POST['subnetId']) || $_POST['subnetId'] == 0) {
    die("<div class='alert alert-danger'>Invalid subnetId!</div>");
}
/* verify that user has write permissions for subnet */
$subnetPerm = checkSubnetPermission($_POST['subnetId']);
if ($subnetPerm < 2) {
    die('<div class="alert alert-danger">' . _('You do not have permissions to modify hosts in this subnet') . '!</div>');
}
# verify post
CheckReferrer();
# ok, lets get results form post array!
foreach ($_POST as $key => $line) {
    // IP address
    if (substr($key, 0, 2) == "ip") {
        $res[substr($key, 2)]['ip_addr'] = $line;
    }
    // description
    if (substr($key, 0, 11) == "description") {
        $res[substr($key, 11)]['description'] = $line;
开发者ID:kinhvan017,项目名称:phpipam,代码行数:31,代码来源:subnetScanDiscoveryPingResult.php


示例4: trim

        $message = $_GET['message'];
    }
}
if ($_SERVER['REQUEST_METHOD'] == "POST") {
    $emailid = trim($_POST['email']);
    $password = trim($_POST['password']);
    if (!empty($emailid) && !empty($password)) {
        //echo "</br> Not empty Fields";
        //----------------------------------
        if (emailValidation($emailid)) {
            //echo "</br> Valid email";
            //------------------------------
            if (isMailRegistered($emailid)) {
                //echo "</br> email Registered";
                //--------------------------
                if (isUserAuthenticated($emailid, $password)) {
                    //check if email and password is correct
                    /*Now we should Redirect to Home Page */
                    redirect("index.php");
                } else {
                    $message = "Wrong Password...</br>Please Try Again..!";
                }
            } else {
                $message = "Dear " . $emailid . "</br>Your Account Does Not Exist. Please Register";
            }
        } else {
            $message = "Invalid email";
        }
    } else {
        $message = "All Fields Are REQUIRED..!";
    }
开发者ID:pratsj9,项目名称:doct_forum,代码行数:31,代码来源:login.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP isUserID函数代码示例发布时间:2022-05-15
下一篇:
PHP isUserAdmin函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap