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

PHP userLogin函数代码示例

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

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



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

示例1: loginFunctions

function loginFunctions()
{
    global $dbc;
    $response = array();
    if (isset($_POST['email'], $_POST['password'])) {
        $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
        $email = filter_var($email, FILTER_VALIDATE_EMAIL);
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            $errors[] = 'Invalid Email Address';
        }
        $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);
        if (strlen($password) != 128) {
            $errors[] = 'Invalid password configuration.	';
        }
    }
    if (isset($_POST['firstName'], $_POST['lastName'])) {
        $firstName = filter_input(INPUT_POST, 'firstName', FILTER_SANITIZE_STRING);
        $lastName = filter_input(INPUT_POST, 'lastName', FILTER_SANITIZE_STRING);
    }
    if (empty($errors)) {
        if ($_POST['call'] == 'login') {
            $response = userLogin($email, $password);
        } else {
            $response = userSignup($firstName, $lastName, $email, $password);
        }
    } else {
        $response['success'] = false;
        $response['errors'] = $errors;
    }
    echo json_encode($response);
}
开发者ID:jusmark123,项目名称:xcp-dev,代码行数:31,代码来源:ajax.php


示例2: authenticate

function authenticate()
{
    global $db, $authRealm, $style;
    $rmt = $authRealm != false;
    $extAuth = externalAuth();
    if (!$rmt || $extAuth === false) {
        // built-in authentication attempt
        if (empty($_REQUEST['u']) || !isset($_POST['p'])) {
            // simple logout
            return false;
        }
        $authData = array("user" => $_REQUEST['u'], "pass" => $_POST['p'], "email" => false);
    } else {
        // external authentication
        if (isset($_REQUEST['u']) && empty($_REQUEST['u'])) {
            // remote logout
            header('HTTP/1.0 401 Unauthorized');
            header('WWW-Authenticate: Basic realm="' . $authRealm . '"');
            includeTemplate("{$style}/include/rmtlogout.php");
            return null;
        }
        $authData = $extAuth;
    }
    // verify if we have administration rights
    $DATA = userLogin($authData["user"], $authData["pass"], $rmt, $authData["email"]);
    // check if the external authenticator provides an email address
    if ($DATA !== false && empty($DATA["email"])) {
        $DATA['email'] = $authData["email"];
    }
    return $DATA;
}
开发者ID:dg-wfk,项目名称:dl,代码行数:31,代码来源:sessauth.php


示例3: LoginAPI

function LoginAPI($databasename, $user, $password)
{
    global $PathPrefix;
    // For included files
    include '../config.php';
    // Include now for the error code values.
    include '../includes/UserLogin.php';
    /* Login checking and setup */
    $RetCode = array();
    // Return result.
    if (!isset($_SESSION['DatabaseName']) or $_SESSION['DatabaseName'] == '') {
        // Establish the database connection for this session.
        $_SESSION['DatabaseName'] = $databasename;
        /* Drag in the code to connect to the DB, and some other
         * functions.  If the connection is established, the
         * variable $db will be set as the DB connection id.
         * NOTE:  This is needed here, as the api_session.inc file
         * does NOT include this if there is no database name set.
         */
        include '../includes/ConnectDB.inc';
        //  Need to ensure we have a connection.
        if (!isset($db)) {
            $RetCode[0] = NoAuthorisation;
            $RetCode[1] = UL_CONFIGERR;
            return $RetCode;
        }
        $_SESSION['db'] = $db;
        // Set in above include
    }
    $rc = userLogin($user, $password, $_SESSION['db']);
    switch ($rc) {
        case UL_OK:
            $RetCode[0] = 0;
            // All is well
            DoSetup();
            // Additional setting up
            break;
        case UL_NOTVALID:
        case UL_BLOCKED:
        case UL_CONFIGERR:
        case UL_SHOWLOGIN:
            //  Following not in use at 18 Nov 09.
        //  Following not in use at 18 Nov 09.
        case UL_MAINTENANCE:
            /*  Just return an error for now */
            $RetCode[0] = NoAuthorisation;
            $RetCode[1] = $rc;
            break;
    }
    return $RetCode;
}
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:51,代码来源:api_login.php


示例4: md5

    if (mb_strlen($pwdNew, 'UTF8') < 4 || mb_strlen($pwdNew, 'UTF8') > 16) {
        return 'bad.密码长度应在4-16字符之间';
        exit;
    }
    if (md5($pwdInput . "sdshare") != $pwdNow) {
        return 'bad.原密码错误';
        exit;
    }
    $pwdNew = md5($pwdNew . "sdshare");
    $sql = "UPDATE `sd_users` SET `pwd` = '{$pwdNew}' WHERE `uid` = {$userId}";
    mysqli_query($con, $sql);
    return 'ok.密码修改成功';
}
switch ($action) {
    case 'login':
        print_r(userLogin($_POST['username'], $_POST['password'], $con));
        break;
    case 'register':
        print_r(userReg($_POST['username-reg'], $_POST['password-reg'], $con));
        break;
    case 'delshare':
        print_r(delShare($_POST['key'], $con, $userInfo['uid']));
        break;
    case 'delshares':
        print_r(delShareS($_POST['key'], $con, $userInfo['uid']));
        break;
    case 'changepwd':
        print_r(changePwd($_POST['pwd'], $con, $userInfo['pwd'], $_POST['pwdnow'], $userInfo['uid']));
        break;
    default:
        # code...
开发者ID:qinmenghua,项目名称:shudong-share,代码行数:31,代码来源:userAction.php


示例5: userLogin

<?php

include "incl/config.php";
$pageId = "login";
// Check if the url contains a querystring with a page-part.
$p = null;
if (isset($_GET["p"])) {
    $p = $_GET["p"];
}
// Is the action a known action?
$content = null;
$output = null;
if ($p == "login") {
    $title = "Logga in";
    $content = userLogin();
} else {
    if ($p == "logout") {
        $title = "Logga ut";
        $content = userLogout();
    } else {
        $title = "Status login / logout";
    }
}
?>


<?php 
include "incl/header.php";
?>
<div id="content">
    <div class="left borderRight width80"">
开发者ID:bex1,项目名称:MePage,代码行数:31,代码来源:login.php


示例6: login

/**
 * Logs a user in.
 *
 * @param string $username
 * @param string $password
 * @return User or Error
 */
function login($username, $password)
{
    global $CFG;
    if ($password == "" || $username == "") {
        $ERROR = new Error();
        $ERROR->createLoginFailedError();
        return $ERROR;
    }
    $user = userLogin($username, $password);
    if ($user instanceof Error) {
        return $user;
    } else {
        if ($user instanceof User) {
            $user->setPHPSessID(session_id());
            return $user;
        } else {
            $ERROR = new Error();
            return $ERROR->createLoginFailedError();
        }
    }
}
开发者ID:uniteddiversity,项目名称:LiteMap,代码行数:28,代码来源:apilib.php


示例7: ini_set

<?php

//Session management
ini_set("session.cookie_secure", 0);
session_start();
if (empty($_SESSION['token'])) {
    $_SESSION['token'] = base64_encode(mcrypt_create_iv(8, MCRYPT_DEV_URANDOM));
}
if (!empty($_POST['action']) and isEqual($_POST['action'], "login") and !empty($_POST['username']) and !empty($_POST['password']) and !empty($_POST['CRSFtoken'])) {
    $user = userLogin($file_db, $_POST['username'], $_POST['password'], $_POST['CRSFtoken']);
    error_log($user);
} elseif (isLoged()) {
    $user = userInfo($file_db, $_SESSION['userId']);
}
开发者ID:EcrituresNumeriques,项目名称:Lightium,代码行数:14,代码来源:session.php


示例8: checkLoginExternalAuth

function checkLoginExternalAuth($uid = "", $userPassword = "")
{
    global $userDn_rz, $userDN, $suffix, $suffix_ext, $ldapError, $standpwd;
    # Abfrage, ob das Loginformular Daten enthält
    if (!($uid == "" || $userPassword == "")) {
        # UID und Passwort wurden eingegeben
        # Fallunterscheidung welche Logins möglich sind
        if ($ds_rz = rzLdapConnect($uid, $userPassword)) {
            # RZ-LDAP-Login erfolgreich,
            # -> Mache Datenabgleich und anschließenden Login am LSM-LDAP
            datenabgleich($uid, $ds_rz);
            ldap_unbind($ds_rz);
            # echo "RZ Bind OK<br>";
            if (dummyUidCheck($uid)) {
                userLogin($uid, $standpwd);
            } else {
                # Nachricht User melden bei ... d.h. von Hand anlegen zur Kontrolle
                #userAnlegen($uid,$userPassword,$ds_rz);
                ldap_unbind($ds_rz);
                redirect(3, "index.php", "<h3>Benutzer lokal nicht angelegt!<h3>" . $ldapError, FALSE);
                die;
            }
        } elseif (!($ds_rz = rzLdapConnect($uid, $userPassword)) && ($ds = uniLdapConnect($uid, $userPassword))) {
            # RZ-LDAP-Login nicht erfolgreich, LSM-LDAP-Login erfolgreich,
            # -> User nicht in RZ-LDAP gespeichert.
            # -> Login am LSM-LDAP (z.B. für lokale Spezialuser ... )
            # echo "RZ Bind FAILED / LSM Bind OK<br>";
            ldap_unbind($ds);
            userLogin($uid, $userPassword);
        } else {
            # In anderen Fällen waren die Zugangsdaten nicht korrekt.
            # -> Redirect auf index.php.
            redirect(3, "index.php", "<h3>Bitte geben Sie korrekte Zugangsdaten ein.<h3>" . $ldapError, FALSE);
            die;
        }
    } else {
        # UID und/oder Passwort wurden NICHT eingegeben
        redirect(3, "index.php", "<h3>Bitte geben Sie User-Id und Passwort ein.</h3>" . $ldapError, FALSE);
        die;
    }
}
开发者ID:BackupTheBerlios,项目名称:openslx-svn,代码行数:41,代码来源:login_sicher.php


示例9: array

     $types = array();
     $changes = getFormChanges($dbUser, $_REQUEST['newUser'], $types);
     if ($_REQUEST['newUser']['Password']) {
         $changes['Password'] = "Password = password(" . dbEscape($_REQUEST['newUser']['Password']) . ")";
     } else {
         unset($changes['Password']);
     }
     if (count($changes)) {
         if (!empty($_REQUEST['uid'])) {
             dbQuery("update Users set " . implode(", ", $changes) . " where Id = ?", array($_REQUEST['uid']));
         } else {
             dbQuery("insert into Users set " . implode(", ", $changes));
         }
         $refreshParent = true;
         if ($dbUser['Username'] == $user['Username']) {
             userLogin($dbUser['Username'], $dbUser['Password']);
         }
     }
     $view = 'none';
 } elseif ($action == "state") {
     if (!empty($_REQUEST['runState'])) {
         //if ( $cookies ) session_write_close();
         packageControl($_REQUEST['runState']);
         $refreshParent = true;
     }
 } elseif ($action == "save") {
     if (!empty($_REQUEST['runState']) || !empty($_REQUEST['newState'])) {
         $sql = "select Id,Function,Enabled from Monitors order by Id";
         $definitions = array();
         foreach (dbFetchAll($sql) as $monitor) {
             $definitions[] = $monitor['Id'] . ":" . $monitor['Function'] . ":" . $monitor['Enabled'];
开发者ID:ralfoide,项目名称:ZoneMinder,代码行数:31,代码来源:actions.php


示例10: externalAuth

    $extAuth = externalAuth();
    $authData = httpBasicDecode($_SERVER['HTTP_X_AUTHORIZATION']);
    if ($rmt || $extAuth !== false) {
        // enforce double auth/consistency when using remote authentication
        if ($authData === false || $extAuth === false || $authData["user"] !== $extAuth["user"] || $extAuth["pass"] !== false && $authData["pass"] !== $extAuth["pass"]) {
            logError('inconsistent double authorization token');
            unset($authData);
        }
    }
}
if (isset($authData)) {
    if (empty($authData["user"]) || !$rmt && empty($authData["pass"])) {
        logError('missing credentials');
        httpUnauthorized();
    }
    $auth = userLogin($authData["user"], $authData["pass"], $rmt);
    unset($authData);
}
if (empty($auth)) {
    logError('invalid credentials');
    httpUnauthorized();
}
// action
$args = explode("/", $_SERVER["PATH_INFO"]);
if ($args[0] !== "" || count($args) < 2 || !isset($rest[$args[1]])) {
    logError('unknown request action or arguments');
    httpNotFound();
}
$act = strtolower($args[1]);
array_splice($args, 0, 2);
if ($rest[$act]['admin'] && !$auth['admin']) {
开发者ID:dg-wfk,项目名称:dl,代码行数:31,代码来源:rest.php


示例11: htmlspecialchars

<?php

require "init.php";
require_once 'CamsDatabase.php';
require_once 'users.php';
if (!empty($_POST)) {
    $username = htmlspecialchars($_POST['userid']);
    $password = htmlspecialchars($_POST['password']);
    if (empty($username) || empty($password)) {
        $_SESSION["login_error"] = 'User Name and Password cannot be blank';
    } else {
        if (!userExists($username)) {
            $_SESSION["login_error"] = 'User Does not exist.';
        } else {
            $user = userLogin($username, $password);
            if (!$user) {
                $_SESSION["login_error"] = 'incorrect password';
            } else {
                $_SESSION['FirstName'] = $user['FirstName'];
                $_SESSION['LastName'] = $user['LastName'];
                $_SESSION['userid'] = $user['userid'];
                $_SESSION['Email'] = $user['Email'];
                $_SESSION['Empno'] = $user['Empno'];
                $_SESSION['Phone'] = $user['Phone'];
                $_SESSION['Role'] = $user['Role'];
                $_SESSION['Agy'] = $user['Agy'];
                $_SESSION['Dpt'] = $user['Dpt'];
            }
        }
    }
    header('Location: ../index.php');
开发者ID:urisk,项目名称:cssServiceRequests,代码行数:31,代码来源:login.php


示例12: elseif

    }
    return $msgStr;
}
//controllers start here
if (isset($_POST['sig_response'])) {
    if (function_exists('verifyDuoSign')) {
        if (!verifyDuoSign($_POST)) {
            $_GET['errorMsg'] = "duoFailed";
        }
    }
} elseif (!empty($_GET['passlink'])) {
    verifyPasscode($_GET['passlink'], 'link');
} elseif (!empty($_POST['passcode'])) {
    verifyPasscode($_POST);
} elseif (!empty($_POST['email']) && !empty($_POST['password'])) {
    userLogin($_POST);
} elseif (!empty($_GET['logout'])) {
    userLogout(true);
} elseif (!empty($_POST['action']) && ($_POST['action'] == 'resetPasswordSendMail' || $_POST['action'] == 'resetPasswordChange')) {
    userLoginResetPassword($_POST);
} elseif (!empty($_GET['view']) && $_GET['view'] == 'resetPasswordChange') {
    userLoginResetPassword($_GET);
}
//controllers ends here
$min = '.min';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex">
开发者ID:Trideon,项目名称:gigolo,代码行数:31,代码来源:login.php


示例13: cleanInput

<?php

$loggedin = FALSE;
if (isset($_POST['user']) && isset($_POST['pass'])) {
    $user = cleanInput($_POST['user']);
    $pass = md5(cleanInput($_POST['pass']));
    //echo $_POST['pass'] . "<br />";
    //echo $pass . "<br />";
    $userinfo = userLogin($user, $pass);
    if ($userinfo[0] != 0) {
        $_SESSION['uid'] = $userinfo[0];
        $_SESSION['uname'] = $userinfo[1];
    } else {
        $_SESSION['uid'] = 0;
        $_SESSION['uname'] = "";
        echo "Wrong Username or Password";
    }
    //echo "Hello, " . $_POST["verified_user"];
}
if ($_SESSION['uid'] == 0) {
    echo "<form name=\"input\" action=\"/index.php\" method=\"post\">\n";
    echo "<table>\n";
    echo "\t<tr>\n";
    echo "\t\t<td>Username:</td><td><input type=\"text\" name=\"user\" /></td>\n";
    echo "\t</tr>\n";
    echo "\t<tr>\n";
    echo "\t\t<td>Password:</td><td><input type=\"password\" name=\"pass\" /></td>\n";
    echo "\t</tr>\n";
    echo "\t<tr>\n";
    echo "\t\t<td></td><td><input type=\"submit\" value=\"Submit\" /></td>\n";
    echo "\t</tr>\n";
开发者ID:jacksinn,项目名称:opengame,代码行数:31,代码来源:login.php


示例14: userCheck

function userCheck($user, $pass)
{
    return userLogin($user, $pass, false);
}
开发者ID:dg-wfk,项目名称:dl,代码行数:4,代码来源:admfuncs.php


示例15: password_hash

            if (!$new_user_name) {
                // Encrypt the user's password.
                $user_password = password_hash($_POST['password'], PASSWORD_DEFAULT) . "";
                // Insert a new row for the newly-registered user.
                $database->insert("users2", ["email" => $_POST['email'], "password" => $user_password, "name" => $_POST['name'], "created_at" => date("Y-m-d H:i:s"), "ip" => $_SERVER['REMOTE_ADDR']]);
                // $database->error();
                // echo $database->last_query();
                $new_user_data = $database->get("users2", ["name", "email"], ["email" => $_POST['email']]);
                $new_user_name = $new_user_data['name'];
                if ($new_user_name) {
                    echo 'Hey, thanks for registering, ' . $_POST['name'] . '! <a href="/?a=dash">Proceeding to dashboard now...</a>';
                } else {
                    echo '<br> <font color="red">Oh jeez.</font> You were not registered for some reason. SQL problem? form data: <br>';
                    // print_r($_POST);
                }
                userLogin($_POST['email']);
            } else {
                echo 'It seems you are already registered. Have you forgotten your password? <a href="/?a=forgotten">Reset it.</a>';
            }
        } else {
            // Show form if no submission
            echo '
			<form method="POST" action="?a=register">
			  <input type="text" required name="name" placeholder="Your name" /> <br>
			  <input type="text" required name="email" placeholder="Email" /> <br>
			  <input type="password" required name="password" placeholder="Password" /> <br>
			  <button type="submit">Submit</button>
			</form>
			  ';
        }
        break;
开发者ID:alijaffar,项目名称:PHP-Login-Framework,代码行数:31,代码来源:index.php


示例16: session_name

<?php

session_name('fabian');
session_start();
define('site', 1);
$appResponse = array('response' => false, 'message' => 'Error en la App', 'content' => '');
if (isset($_POST) && !empty($_POST) && isset($_POST['action'])) {
    include_once 'functions.php';
    if ($errorDb == false) {
        switch ($_POST['action']) {
            case 'login':
                $appResponse['response'] = userLogin($_POST, $mysqli);
                $appResponse['message'] = '';
                break;
            default:
                $appResponse['message'] = 'Opción incorrecta';
                break;
        }
    } else {
        $appResponse['message'] = 'Error al conectar con la base de datos';
    }
} else {
    $appResponse['message'] = 'Opción incorrecta';
}
echo json_encode($appResponse);
开发者ID:fabianVeliz,项目名称:php-login,代码行数:25,代码来源:app_response.php


示例17: header

if (isset($USER->userid)) {
    header('Location: ' . $CFG->homeAddress . 'index.php');
    return;
}
$errors = array();
$ref = optional_param("ref", $CFG->homeAddress . "index.php", PARAM_URL);
if ($ref == "") {
    $ref = "http" . (!empty($_SERVER["HTTPS"]) ? "s" : "") . "://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    //$ref = $CFG->homeAddress."index.php";
}
$revalidateEmail = false;
// check to see if form submitted
if (isset($_POST["login"])) {
    $email = required_param("username", PARAM_TEXT);
    $password = required_param("password", PARAM_TEXT);
    $user = userLogin($email, $password);
    if ($user instanceof Error) {
        $error = $user;
        array_push($errors, $error->message);
        if ($error->code == $LNG->ERROR_LOGIN_FAILED_UNVALIDATED_MESSAGE) {
            $revalidateEmail = true;
        }
    } else {
        if ($user instanceof User) {
            if (strlen($password) < 8) {
                header('Location: ' . $CFG->homeAddress . '/ui/pages/changepassword.php?update=y');
            } else {
                header('Location: ' . $ref);
            }
        } else {
            // should never happen
开发者ID:uniteddiversity,项目名称:DebateHub,代码行数:31,代码来源:login.php


示例18: session_start

    $resource = "0";
}
// session initilization
session_start();
include_once "conf.inc.php";
// Routing
// ***************************************************************************
if ($resource != true) {
    if (isset($_GET['relay'])) {
        $_POST['relay'] = $_GET['relay'];
    }
    if (isset($_POST['relay'])) {
        switch ($_POST['relay']) {
            case "userLogin":
                if (isset($_POST['username'], $_POST['password'])) {
                    userLogin($_POST['username'], $_POST['password']);
                } else {
                    error("username and password are both required");
                }
                break;
            case "userLogoff":
                userLogoff();
                break;
            case "checkLogin":
                checkLogin();
                break;
            case "regenerateThumbs":
                regenerateThumbs();
                break;
            case "search":
                if (isset($_POST['terms'])) {
开发者ID:kkappel,项目名称:relay,代码行数:31,代码来源:relay.php


示例19: pg_connect

$credentials = "user=eventos password=12345678";
$db = pg_connect("{$host} {$port} {$dbname} {$credentials}");
if (!$db) {
    $result['success'] = 'false';
    $result['error'] = 'Cannot open db connection';
    echo json_encode($result);
} else {
    if ($_SERVER['REQUEST_METHOD'] == 'GET') {
        if (isset($_GET['selector'])) {
            $selector = $_GET['selector'];
            switch ($selector) {
                case 2:
                    if (isset($_GET['email']) && isset($_GET['password'])) {
                        $email = $_GET['email'];
                        $password = $_GET['password'];
                        userLogin($selector, $email, $password, $db);
                    } else {
                        $result['success'] = 'false';
                        $result['error'] = 'Missing Paramters';
                        echo json_encode($result);
                    }
                    break;
                case 4:
                    if (isset($_REQUEST['userid'])) {
                        displaygeofence($_REQUEST['userid'], $db);
                    } else {
                        $result['success'] = 'false';
                        $result['error'] = 'Invalid or missing UserId';
                        echo json_encode($result);
                    }
                    break;
开发者ID:kirtiraman,项目名称:geofenceTest,代码行数:31,代码来源:index.php


示例20: session_start

<?php

session_start();
include "dbconnection.php";
$email = clean($_REQUEST['email']);
$password = clean(md5($_REQUEST['password']));
$result = userLogin($email, $password);
$row = mysql_fetch_array($result);
$loginuser = $row['email'];
$loginpassword = $row['password'];
$fullname = $row['name'];
$userId = $row['user_id'];
$user_image = $row['userimages'];
$user_name = $row['user_name'];
if ($loginuser == $email and $loginpassword == $password) {
    $_SESSION['name'] = $fullname;
    $_SESSION['email'] = $loginuser;
    $_SESSION['password'] = $loginpassword;
    $_SESSION['fullname'] = $fullname;
    $_SESSION['user_id'] = $userId;
    $_SESSION['user_image'] = $user_image;
    $_SESSION['user_name'] = $user_name;
    header("location:mom-forum-user-profile");
    if (isset($_REQUEST['rememberme'])) {
        header("location:mom-forum-user-profile");
        setcookie("email", $_SESSION['email'], time() + 60 * 60 * 24 * 100, "/");
        setcookie("password", $_REQUEST['password'], time() + 60 * 60 * 24 * 100, "/");
        setcookie($_COOKIE['email'], $_COOKIE['password'], $expire);
    }
} else {
    if ($user_name == $email and $loginpassword == $password) {
开发者ID:azeemgolive,项目名称:thefunkidsgame,代码行数:31,代码来源:dologin.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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