⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 priv_xml.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

session_start( );
include_once( "inc/conn.php" );
include_once( "inc/xtree_xml.inc.php" );
include_once( "inc/utility_all.php" );
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
header( "Content-Type: text/xml" );
$pararr = explodestpar( $_REQUEST['par'] );
$userpriv = $pararr['userpriv'];
if ( $userpriv == "" )
{
	exit( );
}
$privurl_fix = "?";
$userurl_fix = "?";
if ( 0 < strpos( $pararr['priv_url'], "?" ) )
{
	$privurl_fix = "&";
}
if ( 0 < strpos( $pararr['user_url'], "?" ) )
{
	$userurl_fix = "&";
}
$xtreeXml = new xtreexml( );
$xtreeXml->initxml( );
if ( $pararr['view_type'] == 0 )
{
	unset( $deptnameutf8 );
	unset( $action );
	unset( $src );
	unset( $target );
	unset( $icon );
	$usql = "\r\n\t\t\tSELECT * FROM USER,USER_PRIV \r\n\t\t\t\tWHERE USER.USER_PRIV=".$userpriv." \r\n\t\t\t\tAND USER.USER_PRIV=USER_PRIV.USER_PRIV \r\n\t\t\t\tORDER BY PRIV_NO,USER_NAME\r\n\t\t\t";
	$urs = exequery( $connection, $usql );
	while ( $urow = mysql_fetch_array( $urs ) )
	{
		$userid = $urow['USER_ID'];
		$useridutf8 = iconv( "GB2312", "UTF-8", $userid );
		$username = $urow['USER_NAME'];
		$usernameutf8 = iconv( "GB2312", "UTF-8", $username );
		$pararr['userid'] = $userid;
		$par = implodestpar( $pararr );
		if ( $pararr['select_module'] )
		{
			$action = $pararr['user_url'].$userurl_fix."par=".$par;
		}
		else
		{
			$action = $pararr['user_url'].$userurl_fix."USER_ID=".$useridutf8;
		}
		$target = $pararr['target_frame'];
		$icon = "/images/xloadtree/member.gif";
		$xtreeXml->creatitem( $usernameutf8, $action, $src, $target, $icon );
	}
}
$xtreeXml->endxml( );
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -