Changeset 3074869
- Timestamp:
- 04/22/2024 08:58:21 AM (21 months ago)
- Location:
- kassa-at-for-woocommerce/trunk
- Files:
-
- 3 edited
-
api-connection.php (modified) (1 diff)
-
kassa-at-for-woocommerce.php (modified) (5 diffs)
-
stock-syncro.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kassa-at-for-woocommerce/trunk/api-connection.php
r2665761 r3074869 35 35 $host = 'https://' . kaw_get_subdomain() . '.kassa.at'; 36 36 } elseif ( kaw_get_envirement_mode() === 'dev' ) { 37 $host = 'http://' . kaw_get_subdomain() . '.kassa.at.1 0.0.0.13.nip.io:3000';37 $host = 'http://' . kaw_get_subdomain() . '.kassa.at.192.168.165.45.nip.io:3000'; 38 38 } 39 39 return $host; -
kassa-at-for-woocommerce/trunk/kassa-at-for-woocommerce.php
r2665761 r3074869 5 5 * Domain Path: /languages 6 6 * Description: An API Plugin which corresponds with a KASSA.AT account to synchronize online and offline stock-changes. 7 * Version: 1.1. 07 * Version: 1.1.1 8 8 * Author: Faxonline GmbH 9 9 * Author URI: https://www.kassa.at … … 47 47 48 48 /** 49 * Check if variable is null or empty 50 */ 51 function IsNullOrEmptyString($var){ 52 return ($var === null || trim($var) === ''); 53 } 54 55 56 /** 49 57 * Asks for the log file and writes whatever is in $data to it. 50 58 * … … 58 66 $filestring = file_get_contents( $logfile ); /* phpcs:ignore */ 59 67 $filejson = json_decode( $filestring ); 60 array_unshift( 61 $filejson, 62 array( 63 'datetime' => gmdate( 'd-m-Y H:i:s' ), 64 'type' => $type, 65 'data' => kaw_log_data_formating( $type, $data ), 66 ) 67 ); 68 $filejson = kaw_cut_log( $filejson ); 69 $fileresult = wp_json_encode( $filejson ); 70 file_put_contents( $logfile, $fileresult ); /* phpcs:ignore */ 68 69 if( !empty($data) && !empty($filestring) && !empty($logfile) && !empty($filejson) ) { 70 array_unshift( 71 $filejson, 72 array( 73 'datetime' => gmdate( 'd-m-Y H:i:s' ), 74 'type' => $type, 75 'data' => kaw_log_data_formating( $type, $data ), 76 ) 77 ); 78 $filejson = kaw_cut_log( $filejson ); 79 $fileresult = wp_json_encode( $filejson ); 80 file_put_contents( $logfile, $fileresult ); /* phpcs:ignore */ 81 } 71 82 } 72 83 } … … 149 160 function kaw_enable_log() { 150 161 if ( get_option( 'kaw-logging' ) ) { 162 151 163 if ( get_option( 'kaw-logging' ) === 'enabled' ) { 152 164 return true; … … 355 367 $bt = debug_backtrace(); /* phpcs:ignore */ 356 368 $caller = array_shift( $bt ); 369 357 370 if ( count( explode( 'wp-content', $caller['file'] ) ) === 2 ) { 358 371 $path = '/wp-content' . explode( 'wp-content', $caller['file'] )[1]; -
kassa-at-for-woocommerce/trunk/stock-syncro.php
r2665761 r3074869 73 73 ) 74 74 ); 75 75 76 if ( 1 !== $inventory->length ) { 76 77 kaw_log_data(
Note: See TracChangeset
for help on using the changeset viewer.