the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mreporting is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with mreporting. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include "../../../inc/includes.php"; header("Content-Type: text/html; charset=UTF-8"); Html::header_nocache(); if ($_REQUEST['switchto'] == 'odt' || $_REQUEST['switchto'] == 'odtall') { require_once '../lib/odtphp/odf.php'; } if (PluginMreportingPreference::atLeastOneTemplateExists()) { $template = PluginMreportingPreference::checkPreferenceTemplateValue(Session::getLoginUserID()); if ($template) { $common = new PluginMreportingCommon(); $common->export($_REQUEST); } else { Session::addMessageAfterRedirect($LANG['plugin_mreporting']["parser"][2], false, ERROR); Html::redirect("../../../front/preference.php"); } } else { Session::addMessageAfterRedirect($LANG['plugin_mreporting']["parser"][3], false, ERROR); Html::back(); }