Commit edad75dd authored by Danny Froberg's avatar Danny Froberg 💬
Browse files

Added SCA & Type number for FIN04

parent ed139bbf
......@@ -179,6 +179,7 @@ $lev_konvert_vilma_type = Array(
'2926699' => 3,
'4552766' => 3,
'2796803' => 3,
'2217180' => 3,
'2200426' => 4,
'6022917' => 4,
'53096509' => 4,
......
......@@ -509,7 +509,10 @@ foreach ( $desc_files as $filename ) {
prlog( $bo_vilma_identifier_new);
prlog ("Vilma typ: " . $bo_vilma_typ );
} else {
$bo_vilma_typ = 'FIN04';
@$bo_vilma_typ = 0+$lev_konvert_vilma_type[$zipfile['levnr']];
if( $bo_vilma_typ === 0 || $bo_vilma_typ === null ) {
$bo_vilma_typ = 'FIN04';
}
$bo_vilma_identifier_new = str_replace( ' ', '_', $bo_destination_unpack .'F' . $zipfil_num.'_' . $bo_vilma_typ.'_'. $bo_destination_subdir .'_'. str_replace( "'", '_',str_replace( "/", '_',str_replace( "&", '_',str_replace( "\\", '_',$zipfile['levname'])))) . '.TXT');
rename( $bo_vilma_identifier, $bo_vilma_identifier_new);
prlog( $touch_command = 'touch -c -t '.str_replace( ' ', '',str_replace( '-', '', substr( $updated_date, 2)).''.str_replace( ':', '',substr( $updated_time, 0, -2))).' '.$bo_vilma_identifier_new );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment