priv_xml.php
来自「泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5」· PHP 代码 · 共 61 行
PHP
61 行
<?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 + =
减小字号Ctrl + -
显示快捷键?