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


PHP UserClass::getID方法代码示例

本文整理汇总了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 */
开发者ID:Ethennoob,项目名称:Web,代码行数:31,代码来源:userProfile.php

示例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{
开发者ID:robertatakenaka,项目名称:Proceedings,代码行数:31,代码来源:loginScielo.php

示例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
开发者ID:robertatakenaka,项目名称:Proceedings,代码行数:31,代码来源:user.php

示例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 */
开发者ID:Ethennoob,项目名称:Web,代码行数:31,代码来源:userData.php

示例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,"/");
开发者ID:robertatakenaka,项目名称:Proceedings,代码行数:31,代码来源:login.php

示例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>
开发者ID:robertatakenaka,项目名称:Proceedings,代码行数:30,代码来源:userProfile.php


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