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

📄 delete_attach.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" );
include_once( "inc/utility_all.php" );
require_once( "include/main.inc" );
$term = true;
$msg = "";
while ( $term )
{
	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;
	}
	$parr['fileid'] = $_REQUEST['fileid'];
	$parr['filename'] = $_REQUEST['filename'];
	$id = $_REQUEST['id'];
	delete_attach( $parr['fileid'], $parr['filename'] );
	if ( dml_delware( $edb, $nd, $einfo, $parr ) )
	{
		break;
	}
	$term = false;
	$msg = $einfo;
	break;
}
if ( isset( $edb ) && is_object( $edb ) )
{
	@com_closedb( $edb, $term );
}
$fa = array( );
$fa['fh'] = "";
$t = new template( $GLOBALEL['root_tpl'] );
while ( $term )
{
	break;
}
if ( !$term )
{
	$fa['fh_error'] = "";
	$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" );
echo "<s";
echo "cript>\r\nlocation=\"main.php?step=3&id=";
echo $id;
echo "&OP=1&del=del\";\r\n</script>";
?>

⌨️ 快捷键说明

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