Switched to new export-import with subgroup support.
authorNik Okuntseff <support@anuko.com>
Sun, 11 Nov 2018 17:03:50 +0000 (17:03 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 11 Nov 2018 17:03:50 +0000 (17:03 +0000)
WEB-INF/templates/footer.tpl
export.php
import.php

index 3898048..e294c88 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.12.4417 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.12.4418 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 3d61781..2b52aca 100644 (file)
@@ -57,11 +57,11 @@ if ($request->isPost()) {
     $mime_type = 'application/x-bzip2';
   }
 
-  if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
+  //if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
     $exportHelper = new ttOrgExportHelper();
-  } else {
-    $exportHelper = new ttExportHelper();
-  }
+  //} else {
+  //    $exportHelper = new ttExportHelper();
+  //}
   if ($exportHelper->createDataFile($compress)) {
     header('Pragma: public'); // This is needed for IE8 to download files over https.
     header('Content-Type: '.$mime_type);
index 235924a..7863086 100644 (file)
@@ -43,11 +43,11 @@ $form->addInput(array('type'=>'upload','name'=>'xmlfile','value'=>'browse','maxs
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->get('button.import')));
 
 if ($request->isPost()) {
-  if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
+//  if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) {
     $import = new ttOrgImportHelper($err);
-  } else {
-    $import = new ttImportHelper($err);
-  }
+//  } else {
+//    $import = new ttImportHelper($err);
+//  }
   $import->importXml();
   if ($err->no()) $msg->add($i18n->get('form.import.success'));
 } // isPost