fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13600] sync stable vs trunk at 13597


From: Sigurd Nes
Subject: [Fmsystem-commits] [13600] sync stable vs trunk at 13597
Date: Thu, 09 Jul 2015 08:30:13 +0000

Revision: 13600
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13600
Author:   sigurdne
Date:     2015-07-09 08:30:04 +0000 (Thu, 09 Jul 2015)
Log Message:
-----------
sync stable vs trunk at 13597

Modified Paths:
--------------
    
branches/Version-1_0-branch/property/inc/cron/default/Import_fra_agresso_X205.php

Modified: 
branches/Version-1_0-branch/property/inc/cron/default/Import_fra_agresso_X205.php
===================================================================
--- 
branches/Version-1_0-branch/property/inc/cron/default/Import_fra_agresso_X205.php
   2015-07-09 08:22:16 UTC (rev 13599)
+++ 
branches/Version-1_0-branch/property/inc/cron/default/Import_fra_agresso_X205.php
   2015-07-09 08:30:04 UTC (rev 13600)
@@ -74,7 +74,7 @@
                        $now = time() + (int) 
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'] * 3600;
 
                        $now_hour = date('G',$now );
-                       $now_day = date('N',$now );             
+                       $now_day = date('N',$now );
 
                        if(($now_hour < 6 || $now_hour > 17) || $now_day > 5)
                        {
@@ -94,14 +94,14 @@
                        $this->get_files();
                        $dirname = 
$this->config->config_data['import']['local_path'];
                        // prevent path traversal
-                       if ( preg_match('/\./', $dirname) 
+                       if ( preg_match('/\./', $dirname)
                         || !is_dir($dirname) )
                        {
                                return array();
                        }
 
                        $file_list = array();
-                       $dir = new DirectoryIterator($dirname); 
+                       $dir = new DirectoryIterator($dirname);
                        if ( is_object($dir) )
                        {
                                foreach ( $dir as $file )
@@ -173,7 +173,7 @@
                {
                        $dirname = 
$this->config->config_data['import']['local_path'];
 
-                       if ( preg_match('/\./', $dirname) 
+                       if ( preg_match('/\./', $dirname)
                         || !is_dir($dirname) )
                        {
                                return array();
@@ -181,7 +181,7 @@
 
                        $archive = "{$dirname}/archive";
                        $file_list = array();
-                       $dir = new DirectoryIterator($archive); 
+                       $dir = new DirectoryIterator($archive);
                        if ( is_object($dir) )
                        {
                                foreach ( $dir as $file )
@@ -362,7 +362,7 @@
                                                        if( stripos( 
$file_name, 'Px205' ) === 0)
                                                        {
                                                //              
_debug_array($file_name);
-                                                               $file_remote = 
"{$directory_remote}/{$file_name}";         
+                                                               $file_remote = 
"{$directory_remote}/{$file_name}";
                                                                $file_local = 
"{$directory_local}/{$file_name}";
 
                                                                $stream = 
fopen("ssh2.sftp://$sftp$file_remote";, 'r');
@@ -651,7 +651,7 @@
                        {
                                _debug_array("Skip import - file: {$file}");
                        }
-                       
+
                        if($this->skip_import)
                        {
                                $this->skip_import = false;
@@ -741,7 +741,7 @@
                                $order_info['order_exist'] = true;
                        }
                        if ($this->db->f('location_code'))
-                       { 
+                       {
                                $parts = 
explode('-',$this->db->f('location_code'));
                                $order_info['dima'] = implode('', $parts);
                                $order_info['loc1'] = $parts[0];
@@ -751,7 +751,7 @@
                        $order_info['spbudact_code']            = 
$this->db->f('account_id');
                        $order_info['dimb']                                     
= $this->db->f('ecodimb');
                        $order_info['dime']                                     
= $this->db->f('category');
-                       $order_info['title']                            = 
$this->db->f('title',true);                   
+                       $order_info['title']                            = 
$this->db->f('title',true);
 
                        $janitor_user_id                                        
= $this->db->f('user_id');
                        $order_info['janitor']                          = 
$GLOBALS['phpgw']->accounts->get($janitor_user_id)->lid;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]