本文整理汇总了PHP中UserClass::getID方法的典型用法代码示例。如果您正苦于以下问题:PHP UserClass::getID方法的具体用法?PHP UserClass::getID怎么用?PHP UserClass::getID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserClass
的用法示例。
在下文中一共展示了UserClass::getID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
$usr->loadUser($_COOKIE['userToken']);
} else {
$usr->loadUser($_COOKIE['userID']);
}
$profiles = $usr->getProfiles();
}
break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
<?php
if ($usr->getID() != 0) {
echo UPDATE_USER_TITLE;
} else {
echo REGISTER_NEW_USER_TITLE;
}
?>
</title>
<?php
require_once dirname(__FILE__) . "/../../../php/head.php";
?>
<script language="JavaScript" src="../js/validator.js"></script>
<style>
/* classes for validator */
示例2: UserClass
{
$acao = $_REQUEST['acao'];
$usr = new UserClass();
if(isset($acao))
{
$login_error = 0;
$login = $_REQUEST['login'];
$senha = $_REQUEST['password'];
$usr->setLogin($login);
$usr->setPassword($senha);
$userValid = $usr->validateUser();
if($userValid == 1)
{
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
setcookie("userID",$usr->getID(),time()+3600,"/");
setcookie("firstName",$usr->getFirstName(),time()+3600,"/");
setcookie("lastName",$usr->getlastName(),time()+3600,"/");
if($useSGU){
setcookie("userToken",$usr->getToken(),time()+3600,"/");
setcookie("tokenVisit",$usr->getVisitToken(),time()+3600,"/");
}
$result = "userID=".$usr->getID()."&firstName=".$usr->getfirstName()."&lastName=".$usr->getlastName()."&lng=".$lang."&tlng=".$lang."&lang=".$lang."&userToken=".$usr->getToken()."&tokenVisit=".$usr->getVisitToken();
if(strpos($origem,"?"))
{
$redirectCommand = "Location: ".$origem."&".$result;
}
else{
示例3:
$usr->loadUser($_COOKIE['userToken']);
}else{
$usr->loadUser($_COOKIE['userID']);
}
$profiles = $usr->getProfiles();
}
break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
<?
if($usr->getID() != 0)
echo UPDATE_USER_TITLE;
else
echo REGISTER_NEW_USER_TITLE;
?>
</title>
<? require_once(dirname(__FILE__)."/../../../php/head.php"); ?>
<script language="JavaScript" src="../js/validator.js"></script>
<style>
/* classes for validator */
.tfvHighlight
{font-weight: bold; color: red; display:inline;}
.tfvNormal
示例4: dirname
if ($useSGU) {
$usr->loadUser($_COOKIE['userToken']);
} else {
$usr->loadUser($_COOKIE['userID']);
}
}
break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
<?php
if ($usr->getID() != 0) {
echo UPDATE_USER_TITLE;
} else {
echo REGISTER_NEW_USER_TITLE;
}
?>
</title>
<?php
require_once dirname(__FILE__) . "/../../../php/head.php";
?>
<script language="JavaScript" src="../js/validator.js"></script>
<style>
/* classes for validator */
示例5:
if(isset($acao)){
if($regional){
$login = $_REQUEST['login'];
$senha = $_REQUEST['password'];
$usr->setLogin($login);
$usr->setPassword($senha);
$userValid = $usr->validateUser();
if($userValid == 1)
{
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
setcookie("userID",$usr->getID(),time()+3600,"/");
if($useSGU)
{
setcookie("userToken",$usr->getToken(),time()+3600,"/");
setcookie("tokenVisit",$usr->getVisitToken(),time()+3600,"/");
}
setcookie("firstName",$usr->getFirstName(),time()+3600,"/");
setcookie("lastName",$usr->getLastName(),time()+3600,"/");
session_write_close();
header("Location: ".$thisScielo);
}
else
{
setcookie("userID","-1",0,"/");
示例6:
$usr->loadUser($_COOKIE['userToken']);
} else {
$usr->loadUser($_COOKIE['userID']);
}
$profiles = $usr->getProfiles();
}
break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
<?
if($usr->getID() != 0)
{
echo UPDATE_USER_TITLE;
}
else
{
echo REGISTER_NEW_USER_TITLE;
}
?>
</title>
<? require_once(dirname(__FILE__)."/../../../php/head.php"); ?>
<script language="JavaScript" src="../js/validator.js"></script>