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

📄 coxmlhttp.php

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

include_once( "inc/global.inc" );
include_once( $GLOBALEL['root_lib']."Template.inc" );
include_once( $GLOBALEL['root_lib']."SymsDb.inc" );
include_once( "inc/common.inc" );
require_once( "include/index.inc" );
$term = true;
$msg = "";
while ( $term )
{
	echo $userid;
	if ( !isset( $edb ) || !is_object( $edb ) )
	{
		$edb = "";
		if ( !com_opendb( $edb, $GLOBALEL['db_debug'] ) )
		{
			$term = false;
			$error = "8600900000000001";
			break;
		}
	}
	if ( !isset( $_REQUEST['step'] ) )
	{
		$step = 1;
	}
	else
	{
		$step = $_REQUEST['step'];
	}
	if ( !( $step == 1 ) )
	{
		break;
	}
	class aminoacid
	{

		var $id;
		var $userid;

		function aminoacid( $aa )
		{
			foreach ( $aa as $k => $v )
			{
				$this->$k = $aa[$k];
			}
		}

		function getid( )
		{
			return $this->id;
		}

		function getuserid( )
		{
			return $this->userid;
		}

	}

	function readdatabase( )
	{
		$data = implode( "", file( "php://input" ) );
		$parser = xml_parser_create( );
		xml_parser_set_option( $parser, XML_OPTION_CASE_FOLDING, 0 );
		xml_parser_set_option( $parser, XML_OPTION_SKIP_WHITE, 1 );
		xml_parse_into_struct( $parser, $data, $values, $tags );
		xml_parser_free( $parser );
		foreach ( $tags as $key => $val )
		{
			if ( $key == "root" )
			{
				$molranges = $val;
				$i = 0;
				for ( ;	$i < count( $molranges );	$i += 2	)
				{
					$offset = $molranges[$i] + 1;
					$len = $molranges[$i + 1] - $offset;
					$tdb[] = parsemol( array_slice( $values, $offset, $len ) );
				}
			}
		}
		return $tdb;
	}
	function parsemol( $mvalues )
	{
		$i = 0;
		for ( ;	$i < count( $mvalues );	++$i	)
		{
			$mol[$mvalues[$i]['tag']] = $mvalues[$i]['value'];
		}
		return new aminoacid( $mol );
	}
	$db = readdatabase( );
	$temp = $db[0];
	$id = $temp->getid( );
	$userid = $temp->getuserid( );
	$parr['id'] = $id;
	$parr['userid'] = $userid;
	if ( dml_flag( $edb, $nd, $einfo, $parr ) )
	{
		break;
	}
	$term = false;
	$msg = $einfo;
	break;
}
if ( isset( $edb ) && is_object( $edb ) )
{
	@com_closedb( $edb, $term );
}
$fa = array( );
$fa['fh'] = "base.html";
$t = new template( $GLOBALEL['root_tpl'] );
while ( $term )
{
	break;
}
if ( !$term )
{
	$fa['fh_error'] = "error.html";
	$t->set_file( $fa );
	$t->set_var( "BODY_MAIN", "" );
	$t->set_var( "VAR_ERROR_MSG", com_addappendixhref( $msg ) );
	$t->parse( "BODY_ERROR", "fh_error" );
}
else
{
	$t->set_var( "BODY_ERROR", "" );
	$t->parse( "BODY_MAIN", "fh_main" );
}
$t->parse( "final_output", "fh" );
$t->p( "final_output" );
?>

⌨️ 快捷键说明

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