<?php require_once 'IConstants.inc'; require_once $ConstantsArray['dbServerUrl'] . "DataStoreMgr//AppLogDataStore.php"; require_once $ConstantsArray['dbServerUrl'] . "Utils//ExportUtils.php"; $logDataStore = AppLogDataStore::getInstance(); if ($_GET["call"] == "getAllLogs") { $logsJson = $logDataStore->getAllLogsJson(); echo $logsJson; return; } if ($_POST["call"] == "exportLogs") { $logsJson = $logDataStore->getAllLogs(); ExportUtils::ExportData($logsJson); } ?> <html> <head> <?php include "_jsAdminInclude.php"; ?> </head> <?php include "leftButtons.php"; ?> <Div class="rightAdminPanel"> <?php include "logOutButton.php"; ?> <form name="exportLogsForm" id="exportLogsForm" method="post" action="showLogs.php" > <input type="hidden" name= "call" value="exportLogs" >