public function __construct($stationid) { parent::__construct($stationid); $this->DATE = date('Y-m-d-H', strtotime("-1 hour")); //$this->DATE = '2015-06-15-13'; $this->today = date('Y_m_d', strtotime("-1 hour")); $this->yesterday = date('Y_m_d', strtotime("-1 day")); $this->hour = date('H', strtotime("-1 hour")); //$this->hour = '13'; $this->WLNAME = 'm_wonaonao_access_' . $this->hour . '.log'; }
} protected function getdb_content() { $db = new PDO($this->dsn_content, $this->dbuser_content, $this->dbpasswd_content); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->exec('set names utf8'); return $db; } } error_reporting(E_ALL ^ E_NOTICE); //接收stationid $stationid = $argv[1]; if (!$stationid) { exit; } $obj = new LogDo($stationid); $station = $obj->STATION[0]; // var_dump($station['logfile']); // exit; $check = $obj->CheckDo(); $filelogs = array(); // foreach ($stations as $k=>$v) // { // $filelogs[] = $station['logfile']; if (!in_array($station['id'], $check)) { $obj->setPath($station['logfile'], $station['logname'], $station['is_moreweb']); $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']); $obj->Log($station['is_moreweb']); $obj->setStationId($station['id']); $obj->clear(); //web
*/ protected function FetchRow($sql) { $p = $this->db->query($sql); $p->setFetchMode(PDO::FETCH_ASSOC); $result = $p->fetchAll(); return $result[0]; } } error_reporting(E_ALL ^ E_NOTICE); //接收stationid $stationid = $argv[1]; if (!$stationid) { exit; } $obj = new LogDo($stationid); $station = $obj->STATION[0]; $check = $obj->CheckDo(); // foreach ($stations as $k=>$v) // { if (!in_array($station['id'], $check)) { $obj->setPath($station['logfile'], $station['logname']); $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']); $obj->setStationId($station['id']); $obj->clear(); $obj->Ad1ClickStatic(); $obj->Ad1Info(); $obj->Ad2Info(); $obj->InCheck(); } // }
public function __construct($stationid) { parent::__construct($stationid); }
public function __construct($stationid) { parent::__construct($stationid); $this->DATE = '2015_07_01'; }
} protected function getdb_content() { $db = new PDO($this->dsn_content, $this->dbuser_content, $this->dbpasswd_content); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->exec('set names utf8'); return $db; } } error_reporting(E_ALL ^ E_NOTICE); //接收stationid $stationid = $argv[1]; if (!$stationid) { exit; } $obj = new LogDo($stationid); $station = $obj->STATION[0]; // var_dump($station['logfile']); // exit; $check = $obj->CheckDo(); $filelogs = array(); // foreach ($stations as $k=>$v) // { // $filelogs[] = $station['logfile']; if (!in_array($station['id'], $check)) { $obj->setPath($station['logfile'], $station['logname'], $station['is_moreweb']); $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']); //$obj->Log($station['is_moreweb']); $obj->setStationId($station['id']); $obj->clear(); //web
$this->GetAppNameType($tep['appid']); if ($tep['sys'] == '-') { continue; } $tep += array('appname' => $this->APPNAME, 'type' => $this->APPTYPE, 'date' => $this->DATE1, 'stationid' => $this->STATIONID, 'from' => 'pm', 'sortid' => $this->SORTID); $this->Insert($tep, 'rha_downapp'); } } } error_reporting(E_ALL ^ E_NOTICE); //接收stationid $stationid = $argv[1]; if (!$stationid) { exit; } $obj = new LogDo($stationid); $station = $obj->STATION[0]; $check = $obj->CheckDo(); // foreach ($stations as $k=>$v) // { if (!in_array($station['id'], $check)) { $obj->setPath($station['logfile'], $station['logname']); $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']); $obj->setStationId($station['id']); $obj->clear(); //web $obj->Ad_uv($station['is_alone']); $obj->Ad_Detail($station['is_alone']); $obj->Reg_uv($station['is_alone']); $obj->Reg_verify($station['is_alone']); $obj->Loginlog($station['is_alone']);
} protected function getdb_content() { $db = new PDO($this->dsn_content, $this->dbuser_content, $this->dbpasswd_content); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->exec('set names utf8'); return $db; } } error_reporting(E_ALL ^ E_NOTICE); //接收stationid $stationid = $argv[1]; if (!$stationid) { exit; } $obj = new LogDo($stationid); $station = $obj->STATION[0]; // var_dump($station['logfile']); // exit; $check = $obj->CheckDo(); $filelogs = array(); // foreach ($stations as $k=>$v) // { // $filelogs[] = $station['logfile']; if (!in_array($station['id'], $check)) { $obj->setPath($station['logfile'], $station['logname'], $station['is_moreweb']); $obj->setIpFilter($station['logip'], $station['ifconf'], $station['ap'], $station['xuip'], $station['is_alone']); $obj->Log($station['is_moreweb']); $obj->setStationId($station['id']); $obj->clear(); $obj->InCheck();