<?php
/**
 *      [eminer] (C)20013-2099 eminer Inc.
 *      This is NOT a freeware, use is subject to license terms
 *      $Id: co_flowstart.php  September 5, 2014, 8:28 am Hogan $
 */
require_once(dirname(__FILE__)."/config.php"); require_once(eminerINC.'/HttpClient.class.php'); ee7f2ef84(); $eb4a88417 = array(); if($eb5707348=='savesetting'){ include_once(eminerINC.'/emcjdb.class.php'); if($e3a2d7564=ed3adf7ac('publishrecord')->e567904ef("`id`={$fid}")->e3ac34083(array('e1ee5e071'=>$setting))){ $eb4a88417['status'] = 'success' ; $eb4a88417['info'] = "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>成功保存。</span></div>"; $eb4a88417['fid']=$fid ; exit(json_encode($eb4a88417)); } else { $eb4a88417['status'] = 'error'; $eb4a88417['info'] = "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>保存失败！</span></div>"; $eb4a88417['fid']=$fid ; exit(json_encode($eb4a88417)); } }else{  $ebe28231a=''; $e720de7e1=''; $e207e44ef=''; $ee18e365b="display:none"; if($_GET['fid'] && $_GET['e5ef3b641']){  $ecff54971 = e03c7c0ac('flow_'.$fid); $e833d05ff=$ecff54971['e833d05ff']; $e103f1080=$ecff54971['e103f1080']; $eab315bbc=$ecff54971['eab315bbc']; $e99578200=$ecff54971['e99578200']; }else { $e99578200=intval($_GET['e99578200']); $e833d05ff=$_GET['e833d05ff']; $e103f1080=$_GET['e103f1080']; } if(!empty($e833d05ff)){ $e5316df33 = e03c7c0ac('co_'.$e833d05ff); $e720de7e1=$e5316df33['ed946d2b0']; }else{ $ed358d53d = 0 ; $eb4a88417['status'] = 'error'; $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>该流水线采集节点未正确配置，请返回重新配置。</span></div>"; } if($e103f1080 && (strpos($e103f1080,'{var_')!==false || strpos($e103f1080,'{ var_')!==false || strpos($e103f1080,'{ var_')!==false)){ $ebe28231a= $e103f1080 = trim(trim($e103f1080) , '{}') ; }elseif($e833d05ff && (strpos($e833d05ff,'{var_')!==false || strpos($e833d05ff,'{ var_')!==false || strpos($e833d05ff,'{ var_')!==false)){ $e720de7e1= $e833d05ff = trim(trim($e833d05ff) , '{}') ; $eab315bbc = -1; }else{ if(!empty($e103f1080) ){ $ea1a51a46 = e03c7c0ac('pub_'.$e103f1080); $ebe28231a=$ea1a51a46['name']; }else{ $ed358d53d = 0 ; $eb4a88417['status'] = 'error'; $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>该流水线发布节点未正确配置，请返回重新配置。</span></div>"; } }  if($ed358d53d !== 0 ){ $eb4a88417['status'] = 'pause'; $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>该流水线中含有采集节点“{$e720de7e1}”和发布节点“{$ebe28231a}”，</span></div>"; if($eab315bbc==-1){ $ed358d53d=1;  $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>下一步将转向采集节点“{$e720de7e1}”，请点击确定开始采集。</span></div>"; }else{ $ef1965a85 = $e43e5a962->e36bcdd05("SELECT count(*) dd FROM `#@__co_htmls` where  eea8f538c='{$e2fa66dd0->eea8f538c}' and nid = '{$e833d05ff}' and LENGTH(result)>20"); if(!$ef1965a85){ $edcea4d04=0; $e7b60a139=0; } else { $edcea4d04=$ef1965a85['dd']?intval($ef1965a85['dd']):0;  $ef1965a85 = $e43e5a962->e36bcdd05("SELECT count(*) dd FROM `#@__co_htmls` where  eea8f538c='{$e2fa66dd0->eea8f538c}' and nid = '{$e833d05ff}' and isdone<3 and eec5f242f=0 and LENGTH(result)>20"); $e7b60a139=$ef1965a85['dd']?intval($ef1965a85['dd']):0;  $e00b322a7=$edcea4d04-$e7b60a139; $e4ef76fa1= ($e99578200 == -1 ? '现在重新发布。' : "未发布记录为{$e7b60a139}条。"); } $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>采集节点中含有已采集记录{$edcea4d04}条，其中".($edcea4d04?"已发布{$e00b322a7}条，":'').$e4ef76fa1."</span></div>"; if($e7b60a139 ){ $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>下一步将转向发布节点“{$ebe28231a}”，请点击确定转向发布节点</span></div>"; $ed358d53d=2;  }else { $e207e44ef.= "<div class='initmsg'><img class='faceimg' src='images/dg_face/face_{$eb4a88417['status']}.png'/><span>下一步将转向采集节点“{$e720de7e1}”，请点击确定开始采集</span></div>"; $ed358d53d=1;  } } } $e207e44ef .='<div><input name="b112" type="button" class="coolbg" value="确 定"  style="width:100px" onclick="formsubmit('.$ed358d53d.')"/></div>';  require('eminer_templates/co_flow_start.htm'); exit(); } ?>