export_file_logs($project, $period, $who); } if ($project->usesCVS()) { export_cvs_logs($project, $period, $who); } if ($project->usesSVN()) { export_svn_logs($project, $period, $who); } if ($project->usesDocman()) { export_doc_logs($project, $period, $who); } if ($project->usesWiki()) { export_wiki_pg_logs($project, $period, $who, 0); export_wiki_att_logs($project, $period, $who); } export_all_plugins_logs($project, $period, $who); exit; } $pm = ProjectManager::instance(); project_admin_header(array('title' => $Language->getText('project_admin_index', 'p_admin', $pm->getProject($group_id)->getPublicName()), 'group' => $group_id, 'help' => 'SourceCodeAccessLogs.html')); // // BEGIN PAGE CONTENT CODE // echo "\n\n"; if (!isset($who)) { $who = "nonmembers"; } if (!isset($span)) { $span = 14; } if (!isset($view)) {
do { prepare_access_logs_record($project->getGroupId(), $arr); echo build_csv_record($col_list, $arr) . $eol; } while ($arr = db_fetch_array($result)); echo build_csv_header($col_list, array()) . $eol; } } $project = new Project($group_id); if (isset($export)) { if ($export == 'access_logs') { $span = 52 * 30.5; $who = "allusers"; // Send the result in CSV format header('Content-Type: text/csv'); header('Content-Disposition: filename=access_logs.csv'); export_file_logs($project, $span, $who); export_cvs_logs($project, $span, $who); export_svn_logs($project, $span, $who); export_doc_logs($project, $span, $who); export_wiki_pg_logs($project, $span, $who, 0); export_wiki_att_logs($project, $span, $who); export_all_plugins_logs($project, $span, $who); } else { if ($export == "access_logs_format") { $span = 52 * 30.5; $who = "allusers"; echo $GLOBALS['Language']->getText('project_export_bug_deps_export', 'bug_deps_export_format', array($GLOBALS['Language']->getText('project_admin_utils', 'access_logs'))); export_wiki_pg_logs($project, $span, $who, 1); } } }