<?php
	$acl=$_SESSION["acl"];
	if (strlen($acl)<1 || !strpos($acl,"<0012>")) {	//没有权限
		ob_clean();
		header("Location: ../accesserror.html");
		exit;
	}
?>


<?php
	$operator=$_REQUEST["operator"];
	if ($operator=="") {
		echo("<html><body><p align=center>必须先选择一个操作员！</p></body></html>");
		exit;
	}
?>


<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>操作响应</title>
</head>

<body background="../bkg.bmp">

<p align="center"><font size="5"><b>操作响应</b></font></p>
<hr color="#999966">

<?php
		$timestr=strftime("%Y-%m-%d %H:%M:%S");
		$operator=$_REQUEST["operator"];
		$db=mysql_pconnect(get_cfg_var("SIPSERVER"),get_cfg_var("SIPUSER"),get_cfg_var("SIPPWD")); 
		mysql_select_db(get_cfg_var("SIPDB"),$db);
		mysql_query( "delete from operators where operator='".$operator."'",$db );
		mysql_query( "insert into operation values('".$_SESSION["operator"]."','".$timestr."','删除操作员：".$operator."')",$db );
		mysql_close($db);
?>

<p align="center">操作员“<?php echo $operator; ?>”已被删除！</p>

<hr>
<p align="center">SIP酒店上网计费管理系统</p>
  <p align="center">作者：<b>深圳市飞沃软件有限公司</b></p>

</body>

</html>
