Example #1
0
     if ($filesystemValid === 0 && $tableValid === 0 && $rowsValid === 0) {
         // transform to XML format
         $xml = transformToXML($res);
         $xml->save($excel->getSource() . ".xml");
         //    echo $xml->saveXML();
         //$xml->saveXML();//proftpd //pathinfo string []
         $xml_source = $xml->saveXML();
         $xml_source = escape_check($xml_source);
         $xml_source = str_replace("\\n", "", $xml_source);
         $md5r = md5($scramble_key . $xml_source);
         //    echo $scramble_key;
         foreach ($res as $r) {
             $r->updateResource();
         }
     }
     View::importXML($filesystemValid, $filesystemErrors, $filesystemWarnings, $tableValid, $tableErrors, $tableWarnings, $rowsValid, $rowErrors, $rowWarnings, $baseurl . "/uploads/" . basename($excel->getSource()) . ".xml", $xml_source, $md5r);
     include '../../../include/footer.php';
     break;
 case 'xls_upload':
     include '../../../include/header.php';
     $conflictsMap = array();
     $uploadsMap = getUploadsMap($conflictsMap);
     $filesystemErrors = array();
     $filesystemWarnings = array();
     $filesystemValid = filesystemValidator($filesystemErrors, $filesystemWarnings, $conflictsMap);
     // In PHP kleiner als 4.1.0 sollten Sie $HTTP_POST_FILES anstatt
     // $_FILES verwenden.
     $uploadfile = basename($_FILES['userfile']['name']);
     $uploadpath = $mediaPath . $uploadfile;
     if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadpath)) {
         //View::debug( "Datei ist valide und wurde erfolgreich hochgeladen.", 0 );