setOptions( array_merge( $config['login_data'], array( 'id' => $account_id ), array( 'pdr' => $start_date. '-'. $end_date ) ) ); /* Data klasörü */ $path = DATA_PATH . $account_id. '/'; /* Data */ if (file_exists(DATA_PATH) === false) { if (mkdir(DATA_PATH, 0755) === false) { die('Error Chmod 755 Data Path!'); } } /* Data */ if (file_exists($path) === false) { if (mkdir($path, 0755) === false) { die('Error Chmod 755 Data Path!'); } } /* istekler */ foreach (array('VisitsReport', 'PageviewsReport', 'VisitorsOverviewReport') as $report) { /* rapor girisi */ $data = $analytics->getReport( array( 'rpt' => $report ) ); /* giriş devam */ if (empty($data) === true) { continue; } /* Rapor XML */ if (file_put_contents($path . $report. '.xml', $data) === false) { die('Error by file_put_contens operation!'); } } /* Rapor guncellendi */ echo sprintf( '
', $account_id ); } ?>