getuserinfo 加密 php,getUserInfo.php

if (!isset($_SESSION)) {

session_start();

}

if (!function_exists("GetSQLValueString")) {

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

if (PHP_VERSION < 6) {

$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {

case "text":

$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

break;

case "long":

case "int":

$theValue = ($theValue != "") ? intval($theValue) : "NULL";

break;

case "double":

$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";

break;

case "date":

$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

break;

case "defined":

$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;

break;

}

return $theValue;

}

}

$colname_rsUser1 = '20161021';

if(isset($_SESSION['MM_Username']))

$colname_rsUser1=$_SESSION['MM_Username'];

mysql_query('SET NAMES UTF8');

mysql_select_db($database_connjxkh, $connjxkh);

$query_rsUser = sprintf("SELECT UserInfo.Account, UserInfo.UserID, UserInfo.UserName, UserInfo.Photo, DeptInfo.DeptName, LevelInfo.LevelName FROM DeptInfo, LevelInfo, UserInfo WHERE UserInfo.DeptID=DeptInfo.DeptID AND LevelInfo.LevelID=UserInfo.Rank and Account = %s ", GetSQLValueString($colname_rsUser1, "text"));

$rsUser = mysql_query($query_rsUser, $connjxkh) or die(mysql_error());

$row_rsUser= mysql_fetch_assoc($rsUser);

?>

河南城建学院干部考核系统--个人信息

我的信息

<?php%20echo%20%24row_rsUser%5B">

用户名:

<?php

echo $row_rsUser["Account"];

?>

真实姓名:

<?php

echo $row_rsUser["UserName"];

?>

部门:

<?php

echo $row_rsUser["DeptName"];

?>

职级:

<?php

echo $row_rsUser["LevelName"];

?>

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值