Пример #1
0
 public function ToGbaoPenEditInfo($CustomersProjectID = 0, $aim_cus = '')
 {
     if ($CustomersProjectID == 0) {
         return 0;
     }
     $CustProModule = new CustProModule();
     $CustProInfo = $CustProModule->GetOneInfoByKeyID($CustomersProjectID);
     if (empty($CustProInfo)) {
         return 0;
     }
     $CustomersModule = new CustomersModule();
     $CustomersInfo = $CustomersModule->GetOneInfoByKeyID($CustProInfo['CustomersID']);
     $TuUrl = GBAOPEN_DOMAIN . 'superadmin/agency_receive.php';
     $Md5Key = FENGXIN_MD5KEY;
     $ToString .= 'cus_name=' . $CustProInfo['G_name'];
     $ToString .= '&cus_company=' . $CustomersInfo['CompanyName'];
     $ToString .= '&cus_realName=' . $CustomersInfo['CustomersName'];
     $ToString .= '&cus_fax=' . $CustomersInfo['Fax'];
     $ToString .= '&cus_telphone=' . $CustomersInfo['Tel'];
     $ToString .= '&cus_email=' . $CustomersInfo['Email'];
     $ToString .= '&cus_address=' . $CustomersInfo['Address'];
     $ToString .= '&cus_endtime=' . strtotime($CustProInfo['EndTime']);
     $ToString .= '&cus_domain=' . $CustProInfo['G_domain'];
     if ($CustProInfo['ProjectPropertyID'] == 18) {
         $cus_banben = '基础版';
     }
     if ($CustProInfo['ProjectPropertyID'] == 59) {
         $cus_banben = '海报板';
     }
     $ToString .= '&cus_banben=' . $cus_banben;
     $ToString .= '&cus_status=' . $CustProInfo['status'];
     $ToString .= '&aim_cus=' . $aim_cus;
     $ToString .= '&Msg=' . md5($ToString . '&Md5Key=' . $Md5Key);
     $ReturnString = request_by_other($TuUrl, $ToString);
     $ReturnArray = GetReturnInfo($ReturnString);
     if ($ReturnArray['ResultCode'] == 1000 || $ReturnString == 1) {
         return 1;
     } else {
         return $ReturnArray['ErrorMessages'];
     }
 }
Пример #2
0
 public function GetCoupons()
 {
     if ($this->_GET['code']) {
         $code = $this->_GET['code'];
         $code = 'code=' . $code;
         if ($this->_GET['use']) {
             $code = '&use=1';
         }
         $url = 'http://121.43.151.102/tools/gbp.ashx';
         $Coupons = request_by_other($url, $code);
         die($Coupons);
     }
 }
Пример #3
0
 public function ToFengXinEditInfo($CustomersProjectID = 0)
 {
     if ($CustomersProjectID == 0) {
         return 0;
     }
     $CustProModule = new CustProModule();
     $CustProInfo = $CustProModule->GetOneInfoByKeyID($CustomersProjectID);
     if (empty($CustProInfo)) {
         return 0;
     }
     $CustomersModule = new CustomersModule();
     $CustomersInfo = $CustomersModule->GetOneInfoByKeyID($CustProInfo['CustomersID']);
     //从行业版获取功能信息
     $ProjectPropertyModule = new ProjectPropertyModule();
     $ProjectPropertyInfo = $ProjectPropertyModule->GetOneInfoByKeyID($CustProInfo['GongNeng']);
     //获取增值服务
     $CustFuwuModule = new CustFuwuModule();
     $CustFuwuList = $CustFuwuModule->GetAll('where CustomersProjectID = ' . $CustomersProjectID);
     $FuWuString = $ProjectPropertyInfo['MyFuWu'];
     foreach ($CustFuwuList as $Value) {
         $FuWuString = $FuWuString . ',' . $Value['FuWuID'];
     }
     $TuUrl = FENGXIN_DOMAIN . 'index.php?g=Api&m=Wxusers&a=index';
     $Md5Key = FENGXIN_MD5KEY;
     $ToString .= 'FengXinUserName='******'FengXinUserName'];
     $ToString .= '&WeiXinName=' . $CustProInfo['WeiXinName'];
     $ToString .= '&WeiXinID=' . $CustProInfo['WeiXinID'];
     $ToString .= '&WeiXinNO=' . $CustProInfo['WeiXinNO'];
     $ToString .= '&GongNeng=' . $FuWuString;
     $ToString .= '&StartTime=' . $CustProInfo['StartTime'];
     $ToString .= '&EndTime=' . $CustProInfo['EndTime'];
     $ToString .= '&Email=' . $CustomersInfo['Email'];
     $ToString .= '&MP=' . $CustomersInfo['MP'];
     $ToString .= '&status=' . $CustProInfo['status'];
     $ToString .= '&Msg=' . md5($ToString . '&Md5Key=' . $Md5Key);
     $Return = request_by_other($TuUrl, $ToString);
     //$ReturnArray = GetReturnInfo($Return);
     if ($Return == 1000) {
         return 1;
     } else {
         return 0;
     }
 }
Пример #4
0
 public function ToGbaoPenEditInfo($CustomersProjectID = 0, $aim_cus = '')
 {
     if ($CustomersProjectID == 0) {
         return 0;
     }
     $CustProModule = new CustProModule();
     $CustProInfo = $CustProModule->GetOneInfoByKeyID($CustomersProjectID);
     if (empty($CustProInfo)) {
         return 0;
     }
     $CustomersModule = new CustomersModule();
     $CustomersInfo = $CustomersModule->GetOneInfoByKeyID($CustProInfo['CustomersID']);
     $TuUrl = GBAOPEN_DOMAIN . 'api/modifyuser';
     $ToString .= 'name=' . $CustProInfo['G_name'];
     if ($CustProInfo['PC_model']) {
         preg_match('/[A-Z]{2}[0]*(\\d*)/', $CustProInfo['PC_model'], $have);
         $ToString .= '&pc_tpl_id=' . $have[1];
     } else {
         $ToString .= '&pc_tpl_id=' . $CustProInfo['PC_model'];
     }
     if ($CustProInfo['Mobile_model']) {
         preg_match('/[A-Z]{2}[0]*(\\d*)/', $CustProInfo['Mobile_model'], $have);
         $ToString .= '&mobile_tpl_id=' . $have[1];
     } else {
         $ToString .= '&mobile_tpl_id=' . $CustProInfo['Mobile_model'];
     }
     $ToString .= '&pc_domain=' . $CustProInfo['PC_domain'];
     $ToString .= '&mobile_domain=' . $CustProInfo['Mobile_domain'];
     $ToString .= '&email=' . $CustomersInfo['Email'];
     $ToString .= '&ftp_address=' . $CustProInfo['G_Ftp_Address'];
     $ToString .= '&ftp_user='******'G_Ftp_User'];
     $ToString .= '&ftp_pwd=' . $CustProInfo['G_Ftp_Pwd'];
     $ToString .= '&weburl=' . $CustProInfo['G_Ftp_FwAdress'];
     $ToString .= '&ftp_port=' . $CustProInfo['G_Ftp_Duankou'];
     $ToString .= '&ftp_dir=' . $CustProInfo['G_Ftp_Mulu'];
     $ToString .= '&ended_at=' . $CustProInfo['EndTime'];
     $ToString .= '&status=' . $CustProInfo['status'];
     /*
     $myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
     fwrite($myfile, GBAOPEN_MD5KEY.'|');
     fwrite($myfile, strtotime($CustProInfo ['EndTime']).'|');
     fwrite($myfile, md5(GBAOPEN_MD5KEY . strtotime($CustProInfo ['EndTime'])));
     fclose($myfile);
     */
     //随机文件名开始生成
     $randomLock = getstr();
     $password = md5($randomLock);
     $password = md5($password);
     //生成握手密钥
     $text = getstr();
     //生成dll文件
     $myfile = @fopen($password . '.dll', "w+");
     if (!$myfile) {
         return 0;
     }
     fwrite($myfile, $text);
     fclose($myfile);
     $ToString .= '&timemap=' . $randomLock;
     $ToString .= '&taget=' . md5($text . $password);
     $ReturnString = request_by_other($TuUrl, $ToString);
     $ReturnArray = json_decode($ReturnString, true);
     print_r($ReturnArray);
     if ($ReturnArray['err'] == 1000) {
         return 1;
     } else {
         return 0;
     }
 }